From 05b50ff335f19a3fb253ca5592a79fefc672ea7f Mon Sep 17 00:00:00 2001 From: Tim Poulsen Date: Thu, 1 Oct 2020 20:11:19 -0400 Subject: [PATCH 1/2] Update the build instructions to handle updated dependency versions --- BUILDING.md | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/BUILDING.md b/BUILDING.md index a2249b96..2a275f41 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -1,6 +1,7 @@ Requirements ------------ - [Qt 5.4 or later](http://www.qt.io/) +- [Homebrew](https://brew.sh/) - [Python 3](https://www.python.org/) - [Boost.Python](http://www.boost.org/doc/libs/1_57_0/libs/python/doc/index.html) (linked against Python 3) - [`libpng`](http://www.libpng.org/pub/png/libpng.html) @@ -12,29 +13,53 @@ Requirements Mac OS X -------- -Tested on Mac OS X 10.13.4 with [homebrew](http://brew.sh/) already installed: + +Tested on Mac OS X 10.13.4 and Mac 10.15.6 (Catalina) with Python 3 and Homebrew installed: + +1. Install dependencies: + ``` brew install libpng -brew install python3 brew install boost-python3 brew install qt5 brew install lemon brew install flex brew install ninja brew install cmake +``` + +2. Clone Antimony +``` git clone https://github.com/mkeeter/antimony cd antimony mkdir build -cd build +``` + +3. Edit CMakeLists.txt to match your major/minor Python version. +Change line 11 `find_package(Python 3.3 ...` to match your Python version. For example, using Python 3.8.5, you'll edit to be `3.8` (and leave off the `.5` part) -cmake -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt/5.10.1 -GNinja .. +4. Build the app + +Note: the `cmake` command must note the exact version of Qt that you installed. + +``` +cd build +ls /usr/local/Cellar/qt +# use the number shown there in the next command in place of "5.15.1" +cmake -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt/5.15.1 -GNinja .. ninja +``` + +5. Done! Open the app + +``` open app/Antimony.app ``` + -------------------------------------------------------------------------------- Linux From 22322b791ea5585576808bf40c3ce4ee78add2a9 Mon Sep 17 00:00:00 2001 From: Tim Poulsen Date: Fri, 2 Oct 2020 20:58:00 -0400 Subject: [PATCH 2/2] remove editing CMakeLists.txt step --- BUILDING.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/BUILDING.md b/BUILDING.md index 2a275f41..594caf3d 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -36,11 +36,7 @@ cd antimony mkdir build ``` -3. Edit CMakeLists.txt to match your major/minor Python version. - -Change line 11 `find_package(Python 3.3 ...` to match your Python version. For example, using Python 3.8.5, you'll edit to be `3.8` (and leave off the `.5` part) - -4. Build the app +3. Build the app Note: the `cmake` command must note the exact version of Qt that you installed. @@ -53,7 +49,7 @@ ninja ``` -5. Done! Open the app +4. Done! Open the app ``` open app/Antimony.app