Last active
July 28, 2020 19:58
-
-
Save huksley/c1846d277fe39ea6e256e72c22f08b32 to your computer and use it in GitHub Desktop.
Mars build script
This file contains 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
#!/bin/bash | |
set +x | |
if [ -d Mars ]; then | |
cd Mars | |
git pull | |
cd .. | |
else | |
git clone https://[email protected]/Magnum3D/Mars | |
fi | |
if [ -d libzpp ]; then | |
cd libzpp | |
git pull | |
cd .. | |
else | |
git clone https://github.com/jlefley/libzpp | |
fi | |
if [ -d libtar ]; then | |
cd libtar | |
git pull | |
cd .. | |
else | |
git clone https://github.com/tklauser/libtar | |
fi | |
echo "Building libzpp" | |
cd libzpp | |
make | |
sudo make install | |
cd .. | |
echo "Building libtar" | |
cd libtar | |
autoreconf --force --install | |
./configure | |
make | |
sudo make install | |
cd .. | |
echo "Installing dependencies" | |
sudo apt-get install -y libmagick++-dev libboost-dev libiw-dev libudev-dev libdrm-dev cmake | |
echo "Building Mars" | |
cd Mars | |
cd C++ | |
mkdir -p build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Debug .. | |
make | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment