Cmake OS X framework error

jimt
Posts: 7
Joined: Sat Apr 18, 2009 10:36 am

Cmake OS X framework error

Post by jimt »

Hi,

I'm trying to make bullet-2.75-rc3 on OS X 10.5.5 with the following cmake command:

cmake -D BUILD_SHARED_LIBS=true -D FRAMEWORK=true .

Then, a 'make' proceeds (and fails) as follows:

...
[ 80%] Built target AppBenchmarks
[ 80%] Built target AppHelloWorld
Linking CXX shared library libBulletMultiThreaded.dylib
Undefined symbols:
"_btGpu_computeGridSize", referenced from:
_btGpu_squeezeOverlappingPairBuff in btGpu3DGridBroadphase.o
_btGpu_computePairCacheChanges in btGpu3DGridBroadphase.o
_btGpu_findPairsLarge in btGpu3DGridBroadphase.o
_btGpu_findOverlappingPairs in btGpu3DGridBroadphase.o
_btGpu_findCellStart in btGpu3DGridBroadphase.o
btGpu3DGridBroadphase::computePairCacheChanges() in btGpu3DGridBroadphase.o
btGpu3DGridBroadphase::squeezeOverlappingPairBuff() in btGpu3DGridBroadphase.o
_btGpu_calcHashAABB in btGpu3DGridBroadphase.o
btGpu3DGridBroadphase::findCellStart() in btGpu3DGridBroadphase.o
ld: symbol(s) not found

Is there a known work around for this?

Thanks.
User avatar
ejtttje
Posts: 96
Joined: Mon Nov 03, 2008 9:57 pm

Re: Cmake OS X framework error

Post by ejtttje »

Yes, I've seen (and fixed) this.
There's a patch to use here:
http://code.google.com/p/bullet/issues/detail?id=246

(pssst admins, I have a couple fairly straightforward patches awaiting review...)
User avatar
ejtttje
Posts: 96
Joined: Mon Nov 03, 2008 9:57 pm

Re: Cmake OS X framework error

Post by ejtttje »