Game Development Community

Mac Os X Xcode Compiling Nightmare

by Melli Georgiou · in Technical Issues · 11/18/2004 (5:08 am) · 12 replies

Hi Guys,

Im new to torque, and I just downloaded the macintosh version. I have already purchased Xcode and my system is OS x 10.3.6

When I tried to build Torque I recieve the following in my Build Results:

Building target "Torque-MacCarb-Debug" with build style "Development" (optimization:level '0', debug-symbols:on) (2 errors, 1 warning)
/usr/bin/g++-3.3 -o "/Users/melligeorgiou/TorqueGameEngineSDK/pb/build/Torque Demo Debug OSX.app/Contents/MacOS/Torque Demo Debug OSX" "-L/Users/melligeorgiou/TorqueGameEngineSDK/pb/build" "-L../lib/vorbis/macosx" "-F/Users/melligeorgiou/TorqueGameEngineSDK/pb/build" "-F../lib/openal/macCarb" -filelist /Users/melligeorgiou/TorqueGameEngineSDK/pb/../example/torque_pb_2_1.build/Torque-MacCarb-Debug.build/Objects-normal/LinkFileList "-arch" "ppc" "-prebind" "-Wl,-no_arch_warnings" "-flat_namespace" "-framework" "AGL" "-framework" "Carbon" "-framework" "OpenGL" "-framework" "CoreFoundation" "-framework" "DrawSprocket" "-framework" "CoreServices" "-logg" "-lvorbis"
ld: table of contents for archive: ../lib/vorbis/macosx/libogg.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: ../lib/vorbis/macosx/libvorbis.a is out of date; rerun ranlib(1) (can't load from it)
ld: warning prebinding disabled because dependent library: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices can't be searched

ld: table of contents for archive: ../lib/vorbis/macosx/libogg.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: ../lib/vorbis/macosx/libvorbis.a is out of date; rerun ranlib(1) (can't load from it)
ld: warning prebinding disabled because dependent library: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices can't be searched

If any one can help me with this Id be thankful.. Im more of a graphics person you see, and this stuff is really baffling me!

Thanks!

-Mel

#1
11/18/2004 (5:35 am)
GG says in the Torque documentation to re-compile as soon as the build fails, because on the first build, a directory has not been created yet. I see that there are alot of problems with OggVorbis. You may want to install the latest Ogg Vorbis drivers.

-Nick
#2
11/18/2004 (5:47 am)
Hi Nick, thanks for posting..

Yeh, I've tried recompiling, still the same error messages.. There seems to be no MAC ogg vorbis drivers.. I went to http://www.vorbis.com/ and It seems only to be for Windows and UNIX. Unless I missed something? The only mac stuff there seems to be 3rd party ogg players..

-Mel
#3
11/18/2004 (5:50 am)
Try doing what it says. run 'ranlib' on libogg.a and libvorbis.a That will fix that error.
#4
11/18/2004 (5:55 am)
Hi Nick, thanks for posting..

Yeh, I've tried recompiling, still the same error messages.. There seems to be no MAC ogg vorbis drivers.. I went to http://www.vorbis.com/ and It seems only to be for Windows and UNIX. Unless I missed something? The only mac stuff there seems to be 3rd party ogg players..

-Mel
#5
11/18/2004 (5:56 am)
Hi Kurtis..

Umm.. Come again? lol I really am a newbie at this. How do I run 'ranlib' on libogg.a and libvorbis.a?

-Mel
#7
11/18/2004 (6:17 am)
Thanks Nicholas. But still the same.

had OpenAL installed. Reinstalled it, tried it again. Still the same errors.

-Mel
#8
11/18/2004 (7:17 am)
Man.. this is driving me nuts!! lol are there any more mac developers out there that have any ideas on whats going on with this? (I'm using Xtools if I havnt already stated).

And I seems to be something to do with VORBIS. Has any mac people got this new build working?

I downloaded the mac .dmg file today from garagegames today.. So I assume I'm running the latest build.
#9
11/18/2004 (7:35 am)
Use the console, go to the directory with libogg.a, which should be torque/lib/vorbis/macosx
Then type 'ranlib *.a'
#10
11/18/2004 (7:42 am)
Man.. this is driving me nuts!! lol are there any more mac developers out there that have any ideas on whats going on with this? (I'm using Xtools if I havnt already stated).

And I seems to be something to do with VORBIS. Has any mac people got this new build working?

I downloaded the mac .dmg file today from garagegames today.. So I assume I'm running the latest build.
#11
11/18/2004 (8:19 am)
Thanks pat!

Had to learn some unix.. but nothing a few web forums didnt fix! It compiled successfully but had 36 warnings. I dont know if thats cool, but Im just happy that the damn thing compiled! LOL

Thanks to everyone that tried to help me out too! Really appreciate it!

-Mel
#12
11/18/2004 (12:23 pm)
Yeah, the warnings (duplicate symbols) are harmless, but a little annoying. Oh well.