I posted about something similar before, but I've cleaned it up a bit. Just unzip the file and put the CMake folder in the Platforms folder. Then, to compile:
That will build Box2D as a static library, and compile the HelloWorld program. I couldn't get the TestBed to work unfortunately, I don't know if it's a bug in the latest release or something on my end.
The nice thing about this is that it doesn't require any IDE, it should work on all platforms, and will work on future versions of Box2D as long as Erin doesn't change the directory structure too much. I think there's a GUI available for Windows too.
Edit: Updated. Now compiles TestBed. Erin has warned me that this might not be future-compatible though.
Code:
cd Box2D/Contributions/Platforms/CMake
cmake .
make
cmake .
make
That will build Box2D as a static library, and compile the HelloWorld program. I couldn't get the TestBed to work unfortunately, I don't know if it's a bug in the latest release or something on my end.
The nice thing about this is that it doesn't require any IDE, it should work on all platforms, and will work on future versions of Box2D as long as Erin doesn't change the directory structure too much. I think there's a GUI available for Windows too.
Edit: Updated. Now compiles TestBed. Erin has warned me that this might not be future-compatible though.