Skip to content

Instantly share code, notes, and snippets.

@WillSams
Last active February 2, 2021 08:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WillSams/4b0a2ac1906761a74b6775eb367f7afa to your computer and use it in GitHub Desktop.
Save WillSams/4b0a2ac1906761a74b6775eb367f7afa to your computer and use it in GitHub Desktop.
Compiling/Installing Box2d on LInux
sudo su && apt-get install g++ cmake libglu-dev libxi-dev freeglut3-dev p7zip-full #only step in this gist Debian/Ubuntu/LinuxMint specific
wget http://box2d.googlecode.com/files/Box2D_v2.3.0.7z
7z x Box2D_v2.3.0.7z
cd Box2D_v2.3.0/Box2D/Build
cmake -DBOX2D_VERSION=2.3.0 \
-DBOX2D_INSTALL=ON \
-DBOX2D_INSTALL_DOC=ON \
-DBOX2D_BUILD_SHARED=ON \
-DBOX2D_BUILD_STATIC=ON \
-DBOX2D_BUILD_EXAMPLES=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VERBOSE_MAKEFILE=ON \
..
make
make preinstall
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -P cmake_install.cmake
@EpicMember
Copy link

It doesn't work, I doesen't understand why, can you help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment