Skip to content

Latest commit

 

History

History
93 lines (75 loc) · 2.37 KB

BUILDING.md

File metadata and controls

93 lines (75 loc) · 2.37 KB

Requirements

Mac OS X

Tested on Mac OS X 10.9.4 with homebrew already installed:

brew install libpng
brew install python3
brew install --with-python3 boost-python
brew install qt5
brew install lemon
brew install flex
brew install ninja

git clone https://github.com/mkeeter/antimony
cd antimony
mkdir build
cd build


cmake -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.6.1 -GNinja ..
ninja

open app/Antimony.app

Troubleshooting

If you have installed Homebrew in a non-standard directory like ~/.homebrew (the default is /usr/local), you'll need to provide a path to your Homebrew files:

export BREW_HOME=/Users/yourusername/.homebrew

cmake -DCMAKE_PREFIX_PATH=$BREW_HOME/Cellar/qt5/5.6.1 -GNinja ..
make -j8

Linux

Tested on a clean Xubuntu 16.04 virtual machine:

# Install dependencies
sudo apt install git build-essential libpng-dev python3-dev libboost-all-dev  libgl1-mesa-dev lemon flex qt5-default ninja-build cmake

# Clone the repo
git clone https://github.com/mkeeter/antimony
cd antimony

# Make a build folder
mkdir build
cd build

# Build and launch the application
qmake ../sb.pro
make -j8
./app/Antimony

You can use make install, or set up a symlink to run antimony from outside the build directory:

ln -s ~/antimony/build/app/antimony /usr/local/bin/antimony

Caveats

The path to qmake may vary depending on how Qt 5 was installed; if the instructions don't work, try

~/Qt/5.4/gcc_64/bin/qmake ../sb.pro

If running make gives the /usr/bin/ld: cannot find -lGL, create a symlink to the libGL file:

ln -s /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0 /usr/lib/libGL.so

If the top menu bar is not appearing in Ubuntu with a non-Unity desktop environment (e.g. gnome-session-flashback), run

sudo apt-get remove appmenu-qt5

to make it appear.