Game Development Community

iTGB compilation error

by Julien LANGE · in iTorque 2D · 04/29/2009 (12:35 pm) · 5 replies

I am trying since 2 days to compile iTGB but i am having more than 10002 error & warning when compiling. It seems that openAL is causing problem.

I have tried to use the Framework from the developper folder (on a MAC) but without result.

Could someone help mee ?


Thanks a lot .

#1
04/29/2009 (12:48 pm)
I have replaced the Framework folder of iTGB with the Framework folder of TGB and it now have only 1 error :

mkdir "../../../tgb/Torque Game Builder.app/Contents/MacOS"
cd /Applications/iTGB_1_1/engine/compilers/Xcode
setenv MACOSX_DEPLOYMENT_TARGET 10.5
/Developer/usr/bin/g++-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L../../../tgb -F../../../tgb -F../../lib/openal/macosx -F../../lib/xiph/macosx -F/Applications/iTGB_1_1/engine/lib/vorbis/macosx -F/Applications/iTGB_1_1/engine/lib/openal/macosx -filelist "/Applications/iTGB_1_1/engine/compilers/Xcode/build/Torque2D.build/Default/Torque Game Builder.build/Objects-normal/i386/Torque Game Builder.LinkFileList" -mmacosx-version-min=10.5 -lz -framework Accelerate -framework AGL -framework Carbon -framework OpenGL -framework CoreFoundation -framework DrawSprocket -framework Ogg -framework Theora -framework Vorbis -framework Cocoa -framework OpenAL -prebind -o "../../../tgb/Torque Game Builder.app/Contents/MacOS/Torque Game Builder"
Undefined symbols:
"DictHash::nextPrime(unsigned int)", referenced from:
HashTable<char const*, FSMState*>::_resize(unsigned int)in Actor.o
HashTable<char const*, char const*>::_resize(unsigned int)in ActorAnimator.o
HashTable<char const*, FSMState*>::_resize(unsigned int)in ActorAnimator.o
HashTable<unsigned int, t2dSceneObject*>::_resize(unsigned int)in SpawnPointManager.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
"DictHash::nextPrime(unsigned int)", referenced from:
HashTable<char const*, FSMState*>::_resize(unsigned int)in Actor.o
HashTable<char const*, char const*>::_resize(unsigned int)in ActorAnimator.o
HashTable<char const*, FSMState*>::_resize(unsigned int)in ActorAnimator.o
HashTable<unsigned int, t2dSceneObject*>::_resize(unsigned int)in SpawnPointManager.o
ld: symbol(s) not found
collect2: ld returned 1 exit status



What is bad ?

#2
04/29/2009 (1:44 pm)
ok I have added the 2 tDictionnary files to the core folder but know, i cannot compile the TGBGame.app file.

here is the beginning of the errors from the "build resuilts"
mkdir "../../../tgb/gameData/T2DProject/TGBGame Debug.app/Contents/MacOS"
cd /Applications/iTGB_1_1/engine/compilers/Xcode
setenv MACOSX_DEPLOYMENT_TARGET 10.5
/Developer/usr/bin/g++-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L../../../tgb/gameData/T2DProject -F../../../tgb/gameData/T2DProject -F../../lib/openal/macosx -F../../lib/xiph/macosx -filelist "/Applications/iTGB_1_1/engine/compilers/Xcode/build/Torque2D.build/Default/TGBGame Debug.build/Objects-normal/i386/TGBGame Debug.LinkFileList" -mmacosx-version-min=10.5 -lz -framework Accelerate -framework AGL -framework Carbon -framework OpenGL -framework CoreFoundation -framework DrawSprocket -framework Ogg -framework Theora -framework Vorbis -framework Cocoa -prebind -o "../../../tgb/gameData/T2DProject/TGBGame Debug.app/Contents/MacOS/TGBGame Debug"
Undefined symbols:
"_alcMakeContextCurrent", referenced from:
Audio::OpenALInit() in audio.o
"_alcGetCurrentContext", referenced from:
AudioBuffer::getALBuffer() in audioBuffer.o
AudioProfile::onAdd() in audioDataBlock.o
"_alGetSourcef", referenced from:
alxUpdateMaxDistance() in audio.o
alxGetSourcef(unsigned int, int, float*)in audio.o
alxUpdateScores(bool) in audio.o
alxUpdateScores(bool) in audio.o
"_alGetSourcei", referenced from:
alxIsPlaying(unsigned int)in audio.o
alxUpdateTypeGain(unsigned int)in audio.o
alxUpdateMaxDistance() in audio.o
alxEnableEnvironmental(bool) in audio.o
alxEnableEnvironmental(bool) in audio.o
alxGetSourcei(unsigned int, int, int*)in audio.o
alxIsValidHandle(unsigned int)in audio.o
alxGatherMetrics() in audio.o
alxUpdateScores(bool) in audio.o
alxCloseHandles() in audio.o
OggMixedStreamSource::GetAvailableBuffer() in oggMixedStreamSource.o
WavStreamSource::updateBuffers() in wavStreamSource.o
TheoraTexture::getTheoraTime() in theoraPlayer.o
"_alcCloseDevice", referenced from:
Audio::OpenALShutdown() in audio.o
"_alSourcef", referenced from:
alxSourcePlay(unsigned int, Resource<AudioBuffer>, Audio::Description const*, MatrixF const*)in audio.o
alxSourcePlay(unsigned int, Resource<AudioBuffer>, Audio::Description const*, MatrixF const*)in audio.o
alxSourcePlay(unsigned int, Resource<AudioBuffer>, Audio::Description const*, MatrixF const*)in audio.o
alxSourcePlay(unsigned int, Resource<AudioBuffer>, Audio::Description const*, MatrixF const*)in audio.o
alxSourcePlay(unsigned int, Resource<AudioBuffer>, Audio::Description const*, MatrixF const*)in audio.o
alxSourcePlay(AudioStreamSource*) in audio.o
alxSourcePlay(AudioStreamSource*) in audio.o
alxSourcePlay(AudioStreamSource*) in audio.o
alxSourcePlay(AudioStreamSource*) in audio.o
alxSourcePlay(AudioStreamSource*) in audio.o
alxUpdateTypeGain(unsigned int)in audio.o
alxUpdateMaxDistance() in audio.o
alxSourcef(unsigned int, int, float)in audio.o
alxSourcef(unsigned int, int, float)in audio.o
"_alSourcei", referenced from:
alxSourcePlay(unsigned int, Resource<AudioBuffer>, Audio::Description const*, MatrixF const*)in audio.o
alxSourcePlay(unsigned int, Resource<AudioBuffer>, Audio::Description const*, MatrixF const*)in audio.o
alxSourcePlay(unsigned int, Resource<AudioBuffer>, Audio::Description const*, MatrixF const*)in audio.o
alxSourcePlay(unsigned int, Resource<AudioBuffer>, Audio::Description const*, MatrixF const*)in audio.o
alxSourcePlay(unsigned int, Resource<AudioBuffer>, Audio::Description const*, MatrixF const*)in audio.o
alxSourcePlay(unsigned int, Resource<AudioBuffer>, Audio::Description const*, MatrixF const*)in audio.o
alxSourcePlay(AudioStreamSource*) in audio.o
alxSourcePlay(AudioStreamSource*) in audio.o
alxSourcePlay(AudioStreamSource*) in audio.o
alxSourcePlay(AudioStreamSource*) in audio.o
alxSourcei(unsigned int, int, int)in audio.o
OggMixedStreamSource::initStream() in oggMixedStreamSource.o
OggMixedStreamSource::initStream() in oggMixedStreamSource.o
OggMixedStreamSource::freeStream() in oggMixedStreamSource.o
WavStreamSource::initStream() in wavStreamSource.o
WavStreamSource::initStream() in wavStreamSource.o
#3
04/29/2009 (1:46 pm)
undefined symbol (note that i am using the OpenAL Framework from the Developer folder (not iTGB)).

thanks for your help.
#4
08/05/2009 (10:11 am)
Julien: I have same problem as you had, did you find how to solve it? Thanks
#5
06/17/2012 (10:33 am)
tDictionary.h and tDictionary.cpp all necessary for compile, on itgb 1.5