Skip to content

Instantly share code, notes, and snippets.

@sixman9
Created November 5, 2012 16:39
Show Gist options
  • Save sixman9/4018185 to your computer and use it in GitHub Desktop.
Save sixman9/4018185 to your computer and use it in GitHub Desktop.
Box2d bash build script for CMake, as per box2d instructions - Place at top of Box2d SVN checkout
#!/bin/bash
pushd ./Box2D/Build > /dev/null 2>&1
#Clean build dir
rm -fr ./*
#-DCMAKE_INSTALL_PREFIX:PATH=/opt/Box2D
cmake -DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON -D CMAKE_INSTALL_PREFIX=/opt/Box2D ..
make
sudo make install
popd > /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment