You are not logged in.

#1 2015-02-19 04:32:53

PPeter
Member
Registered: 2012-08-21
Posts: 19

[SOLVED] [C++] Bullet Physics Library Installation

Hello all,

Straight to the point, has anyone gotten it built on their system and would take the time to help me through
building it?

I tried the package from pacman, but I believe the header files have incorrect include paths. So I removed it
and decided to try to build it from the sites source. Followed the steps outlined here, but I ran into the same
issue with the includes. So I went on an editing spree to fix the paths for just the collision detection portion for
now (the lib was installed into /usr/local). I made my test program, and now it's complaining about an undefined
reference to btAlignedFreeInternal (void*) and several similar functions:

./obj/main_d.o: In function `btAlignedAllocator<int, 16u>::deallocate(int*)':
/usr/local/include/bullet/LinearMath/btAlignedAllocator.h:90: undefined reference to `btAlignedFreeInternal(void*)'
./obj/main_d.o: In function `btAlignedAllocator<btHashInt, 16u>::deallocate(btHashInt*)':
/usr/local/include/bullet/LinearMath/btAlignedAllocator.h:90: undefined reference to `btAlignedFreeInternal(void*)'
./obj/main_d.o: In function `btAlignedAllocator<btTriangleInfo, 16u>::deallocate(btTriangleInfo*)':
/usr/local/include/bullet/LinearMath/btAlignedAllocator.h:90: undefined reference to `btAlignedFreeInternal(void*)'
./obj/mainGameState_d.o: In function `cMainState::cMainState(SDL_Renderer*)':
/home/peter/Programming/space_game/./src/mainGameState.cpp:25: undefined reference to `btDefaultCollisionConfiguration::btDefaultCollisionConfiguration(btDefaultCollisionConstructionInfo const&)'
/home/peter/Programming/space_game/./src/mainGameState.cpp:26: undefined reference to `btCollisionDispatcher::btCollisionDispatcher(btCollisionConfiguration*)'
/home/peter/Programming/space_game/./src/mainGameState.cpp:29: undefined reference to `btAxisSweep3::btAxisSweep3(btVector3 const&, btVector3 const&, unsigned short, btOverlappingPairCache*, bool)'
/home/peter/Programming/space_game/./src/mainGameState.cpp:31: undefined reference to `btCollisionWorld::btCollisionWorld(btDispatcher*, btBroadphaseInterface*, btCollisionConfiguration*)'
./obj/mainGameState_d.o: In function `btAxisSweep3Internal<unsigned short>::operator new(unsigned long)':
/usr/local/include/bullet/BulletCollision/BroadphaseCollision/btAxisSweep3.h:45: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
./obj/mainGameState_d.o: In function `btAxisSweep3Internal<unsigned short>::operator delete(void*)':
/usr/local/include/bullet/BulletCollision/BroadphaseCollision/btAxisSweep3.h:45: undefined reference to `btAlignedFreeInternal(void*)'

Without wanting to search for the header file where these are located, I was wondering whether
1) this was even the correct approach to fixing the problem? And,
2) Did I just really botch the installation process or is there something wrong with the include headers?

Any help is appreciated.

--------------------------------------------------------------------------------------------------------------------------------------------
EDIT:
I would like to apologize for making a pointless thread about this. I literally just realized once I pressed submit
that I hadn't added the appropriate libraries to my makefile.

So nevermind, everything is alright for now...
--------------------------------------------------------------------------------------------------------------------------------------------


Regards,

Peter

Last edited by PPeter (2015-02-19 04:37:52)

Offline

Board footer

Powered by FluxBB