I can run the Testbed in VS2013, what next?

So I've generated a Visual Studio solution using CMake and the testbed now builds and runs. How do I now install Box2D so that I can use it in my own projects?

Thanks for any help 😉
Can someone please help me out. I've been trying for 2 days to get this working now. I must have compiled about 10 times to try get this working and I'm stressing the hell out.

If someone could just guide me in the right direction, it'd be much appreciated.
If you really expect anyone to help, how about at least describing some of the error messages you get when compiling?
I have not used VS specifically, but usually the cmake build creates a file called libBox2D.a (maybe libBox2d.lib for VS). You can add that to your project.
irresistible force wrote:
If you really expect anyone to help, how about at least describing some of the error messages you get when compiling?
I have not used VS specifically, but usually the cmake build creates a file called libBox2D.a (maybe libBox2d.lib for VS). You can add that to your project.


Okay, I'll list the steps what I've done:

- Download Box2D sources.
- Run CMake to generate a Visual Studio 12 solution.
- Open the solution in Visual Studio and build the "ALL_BUILD" project.

The project compiles fine, no errors at all. I just don't know how I can now use Box2D in my own projects. The testbed also compiles and runs fine.
I'm now trying Eclipse with the CDT plugin instead of Visual Studio. I've used CMake to generate MinGW makefiles, and then I've run mingw32-make to compile Box2D. I now have a "libBox2D.a" file. Is this all I need? If so, how would I add it to my project?
I have no idea how Eclipse works, but the documentation (or the internet at large) should be able to tell you how to add a file to your project. This is nothing to do with Box2D specifically.
Yay, I now have both Box2D and SFML set up with Eclipse (CDT). Time to *finally* start my game.

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