czaloj / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

btVector get128() isn't defined when using USE_LIBSPE2 #148

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

make -C src/ibmsdk && make -C src/BulletMultiThreaded/ -f Makefile.original
spu ppu  && make -C Demos/CellSpuDemo/ibmsdk/

What is the expected output? What do you see instead?

I expect: Working compile

What I'm seeing: 
ccache /usr/bin/spu-gcc -DUSE_LIBSPE2 -D__SPU__ -DUSE_PE_BOX_BOX -DNDEBUG
-W -Wall -Winline -O3 -mbranch-hints -fomit-frame-pointer -ftree-vectorize
-finline-functions -ftree-vect-loop-version -ftree-loop-optimize
-ffast-math -fno-rtti -fno-exceptions -c -include spu_intrinsics.h -include
stdbool.h -Ivectormath/scalar/cpp -I. -I/opt/cell/sysroot/usr/spu/include
-I../../src -I./SpuNarrowPhaseCollisionTask -o ./out/SpuCollisionShapes.o
./SpuNarrowPhaseCollisionTask/SpuCollisionShapes.cpp
./SpuNarrowPhaseCollisionTask/SpuCollisionShapes.cpp: In function
'btVector3 localGetSupportingVertexWithoutMargin(int, void*, const
btVector3&, SpuConvexPolyhedronVertexData*)':
./SpuNarrowPhaseCollisionTask/SpuCollisionShapes.cpp:192: error: 'class
btVector3' has no member named 'get128'
./SpuNarrowPhaseCollisionTask/SpuCollisionShapes.cpp:192: error: 'const
class btVector3' has no member named 'get128'
./SpuNarrowPhaseCollisionTask/SpuCollisionShapes.cpp:193: error: 'class
btVector3' has no member named 'get128'
./SpuNarrowPhaseCollisionTask/SpuCollisionShapes.cpp:193: error: 'const
class btVector3' has no member named 'get128'
./SpuNarrowPhaseCollisionTask/SpuCollisionShapes.cpp:194: error: 'class
btVector3' has no member named 'get128'
./SpuNarrowPhaseCollisionTask/SpuCollisionShapes.cpp:194: error: 'const
class btVector3' has no member named 'get128'

What version of the product are you using? On what operating system?

svn rev. 1539

Original issue reported on code.google.com by pinhighw...@googlemail.com on 26 Nov 2008 at 10:31

GoogleCodeExporter commented 9 years ago
This patch fixes this problem.

Original comment by pinhighw...@googlemail.com on 26 Nov 2008 at 10:33

Attachments:

GoogleCodeExporter commented 9 years ago
Those a SPU optimizations, but can't be used right now on IBM Cell sdk, because 
of 
unaligned btVector3 (see related previous issue)

It has been disabled using #if !defined (USE_LIBSPE2)
http://code.google.com/p/bullet/source/detail?r=1540

Original comment by erwin.coumans on 26 Nov 2008 at 7:43