[Solved] Building Testbed with XCode

Hi there !

I wanted to try out the new motor joint so I wanted to see the testbed example but I can't get to build it with the latest repository of box2D.

I tried with Cmake but when trying to cmake either Box2D or Testbed I get
Quote:
CMake Error at Box2D/CMakeLists.txt:196 (install):
install TARGETS given no LIBRARY DESTINATION for shared library target
"Box2D_shared".


I wanted then to build it thanks to Xcode since a xcodeproj file is given.
It says me build succeeded but then I checked for testbed built file but there is no such file on my computer… I wonder why.

Do you have any idea ?

Thanks !
About the cmake problem, you can comment those lines out in the CMakeLists.txt file.
About the Xcode problem, check that you are not building the HelloWorld example instead.
Well for XCode, I'm using the Box2D/Build/xcode4/Box2D.xcodeproj file…
I checked the output after compiling and it seems it built only the Box2D target but I can see there are 4 targets, including Testbed… I have to find out how to build the other targets…

Edit : I got it !

It's fine now. Thanks !

Original thread: https://box2d.org/forum/viewtopic.php?t=8466