Last active
February 2, 2021 08:23
-
-
Save WillSams/4b0a2ac1906761a74b6775eb367f7afa to your computer and use it in GitHub Desktop.
Compiling/Installing Box2d on LInux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It doesn't work, I doesen't understand why, can you help me?