Hi,
Me and a few friends from college are trying to learn over the summer about game engines and since we like OA we thought we'd start here. We're trying to compile on all platforms and I'm having trouble with the make-macosx-ub.sh script. When I run, I get some errors. Below is the output and I was wondering if anyone could help me out and maybe see why this is refusing to compile?
Building PPC Dedicated Server against "/Developer/SDKs/MacOSX10.4u.sdk"
Building PPC Client against "/Developer/SDKs/MacOSX10.4u.sdk"
Building X86 Client/Dedicated Server against "/Developer/SDKs/MacOSX10.4u.sdk"
WARNING: in order to build a binary with maximum compatibility you must
build on Mac OS X 10.4 using Xcode 2.3 or 2.5 and have the
MacOSX10.2.8, MacOSX10.3.9, and MacOSX10.4u SDKs installed
from the Xcode install disk Packages folder.
Building Dedicated Server using /Developer/SDKs/MacOSX10.4u.sdk
Building openarena in build/release-darwin-ppc:
PLATFORM: darwin
ARCH: ppc
VERSION: 1.35
COMPILE_PLATFORM: darwin
COMPILE_ARCH: i386
CC: cc
CFLAGS:
-arch
ppc
-isysroot
/Developer/SDKs/MacOSX10.4u.sdk
-DMAC_OS_X_VERSION_MIN_REQUIRED=1040
-MMD
-Wall
-Wimplicit
-Wstrict-prototypes
-faltivec
-fno-strict-aliasing
-DMACOS_X
-fno-common
-pipe
-DUSE_OPENAL
-DUSE_OPENAL_DLOPEN
-DUSE_CURL
-DUSE_CURL_DLOPEN
-DUSE_CODEC_VORBIS
-D_THREAD_SAFE=1
-Icode/SDL12/include
-DUSE_MUMBLE
-DUSE_VOIP
-DFLOATING_POINT
-DUSE_ALLOCA
-Icode/libspeex/include
-DUSE_LOCAL_HEADERS
-DSTANDALONE
-DPRODUCT_VERSION="1.35"
-DNDEBUG
-O3
-ffast-math
-falign-loops=16
LDFLAGS:
-arch
ppc
-isysroot
/Developer/SDKs/MacOSX10.4u.sdk
-mmacosx-version-min=10.4
Output:
build/release-darwin-ppc/oa_ded.ppc
DED_CC code/server/sv_bot.c
DED_CC code/server/sv_client.c
code/server/sv_bot.c: In function ‘BotImport_Print’:
code/server/sv_bot.c:141: warning: implicit declaration of function ‘va_start’
code/server/sv_bot.c:143: warning: implicit declaration of function ‘va_end’
code/server/sv_bot.c:141: warning: ‘ap’ is used uninitialized in this function
DED_CC code/server/sv_ccmds.c
DED_CC code/server/sv_game.c
DED_CC code/server/sv_init.c
DED_CC code/server/sv_main.c
code/server/sv_main.c: In function ‘SV_SendServerCommand’:
code/server/sv_main.c:183: warning: implicit declaration of function ‘va_start’
code/server/sv_main.c:185: warning: implicit declaration of function ‘va_end’
DED_CC code/server/sv_net_chan.c
code/server/sv_main.c:183: warning: ‘argptr’ is used uninitialized in this function
DED_CC code/server/sv_snapshot.c
DED_CC code/server/sv_world.c
DED_CC code/qcommon/cm_load.c
DED_CC code/qcommon/cm_patch.c
DED_CC code/qcommon/cm_polylib.c
DED_CC code/qcommon/cm_test.c
DED_CC code/qcommon/cm_trace.c
DED_CC code/qcommon/cmd.c
DED_CC code/qcommon/common.c
code/qcommon/common.c: In function ‘Com_Printf’:
code/qcommon/common.c:150: warning: implicit declaration of function ‘va_start’
code/qcommon/common.c:152: warning: implicit declaration of function ‘va_end’
DED_CC code/qcommon/cvar.c
code/qcommon/common.c:150: warning: ‘argptr’ is used uninitialized in this function
code/qcommon/common.c: In function ‘Com_DPrintf’:
code/qcommon/common.c:229: warning: ‘argptr’ is used uninitialized in this function
code/qcommon/common.c: In function ‘Com_Error’:
code/qcommon/common.c:274: warning: ‘argptr’ is used uninitialized in this function
DED_CC code/qcommon/files.c
code/qcommon/files.c: In function ‘FS_Printf’:
code/qcommon/files.c:1336: warning: implicit declaration of function ‘va_start’
code/qcommon/files.c:1338: warning: implicit declaration of function ‘va_end’
code/qcommon/files.c:1336: warning: ‘argptr’ is used uninitialized in this function
DED_CC code/qcommon/md4.c
DED_CC code/qcommon/msg.c
DED_CC code/qcommon/net_chan.c
DED_CC code/qcommon/net_ip.c
code/qcommon/net_chan.c: In function ‘NET_OutOfBandPrint’:
code/qcommon/net_chan.c:634: warning: implicit declaration of function ‘va_start’
code/qcommon/net_chan.c:636: warning: implicit declaration of function ‘va_end’
code/qcommon/net_chan.c:634: warning: ‘argptr’ is used uninitialized in this function
DED_CC code/qcommon/huffman.c
DED_CC code/qcommon/q_math.c
DED_CC code/qcommon/q_shared.c
code/qcommon/q_shared.c: In function ‘COM_ParseError’:
code/qcommon/q_shared.c:297: warning: implicit declaration of function ‘va_start’
code/qcommon/q_shared.c:299: warning: implicit declaration of function ‘va_end’
code/qcommon/q_shared.c: In function ‘va’:
code/qcommon/q_shared.c:999: warning: ‘argptr’ is used uninitialized in this function
code/qcommon/q_shared.c: In function ‘COM_ParseWarning’:
code/qcommon/q_shared.c:309: warning: ‘argptr’ is used uninitialized in this function
DED_CC code/qcommon/unzip.c
code/qcommon/q_shared.c: In function ‘COM_ParseError’:
code/qcommon/q_shared.c:297: warning: ‘argptr’ is used uninitialized in this function
code/qcommon/q_shared.c: In function ‘Com_sprintf’:
code/qcommon/q_shared.c:964: warning: ‘argptr’ is used uninitialized in this function
DED_CC code/qcommon/vm.c
code/qcommon/vm.c: In function ‘VM_DllSyscall’:
code/qcommon/vm.c:344: warning: implicit declaration of function ‘va_start’
code/qcommon/vm.c:346: warning: implicit declaration of function ‘va_arg’
code/qcommon/vm.c:346: error: expected expression before ‘intptr_t’
code/qcommon/vm.c:347: warning: implicit declaration of function ‘va_end’
code/qcommon/vm.c: In function ‘VM_Call’:
code/qcommon/vm.c:752: error: expected expression before ‘int’
code/qcommon/vm.c:777: error: expected expression before ‘int’
make[2]: *** [build/release-darwin-ppc/ded/vm.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [targets] Error 2
make: *** [release] Error 2
I'm running OS10.6.4, latest Xcode installed.
Same errors on both MacBook Pro and iMac.
I'd be very grateful for any help anyone can give!
Thanks,
Scott