Permalink
113 lines (87 sloc) 2.65 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
brew install cmake

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

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
cmake -GNinja ..
ninja
./app/antimony

To put Antimony on your path, call sudo ninja install. This does two things:

  • The antimony executable is copied to /usr/local/bin
  • Antimony's Python libraries are copied to /usr/local/share/antimony

Debian packaging

Packaging for the Debian or flavors based on it can be done using the content of deploy/linux/debian directory.

In the project's root directory create a symbolic link:

ln -s deploy/linux/debian debian

Build the package:

dpkg-buildpackage -us -uc

At the end of this you'll find the packages in the directory containing the project's root directory. For example:

antimony_0.9.2_amd64.changes
antimony_0.9.2_amd64.deb
antimony_0.9.2.dsc
antimony_0.9.2.tar.xz
antimony-dbg_0.9.2_amd64.deb

To install the package, as root or using sudo:

dpkg --install antimony_0.9.2_amd64.deb

Debugging

cannot find -lGL

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

Missing top menu

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.