2016-04-04 21:24:34 +12:00
|
|
|
|
2016-03-27 10:00:25 +13:00
|
|
|
# Setting Up the Development Environment on MacOSX
|
|
|
|
|
|
|
|
## Necessary Software
|
|
|
|
|
|
|
|
- git
|
|
|
|
- brew
|
|
|
|
- Xcode
|
|
|
|
- cmake
|
|
|
|
- Version 3.2.2 confirmed to work.
|
|
|
|
- Qt
|
2017-08-24 21:06:59 +12:00
|
|
|
- http://download.qt.io/official_releases/qt/5.6/5.6.2/
|
|
|
|
- qt-opensource-mac-x64-clang-5.6.2.dmg
|
2016-03-27 10:00:25 +13:00
|
|
|
- boost
|
2016-04-15 05:42:58 +12:00
|
|
|
- http://www.boost.org/users/history/version_1_55_0.html (or later, though only 1.55.0 is supported)
|
2016-03-27 10:00:25 +13:00
|
|
|
|
|
|
|
## Building on MacOSX
|
|
|
|
|
2017-08-24 21:06:59 +12:00
|
|
|
### 0. Install Qt 5.6 (Most recent is 5.6.2)
|
2016-04-04 21:24:34 +12:00
|
|
|
|
|
|
|
### 1. Install Dependent Packages
|
|
|
|
|
|
|
|
With homebrew, you can install them with following command.
|
2016-03-27 10:00:25 +13:00
|
|
|
|
|
|
|
```
|
2017-08-24 21:06:59 +12:00
|
|
|
$ brew install glew lz4 libjpeg libpng lzo pkg-config libusb cmake git-lfs libmypaint
|
2016-03-27 10:00:25 +13:00
|
|
|
```
|
|
|
|
|
2016-04-04 21:24:34 +12:00
|
|
|
Or, you should build and install them manually.
|
|
|
|
|
|
|
|
|
|
|
|
### 2. Clone the Repository
|
2016-03-27 10:00:25 +13:00
|
|
|
|
|
|
|
```
|
|
|
|
$ git clone https://github.com/opentoonz/opentoonz
|
2017-08-24 21:06:59 +12:00
|
|
|
cd opentoonz
|
|
|
|
git lfs pull
|
2016-03-27 10:00:25 +13:00
|
|
|
```
|
|
|
|
|
2016-04-04 21:24:34 +12:00
|
|
|
### (Optional) Create the stuff Directory
|
2016-03-27 10:00:25 +13:00
|
|
|
|
2017-04-12 22:53:33 +12:00
|
|
|
If the directory `/Applications/OpenToonz/OpenToonz_1.1_stuff` does not exist, enter the following command:
|
2016-03-27 10:00:25 +13:00
|
|
|
|
|
|
|
```
|
2017-08-24 21:06:59 +12:00
|
|
|
$ sudo cp -r stuff /Applications/OpenToonz/OpenToonz_1.1_stuff
|
2016-03-27 10:00:25 +13:00
|
|
|
```
|
|
|
|
|
2016-04-04 21:24:34 +12:00
|
|
|
### 3. Build tiff in thirdparty
|
2016-03-27 10:00:25 +13:00
|
|
|
|
|
|
|
```
|
2017-08-24 21:06:59 +12:00
|
|
|
$ cd thirdparty/tiff-4.0.3
|
2016-03-27 10:00:25 +13:00
|
|
|
$ ./configure && make
|
|
|
|
```
|
|
|
|
|
2016-04-04 21:24:34 +12:00
|
|
|
### 4. Put Boost library into thirdpaty directory
|
2016-03-27 10:00:25 +13:00
|
|
|
The following assumes `boost_1_55_0.tar.bz2` was downloaded to `~/Downloads`.
|
|
|
|
|
|
|
|
```
|
|
|
|
$ cd ../boost
|
|
|
|
$ mv ~/Downloads/boost_1_55_0.tar.bz2 .
|
|
|
|
$ tar xjvf boost_1_55_0.tar.bz2
|
|
|
|
```
|
|
|
|
|
2017-08-24 21:06:59 +12:00
|
|
|
### 5. Update the path to your Qt 5.6 install in opentoonz/toonz/sources/CMakeLists.txt line 160 or 172
|
|
|
|
If using Qt 5.6.2, this is unnecessary.
|
|
|
|
|
|
|
|
### 6. Copy the lzo header folder to the lzo driver directory
|
|
|
|
|
|
|
|
```
|
|
|
|
$ cd ../lzo
|
|
|
|
$ cp -r 2.03/include/lzo driver
|
|
|
|
```
|
|
|
|
|
|
|
|
### 6. Build Everything Together
|
2016-03-27 10:00:25 +13:00
|
|
|
|
|
|
|
```
|
|
|
|
$ cd ../../toonz
|
|
|
|
$ mkdir build
|
|
|
|
$ cd build
|
2017-08-24 21:06:59 +12:00
|
|
|
CMAKE_PREFIX_PATH=~/Qt5.6.2/5.6/clang_64 cmake ../sources
|
2016-03-27 10:00:25 +13:00
|
|
|
$ make
|
|
|
|
```
|
|
|
|
|
|
|
|
Please be patient as the install will take a while.
|
|
|
|
|
|
|
|
### After Building
|
|
|
|
|
|
|
|
```
|
2017-04-12 22:53:33 +12:00
|
|
|
$ open ./toonz/OpenToonz_1.1.app
|
2016-03-27 10:00:25 +13:00
|
|
|
```
|