Linking Error running make (IBM CellBlade support)

emgruett
Posts: 3
Joined: Thu Jul 31, 2008 1:42 pm
Location: [Boeblingen | Sindelfingen | Esslingen], Germany

Linking Error running make (IBM CellBlade support)

Post by emgruett »

Hi,

I am getting an linker error running make from Extras/BulletMultiThreaded directory:

Code: Select all

ccache /opt/cell/sdk/../toolchain/bin/spu-gcc -o ./out/spuCollision.elf \
                            ./out/SpuTaskFile.o \
                            ./out/SpuFakeDma.o \
                            ./out/SpuContactManifoldCollisionAlgorithm_spu.o \
                            ./out/SpuContactResult.o \
                            ./out/SpuCollisionShapes.o \
                            ./out/SpuGjkPairDetector.o \
                            ./out/SpuMinkowskiPenetrationDepthSolver.o \
                            ./out/SpuVoronoiSimplexSolver.o \
                            ./out/btPersistentManifold.o \
                            ./out/btTriangleCallback.o \
                            ./out/btTriangleIndexVertexArray.o \
                            ./out/btStridingMeshInterface.o \
                            ./out/btAlignedAllocator.o \
                            -Wl,-N -lstdc++
./out/SpuTaskFile.o: In function `ProcessSpuConvexConvexCollision(SpuCollisionPairInput*, CollisionTask_LocalStoreMemory*, SpuContactResult&)':
SpuGatheringCollisionTask.cpp:(.text+0x200): undefined reference to `vtable for SpuEpaPenetrationDepthSolver'
collect2: ld returned 1 exit status
make: *** [spu] Error 1
The sources are checked out today.
Has anyone same issues compiling the newest source files for IBM Cell SDK?

Thanks
Prath
Posts: 2
Joined: Fri Sep 19, 2008 6:10 pm

Re: Linking Error running make (IBM CellBlade support)

Post by Prath »

emgruett wrote:Hi,

I am getting an linker error running make from Extras/BulletMultiThreaded directory:

Code: Select all

ccache /opt/cell/sdk/../toolchain/bin/spu-gcc -o ./out/spuCollision.elf \
                            ./out/SpuTaskFile.o \
                            ./out/SpuFakeDma.o \
                            ./out/SpuContactManifoldCollisionAlgorithm_spu.o \
                            ./out/SpuContactResult.o \
                            ./out/SpuCollisionShapes.o \
                            ./out/SpuGjkPairDetector.o \
                            ./out/SpuMinkowskiPenetrationDepthSolver.o \
                            ./out/SpuVoronoiSimplexSolver.o \
                            ./out/btPersistentManifold.o \
                            ./out/btTriangleCallback.o \
                            ./out/btTriangleIndexVertexArray.o \
                            ./out/btStridingMeshInterface.o \
                            ./out/btAlignedAllocator.o \
                            -Wl,-N -lstdc++
./out/SpuTaskFile.o: In function `ProcessSpuConvexConvexCollision(SpuCollisionPairInput*, CollisionTask_LocalStoreMemory*, SpuContactResult&)':
SpuGatheringCollisionTask.cpp:(.text+0x200): undefined reference to `vtable for SpuEpaPenetrationDepthSolver'
collect2: ld returned 1 exit status
make: *** [spu] Error 1
The sources are checked out today.
Has anyone same issues compiling the newest source files for IBM Cell SDK?

Thanks
I am also facing same issue while compiling with IBM Cell SDK .. Bullet version 2.71
If anyone knows solution please reply...

Thank you.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Linking Error running make (IBM CellBlade support)

Post by Erwin Coumans »

Either you have to add the missing file to the Makefile, or comment out any use of the SpuEpaPenetrationDepthSolver.

We are re-organizing some of the files and try to sort this out.

By the way, it would be really helpful if someone can work on a SPU ray tracer, using the batch SPU ray cast. This would give a fast software renderer, so we can show some demos on PS3 Linux.

Would this be something you could work on?
Thanks a lot,
Erwin
Prath
Posts: 2
Joined: Fri Sep 19, 2008 6:10 pm

Re: Linking Error running make (IBM CellBlade support)

Post by Prath »

Erwin Coumans wrote:Either you have to add the missing file to the Makefile, or comment out any use of the SpuEpaPenetrationDepthSolver.

We are re-organizing some of the files and try to sort this out.

By the way, it would be really helpful if someone can work on a SPU ray tracer, using the batch SPU ray cast. This would give a fast software renderer, so we can show some demos on PS3 Linux.

Would this be something you could work on?
Thanks a lot,
Erwin

Thanks for the direction...

SpuEpaPenetrationDepthSolver and SpuGjkEpa2 were missing from the Makefile.
Added them and built perfectly..

Regarding SPU ray tracer, if ill get to it ill surely post it.