How to Install Box2D on Ubuntu

Code: Select all

cd Desktop
wget https://github.com/erincatto/Box2D/archive/master.zip
unzip master.zip
cd Box2D-master/Box2D/Build
cmake -DCMAKE_CXX_FLAGS="-std=c++11" ..
cd Box2D
make
sudo make install


Someone experienced with CMake should really add the C++11 flag into CMakeLists.txt. I still can't get the Testbed to build using CMake. If someone wants to discuss this I would love to get the Testbed working. It's not a big deal, but it would be nice to have a working CMake script and I would be happy to put some of my spare time into getting that done.

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