Linking Hello World with Xcode

augury
Posts: 1
Joined: Wed Nov 04, 2009 12:00 am

Linking Hello World with Xcode

Post by augury »

I've been trying to build the hello world example using xcode but whenever I build I keep getting a linker error (namely symbol(s) not found). I looked at http://bulletphysics.com/Bullet/BulletP ... c223854821 which says I need the following libraries: libbulletdynamics, libbulletcollision, libbulletmath. I initially built bullet physics (using cmake . -G Xcode), but no libraries are put into bullet-2.73/lib.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Linking Hello World with Xcode

Post by Erwin Coumans »

CMake leaves its libraries in different folders, not the Bullet/lib folder. There are several options, including those 3:
  • Recursively add all files in the Bullet/src folder to your XCode project
  • Using CMake, the libraries might be here (replace Release by Debug for Debug version)
    Bullet/src/LinearMath/Release/libLinearMath.a
    Bullet/src/BulletCollision/Release/libBulletCollision.a
    Bullet/src/BulletDynamics/Release/libBulletDynamics.a
    Bullet/src/BulletSoftBody/Release/libBulletSoftBody.a
    Bullet/src/BulletMultiThreaded/Release/libBulletMultiThreaded.a
  • Use cmake for your project, and include the src folder and its CMakeList.txt in your project.
We will update the manual/wiki.

Hope this helps,
Erwin