Author Topic: compiling paintball2  (Read 1254 times)

Baa

  • PGP
  • Posts: 1
compiling paintball2
« on: November 20, 2007, 12:23:37 PM »
Hey!
I'm trying to compile paintball2 on mac os x 10.4.11.
First, i modified the makefile

"OSTYPE :=FreeBSD" cuz it's more like mac os x, than Linux, and darwin is not supported.

'ARCH :=ppc" cuz uname -m returns "Power Macintosh"

then "make" it works...

ok, "sudo make release"

then i got these error massages:

molnar-gyulas-mac-mini-2:~/Desktop/paintball2 baa$ sudo make release
Password:
make targets BUILDDIR=build_release CFLAGS="-I/usr/local/include -I/usr/X11R6/include -Dstricmp=strcasecmp -D_inline= -DSleep=usleep -DGAME_NAME='\"game.so\"' -DPAINTBALL2_VERSION='\"2.0\"' -DBUILD_VERSION='\"17\"' -Wno-pointer-sign -D_THREAD_SAFE -DC_ONLY -DC_ONLY -O2 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
cc -I/usr/local/include -I/usr/X11R6/include -Dstricmp=strcasecmp -D_inline= -DSleep=usleep -DGAME_NAME='"game.so"' -DPAINTBALL2_VERSION='"2.0"' -DBUILD_VERSION='"17"' -Wno-pointer-sign -D_THREAD_SAFE -DC_ONLY -DC_ONLY -O2 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -o build_release/a3d/q2a3d.o -c a3d/q2a3d.c
In file included from a3d/../client/sound.h:21,
                 from a3d/../client/client.h:36,
                 from a3d/q2a3d.c:1:
a3d/../client/../a3d/a3d.h:27:21: error: Windows.h: No such file or directory
In file included from a3d/../client/sound.h:21,
                 from a3d/../client/client.h:36,
                 from a3d/q2a3d.c:1:
a3d/../client/../a3d/a3d.h:46: error: parse error before 'HINSTANCE'
a3d/../client/../a3d/a3d.h:46: warning: no semicolon at end of struct or union
a3d/../client/../a3d/a3d.h:49: warning: data definition has no type or storage class
a3d/../client/../a3d/a3d.h:51: error: parse error before 'a3d'
a3d/../client/../a3d/a3d.h:51: warning: data definition has no type or storage class
a3d/q2a3d.c:8: error: parse error before 'a3d'
a3d/q2a3d.c:8: warning: data definition has no type or storage class
a3d/q2a3d.c: In function 'S_Q2A3DPCMStream':
a3d/q2a3d.c:12: error: request for member 'A3D_PCMStream' in something not a structure or union
a3d/q2a3d.c: In function 'S_Q2A3DCloseLibrary':
a3d/q2a3d.c:16: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:21: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:23: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:25: error: request for member 'A3D_OggStreamStart' in something not a structure or union
a3d/q2a3d.c:26: error: request for member 'A3D_OggStreamStop' in something not a structure or union
a3d/q2a3d.c:27: error: request for member 'A3D_PCMStream' in something not a structure or union
a3d/q2a3d.c:28: error: request for member 'A3D_Update' in something not a structure or union
a3d/q2a3d.c:29: error: request for member 'Init_A3D' in something not a structure or union
a3d/q2a3d.c:30: error: request for member 'A3D_Shutdown' in something not a structure or union
a3d/q2a3d.c:31: error: request for member 'A3D_cachefile' in something not a structure or union
a3d/q2a3d.c:32: error: request for member 'A3D_StartSound' in something not a structure or union
a3d/q2a3d.c:33: error: request for member 'A3D_UpdateSound' in something not a structure or union
a3d/q2a3d.c:34: error: request for member 'A3D_StopSound' in something not a structure or union
a3d/q2a3d.c:35: error: request for member 'A3D_SetEnv' in something not a structure or union
a3d/q2a3d.c: In function 'S_Q2A3DInit':
a3d/q2a3d.c:48: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:50: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:52: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:68: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:83: error: request for member 'A3D_OggStreamStart' in something not a structure or union
a3d/q2a3d.c:83: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:84: error: request for member 'A3D_OggStreamStop' in something not a structure or union
a3d/q2a3d.c:84: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:85: error: request for member 'A3D_PCMStream' in something not a structure or union
a3d/q2a3d.c:85: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:86: error: request for member 'A3D_Update' in something not a structure or union
a3d/q2a3d.c:86: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:87: error: request for member 'Init_A3D' in something not a structure or union
a3d/q2a3d.c:87: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:88: error: request for member 'A3D_Shutdown' in something not a structure or union
a3d/q2a3d.c:88: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:89: error: request for member 'A3D_cachefile' in something not a structure or union
a3d/q2a3d.c:89: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:90: error: request for member 'A3D_StartSound' in something not a structure or union
a3d/q2a3d.c:90: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:91: error: request for member 'A3D_UpdateSound' in something not a structure or union
a3d/q2a3d.c:91: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:92: error: request for member 'A3D_StopSound' in something not a structure or union
a3d/q2a3d.c:92: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:93: error: request for member 'A3D_SetEnv' in something not a structure or union
a3d/q2a3d.c:93: error: request for member 'reflib' in something not a structure or union
a3d/q2a3d.c:94: error: request for member 'A3D_OggStreamStart' in something not a structure or union
a3d/q2a3d.c:94: error: request for member 'A3D_OggStreamStop' in something not a structure or union
a3d/q2a3d.c:94: error: request for member 'A3D_PCMStream' in something not a structure or union
a3d/q2a3d.c:95: error: request for member 'A3D_Update' in something not a structure or union
a3d/q2a3d.c:95: error: request for member 'Init_A3D' in something not a structure or union
a3d/q2a3d.c:95: error: request for member 'A3D_Shutdown' in something not a structure or union
a3d/q2a3d.c:96: error: request for member 'A3D_cachefile' in something not a structure or union
a3d/q2a3d.c:96: error: request for member 'A3D_StartSound' in something not a structure or union
a3d/q2a3d.c:96: error: request for member 'A3D_UpdateSound' in something not a structure or union
a3d/q2a3d.c:97: error: request for member 'A3D_StopSound' in something not a structure or union
a3d/q2a3d.c:97: error: request for member 'A3D_SetEnv' in something not a structure or union
a3d/q2a3d.c:123: error: request for member 'Init_A3D' in something not a structure or union
a3d/q2a3d.c: In function 'S_Q2A3DStartSound':
a3d/q2a3d.c:226: error: request for member 'A3D_StartSound' in something not a structure or union
a3d/q2a3d.c:231: error: request for member 'A3D_cachefile' in something not a structure or union
a3d/q2a3d.c:237: error: request for member 'A3D_StartSound' in something not a structure or union
a3d/q2a3d.c:241: error: request for member 'A3D_cachefile' in something not a structure or union
a3d/q2a3d.c:248: error: request for member 'A3D_StartSound' in something not a structure or union
a3d/q2a3d.c:257: error: request for member 'A3D_StartSound' in something not a structure or union
a3d/q2a3d.c: In function 'S_Q2A3DUpdate':
a3d/q2a3d.c:328: error: request for member 'A3D_Update' in something not a structure or union
a3d/q2a3d.c:366: error: request for member 'A3D_StopSound' in something not a structure or union
a3d/q2a3d.c:379: error: request for member 'A3D_UpdateSound' in something not a structure or union
a3d/q2a3d.c:392: error: request for member 'A3D_StopSound' in something not a structure or union
a3d/q2a3d.c: In function 'S_Q2A3DStopAllSounds':
a3d/q2a3d.c:413: error: request for member 'A3D_OggStreamStop' in something not a structure or union
a3d/q2a3d.c:416: error: request for member 'A3D_StopSound' in something not a structure or union
make[1]: *** [build_release/a3d/q2a3d.o] Error 1
make: *** [release] Error 2

what i did wrong? am i need openAL? Or... what? How to compile?

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: compiling paintball2
« Reply #1 on: November 20, 2007, 01:01:59 PM »
Go into the makefile and disable the a3d support.

But beware, it's going to take a little more than changing the makefile to get it to work on OS X.  Since you're on a PPC machine, any of the code that is written in assembly will need to be changed to something that runs on the PPC chip.

Even if you get the paintball2/ref_pbgl binaries to compile and run, you'll still need jitspoe to release a PPC built version of the gamei386.so, and you can port that yourself because it's a closed-source binary.  He has no intentions of porting it to OS X until someone buys him a macbook, and there's not really much point in him doing it for PPC since all the new systems are Intels.  But if you do manage to pry that source from his claws, let me know; I'm looking for it too.

I think the FreeBSD makefile is broken anyway.  This isn't your typical Open Source Project, mostly just a Windows game, using an open source engine, everything useful is still closed source (legitimately due to a different license, code base), and we're just lucky that we've got Linux support.

I'll still keep an eye on this thread and try to answer any questions to have along the way.

y00tz

  • Autococker
  • Posts: 2742
Re: compiling paintball2
« Reply #2 on: November 20, 2007, 04:23:07 PM »
He has no intentions of porting it to OS X until someone buys him a macbook

I almost did, there was a MacBook Pro in the paper here for $250, but buy the time I called it was sold... Nathan almost got an early C'hanukkah present..