|
Keisuke Ogaki |
9cb85e |
|
|
Grimaud |
7c3890 |
# Setting Up the Development Environment on MacOSX
|
|
Grimaud |
7c3890 |
|
|
Grimaud |
7c3890 |
## Necessary Software
|
|
Grimaud |
7c3890 |
|
|
Grimaud |
7c3890 |
- git
|
|
Grimaud |
7c3890 |
- brew
|
|
Grimaud |
7c3890 |
- Xcode
|
|
Grimaud |
7c3890 |
- cmake
|
|
Grimaud |
7c3890 |
- Version 3.2.2 confirmed to work.
|
|
Grimaud |
7c3890 |
- Qt
|
|
shun_iwasawa |
31362d |
- http://download.qt.io/official_releases/qt/5.9/5.9.2/
|
|
shun_iwasawa |
31362d |
- qt-opensource-mac-x64-5.9.2.dmg
|
|
Grimaud |
7c3890 |
- boost
|
|
Stephen Shkardoon |
e239ec |
- http://www.boost.org/users/history/version_1_55_0.html (or later, though only 1.55.0 is supported)
|
|
Grimaud |
7c3890 |
|
|
Grimaud |
7c3890 |
## Building on MacOSX
|
|
Grimaud |
7c3890 |
|
|
shun_iwasawa |
31362d |
### 0. Install Qt 5.9 (Most recent is 5.9.2)
|
|
Keisuke Ogaki |
9cb85e |
|
|
Keisuke Ogaki |
9cb85e |
### 1. Install Dependent Packages
|
|
Keisuke Ogaki |
9cb85e |
|
|
Keisuke Ogaki |
9cb85e |
With homebrew, you can install them with following command.
|
|
Grimaud |
7c3890 |
|
|
Grimaud |
7c3890 |
```
|
|
Jeremy Bullock |
5ffb5d |
$ brew install glew lz4 libjpeg libpng lzo pkg-config libusb cmake git-lfs libmypaint
|
|
Grimaud |
7c3890 |
```
|
|
Grimaud |
7c3890 |
|
|
Keisuke Ogaki |
9cb85e |
Or, you should build and install them manually.
|
|
Keisuke Ogaki |
9cb85e |
|
|
Keisuke Ogaki |
9cb85e |
|
|
Keisuke Ogaki |
9cb85e |
### 2. Clone the Repository
|
|
Grimaud |
7c3890 |
|
|
Grimaud |
7c3890 |
```
|
|
Grimaud |
7c3890 |
$ git clone https://github.com/opentoonz/opentoonz
|
|
Jeremy Bullock |
5ffb5d |
cd opentoonz
|
|
Jeremy Bullock |
5ffb5d |
git lfs pull
|
|
Grimaud |
7c3890 |
```
|
|
Grimaud |
7c3890 |
|
|
Keisuke Ogaki |
9cb85e |
### (Optional) Create the stuff Directory
|
|
Grimaud |
7c3890 |
|
|
shun-iwasawa |
f39ea0 |
If the directory `/Applications/OpenToonz/OpenToonz_stuff` does not exist, enter the following command:
|
|
Grimaud |
7c3890 |
|
|
Grimaud |
7c3890 |
```
|
|
shun-iwasawa |
f39ea0 |
$ sudo cp -r stuff /Applications/OpenToonz/OpenToonz_stuff
|
|
Grimaud |
7c3890 |
```
|
|
Grimaud |
7c3890 |
|
|
Keisuke Ogaki |
9cb85e |
### 3. Build tiff in thirdparty
|
|
Grimaud |
7c3890 |
|
|
Grimaud |
7c3890 |
```
|
|
Jeremy Bullock |
5ffb5d |
$ cd thirdparty/tiff-4.0.3
|
|
Grimaud |
7c3890 |
$ ./configure && make
|
|
Grimaud |
7c3890 |
```
|
|
Grimaud |
7c3890 |
|
|
Keisuke Ogaki |
9cb85e |
### 4. Put Boost library into thirdpaty directory
|
|
Grimaud |
7c3890 |
The following assumes `boost_1_55_0.tar.bz2` was downloaded to `~/Downloads`.
|
|
Grimaud |
7c3890 |
|
|
Grimaud |
7c3890 |
```
|
|
Grimaud |
7c3890 |
$ cd ../boost
|
|
Grimaud |
7c3890 |
$ mv ~/Downloads/boost_1_55_0.tar.bz2 .
|
|
Grimaud |
7c3890 |
$ tar xjvf boost_1_55_0.tar.bz2
|
|
Grimaud |
7c3890 |
```
|
|
Grimaud |
7c3890 |
|
|
shun_iwasawa |
31362d |
### 5. Update the path to your Qt 5.9 install in opentoonz/toonz/sources/CMakeLists.txt line 160 or 172
|
|
shun_iwasawa |
31362d |
If using Qt 5.9.2, this is unnecessary.
|
|
Jeremy Bullock |
5ffb5d |
|
|
Jeremy Bullock |
5ffb5d |
### 6. Copy the lzo header folder to the lzo driver directory
|
|
Jeremy Bullock |
5ffb5d |
|
|
Jeremy Bullock |
5ffb5d |
```
|
|
Jeremy Bullock |
5ffb5d |
$ cd ../lzo
|
|
Jeremy Bullock |
5ffb5d |
$ cp -r 2.03/include/lzo driver
|
|
Jeremy Bullock |
5ffb5d |
```
|
|
Jeremy Bullock |
5ffb5d |
|
|
Jeremy Bullock |
5ffb5d |
### 6. Build Everything Together
|
|
Grimaud |
7c3890 |
|
|
Grimaud |
7c3890 |
```
|
|
Grimaud |
7c3890 |
$ cd ../../toonz
|
|
Grimaud |
7c3890 |
$ mkdir build
|
|
Grimaud |
7c3890 |
$ cd build
|
|
shun_iwasawa |
31362d |
CMAKE_PREFIX_PATH=~/Qt5.9.2/5.9.2/clang_64 cmake ../sources
|
|
Grimaud |
7c3890 |
$ make
|
|
Grimaud |
7c3890 |
```
|
|
Grimaud |
7c3890 |
|
|
Grimaud |
7c3890 |
Please be patient as the install will take a while.
|
|
Grimaud |
7c3890 |
|
|
Grimaud |
7c3890 |
### After Building
|
|
Grimaud |
7c3890 |
|
|
Grimaud |
7c3890 |
```
|
|
shun-iwasawa |
f39ea0 |
$ open ./toonz/OpenToonz.app
|
|
Grimaud |
7c3890 |
```
|