Help need to get framework of bullet compiled on OSX...

Mars_999
Posts: 25
Joined: Tue Dec 04, 2007 7:48 pm

Help need to get framework of bullet compiled on OSX...

Post by Mars_999 »

I get this error when I try to build the "HELLO WORLD" tutorial of bullet on the wiki. I think I built the framework correctly but I am a newbie with command line builds this is my first time!

Code: Select all


Building target “BulletDemo” of project “BulletDemo” with configuration “Release” — (5 errors, 2 warnings)
	    cd /Developer/Work/BulletDemo
    /Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.5.sdk -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -I/Developer/Work/BulletDemo/build/BulletDemo.build/Release/BulletDemo.build/BulletDemo.hmap -F/Developer/Work/BulletDemo/build/Release -F/Users/mars999/Library/Frameworks -F/Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks -I/Developer/Work/BulletDemo/build/Release/include -I/Developer/bullet-2.74/include -I/Developer/Work/BulletDemo/build/BulletDemo.build/Release/BulletDemo.build/DerivedSources/i386 -I/Developer/Work/BulletDemo/build/BulletDemo.build/Release/BulletDemo.build/DerivedSources -c /Developer/Work/BulletDemo/main.cpp -o /Developer/Work/BulletDemo/build/BulletDemo.build/Release/BulletDemo.build/Objects-normal/i386/main.o
/Developer/Work/BulletDemo/main.cpp: In function 'int main(int, const char**)':
/Developer/Work/BulletDemo/main.cpp:14: warning: unused variable 'broadphase'
		/Developer/Work/BulletDemo/main.cpp:14: warning: unused variable 'broadphase'
	    cd /Developer/Work/BulletDemo
    /Developer/usr/bin/gcc-4.0 -x c++ -arch ppc -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.5.sdk -mtune=G5 -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -I/Developer/Work/BulletDemo/build/BulletDemo.build/Release/BulletDemo.build/BulletDemo.hmap -F/Developer/Work/BulletDemo/build/Release -F/Users/mars999/Library/Frameworks -F/Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks -I/Developer/Work/BulletDemo/build/Release/include -I/Developer/bullet-2.74/include -I/Developer/Work/BulletDemo/build/BulletDemo.build/Release/BulletDemo.build/DerivedSources/ppc -I/Developer/Work/BulletDemo/build/BulletDemo.build/Release/BulletDemo.build/DerivedSources -c /Developer/Work/BulletDemo/main.cpp -o /Developer/Work/BulletDemo/build/BulletDemo.build/Release/BulletDemo.build/Objects-normal/ppc/main.o
/Developer/Work/BulletDemo/main.cpp: In function 'int main(int, const char**)':
/Developer/Work/BulletDemo/main.cpp:14: warning: unused variable 'broadphase'
		/Developer/Work/BulletDemo/main.cpp:14: warning: unused variable 'broadphase'
	    cd /Developer/Work/BulletDemo
    setenv MACOSX_DEPLOYMENT_TARGET 10.5
    /Developer/usr/bin/g++-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Developer/Work/BulletDemo/build/Release -F/Developer/Work/BulletDemo/build/Release -F/Users/mars999/Library/Frameworks -F/Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks -filelist /Developer/Work/BulletDemo/build/BulletDemo.build/Release/BulletDemo.build/Objects-normal/i386/BulletDemo.LinkFileList -mmacosx-version-min=10.5 -framework BulletCollision -framework BulletDynamics -framework BulletSoftBody -o /Developer/Work/BulletDemo/build/BulletDemo.build/Release/BulletDemo.build/Objects-normal/i386/BulletDemo
Undefined symbols:
  "btAlignedFreeInternal(void*)", referenced from:
      _main in main.o
  "btAlignedAllocInternal(unsigned long, int)", referenced from:
      _main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
		  "btAlignedFreeInternal(void*)", referenced from:
		      _main in main.o
		  "btAlignedAllocInternal(unsigned long, int)", referenced from:
		      _main in main.o
		ld: symbol(s) not found
		collect2: ld returned 1 exit status
	    cd /Developer/Work/BulletDemo
    setenv MACOSX_DEPLOYMENT_TARGET 10.5
    /Developer/usr/bin/g++-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Developer/Work/BulletDemo/build/Release -F/Developer/Work/BulletDemo/build/Release -F/Users/mars999/Library/Frameworks -F/Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks -filelist /Developer/Work/BulletDemo/build/BulletDemo.build/Release/BulletDemo.build/Objects-normal/ppc/BulletDemo.LinkFileList -mmacosx-version-min=10.5 -framework BulletCollision -framework BulletDynamics -framework BulletSoftBody -o /Developer/Work/BulletDemo/build/BulletDemo.build/Release/BulletDemo.build/Objects-normal/ppc/BulletDemo
ld warning: in /Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks/BulletCollision.framework/BulletCollision, file is not of required architecture
ld warning: in /Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks/BulletDynamics.framework/BulletDynamics, file is not of required architecture
ld warning: in /Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks/BulletSoftBody.framework/BulletSoftBody, file is not of required architecture
Undefined symbols:
  "btAxisSweep3::btAxisSweep3(btVector3 const&, btVector3 const&, unsigned short, btOverlappingPairCache*, bool)", referenced from:
      _main in main.o
  "btAlignedFreeInternal(void*)", referenced from:
      _main in main.o
  "btAlignedAllocInternal(unsigned long, int)", referenced from:
      _main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
		  "btAxisSweep3::btAxisSweep3(btVector3 const&, btVector3 const&, unsigned short, btOverlappingPairCache*, bool)", referenced from:
		      _main in main.o
		  "btAlignedFreeInternal(void*)", referenced from:
		      _main in main.o
		  "btAlignedAllocInternal(unsigned long, int)", referenced from:
		      _main in main.o
		ld: symbol(s) not found
		collect2: ld returned 1 exit status
Build failed (5 errors, 2 warnings)
Mars_999
Posts: 25
Joined: Tue Dec 04, 2007 7:48 pm

Re: Help need to get framework of bullet compiled on OSX...

Post by Mars_999 »

Ok I think I got something working...

The debug version is working for compiling....

What would the commands be to run the release version?

I used this
cmake -DBUILD_SHARED_LIBS=ON -DFRAMEWORK=ON \
-DCMAKE_INSTALL_PREFIX=/Library/Frameworks \
-DCMAKE_INSTALL_NAME_DIR=/Library/Frameworks

and then

make

and then

make install

Thanks
Mars_999
Posts: 25
Joined: Tue Dec 04, 2007 7:48 pm

Re: Help need to get framework of bullet compiled on OSX...

Post by Mars_999 »

I decided to just dump all the source files into my projects vs. a lib build....

Works fine.