PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Source?!?

Moose or Chuck · 15 Feb 2001, 19:55 UTC
Ok, not to get after you or anything, but where's the source. I don't really want to go through a hassle about this, but I recall you (Dan) saying that the source would be along with the next release. I also don't want to have to do anything like use the power of that source code download agreement thing of id's. I'd really appreciate the source though, as would many other PPC users out there. (Maybe I'll compile my own MIPS version, I would have if the source was there and had time to look at the display routines).
Thanks for the great Pocket Quake BTW.
Chris Edwards · 15 Feb 2001, 22:28 UTC
I recall Dan posting on Brighthand that the source should be available tomorrow. No promises.
The source will be available today.

Dan East
hey moose- did you ever find a good ppc programming book?  if so, tell me.  i  am in recovery from an arm operation, and need to do something.  no hurry. thanks.
Moose or Chuck · 16 Feb 2001, 13:35 UTC
No I haven't. I've just been looking through the examples in the eMTools. I'm still not sure about it. But I do believe that most C++ programming books will give you the proper syntaxes, but some memory address (such as display, 0x800, etc.) could be different, so you'd have to download source from someone. I wish Jimmy would provide source for Turjah, or another of his games.
ok, i know C++ really well.  (i find java to be a total B***h).  Java just gets on my nerves
Dr. Phat · 16 Feb 2001, 15:06 UTC — Sorry, that was irrelevant
i know that whole java bit doesnt matter, but it should, i think the next PIE release should support java
Moose or Chuck · 16 Feb 2001, 16:20 UTC
Mmmmmmm... pie.


i know that whole java bit doesnt matter, but it should, i think the next PIE release should support java
Sorry it took so long Dan, but the Source has been posted :)
CARPEDIEM · 16 Feb 2001, 17:18 UTC — Source not compiling
Im getting 12 compilation errors with the source such as this:

error C2061: syntax error : identifier 'GXGetDisplayProperties'

Is anyone else experiencing these problems?
I need to see the rest of the error messages, including the object for which the function / storage identify cannot be resolved.

Dan East
This are the errors that i get when compiling. Apparently there's some problem when including <gx.h>. Btw, i have worked on gapi myself and i never had this problem.
Any help?

--------------------Configuration: PocketQuake - Win32 (WCE x86em) Release--------------------
Compiling...
sys_win.c
C:\Program Files\WINCE\wce300\MS Pocket PC\include\gx.h(56) : error C2061: syntax error : identifier 'GXGetDisplayProperties'
C:\Program Files\WINCE\wce300\MS Pocket PC\include\gx.h(56) : error C2059: syntax error : ';'
C:\Program Files\WINCE\wce300\MS Pocket PC\include\gx.h(56) : error C2059: syntax error : ')'
C:\Program Files\WINCE\wce300\MS Pocket PC\include\gx.h(57) : error C2061: syntax error : identifier 'GXGetDefaultKeys'
C:\Program Files\WINCE\wce300\MS Pocket PC\include\gx.h(57) : error C2059: syntax error : ';'
C:\Program Files\WINCE\wce300\MS Pocket PC\include\gx.h(57) : error C2059: syntax error : 'type'
vid_ppc.c
C:\Program Files\WINCE\wce300\MS Pocket PC\include\gx.h(56) : error C2061: syntax error : identifier 'GXGetDisplayProperties'
C:\Program Files\WINCE\wce300\MS Pocket PC\include\gx.h(56) : error C2059: syntax error : ';'
C:\Program Files\WINCE\wce300\MS Pocket PC\include\gx.h(56) : error C2059: syntax error : ')'
C:\Program Files\WINCE\wce300\MS Pocket PC\include\gx.h(57) : error C2061: syntax error : identifier 'GXGetDefaultKeys'
C:\Program Files\WINCE\wce300\MS Pocket PC\include\gx.h(57) : error C2059: syntax error : ';'
C:\Program Files\WINCE\wce300\MS Pocket PC\include\gx.h(57) : error C2059: syntax error : 'type'
Generating Code...
Error executing cl.exe.

PocketQuake.exe - 12 error(s), 0 warning(s)
Oops, I forgot that I had to modify the gx.h file to make it C compatible.  I don't know why MS made it require C++.  Here are my mods to lines 56 and 57:

//The following two lines modified by Dan East to make this header C compatible:
//Added "struct" to the following two prototypes:
GXDLL_API struct GXDisplayProperties GXGetDisplayProperties();
GXDLL_API struct GXKeyList GXGetDefaultKeys(int iOptions);
Moose or Chuck · 17 Feb 2001, 12:36 UTC
After that I had errors on lines 50 and 49 in gx.h. They were identical to Dan's lines, but no struct. I commented them out, works now. But is just a problem with my eMC or have others encountered this:

Linking...
LINK : fatal error LNK1181: cannot open input file "wsock2.lib"
Error executing link.exe.

Which causes the 1 error in PocketQuake.exe
You're obviously building for SH3, SH4 or MIPS.  Now that I have checked the other target configurations I see that those have an extraneous library linkage.  Go to project->settings.  On the tree on the left make sure the root "PocketQuake" is selected.  Click on the Link Tab, and make sure General is selected from the drop-down list. Delete wsock2.lib from the Object/library modules box.  This will need to be done to build for Debug or Release for SH3, SH4 and MIPS.

Dan East
Last modification: Dan East - 02/17/01 at 10:49:36
Hey dan, when i run pocketquake on the emulator it says it can't find gfx.wad How do i make it run?
I placed the .gz in my documents but it doesn't help.
Carpediem:

I'm no programmer, however by just taking a guess, perhaps the emulator is looking for the quake files in the same directories as the iPAQ version, either in the Main directory "/" or on the "Storage Card".

In either case it should be in /quake/id1/pak0.pak.gz  ...

Hope that helps, I'm really anxious to hear how this performs on a MIPS device :)