How to Install Box2D on Ubuntu

Compiling, Linking, and Debugging C++ Box2D
Open Algorithms
Posts: 1
Joined: Sun Apr 19, 2015 12:07 pm

How to Install Box2D on Ubuntu

Postby Open Algorithms » Fri Sep 30, 2016 10:28 pm

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.

Return to “Build Issues”



Who is online

Users browsing this forum: No registered users and 1 guest