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
Stephen Shkardoon 3d9be0
  - http://download.qt.io/official_releases/qt/5.6/5.6.0/
Stephen Shkardoon 3d9be0
    - qt-opensource-mac-x64-clang-5.6.0.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
Keisuke Ogaki 9cb85e
### 0. Install Qt
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
```
Keisuke Ogaki 9cb85e
$ brew install glew lz4 libjpeg libpng lzo pkg-config libusb
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
Grimaud 7c3890
```
Grimaud 7c3890
Keisuke Ogaki 9cb85e
### (Optional) Create the stuff Directory
Grimaud 7c3890
Grimaud 7c3890
If the directory `/Applications/OpenToonz/OpenToonz_1.0_stuff` does not exist, enter the following command:
Grimaud 7c3890
Grimaud 7c3890
```
Grimaud 7c3890
$ sudo cp -r opentoonz/stuff /Applications/OpenToonz/OpenToonz_1.0_stuff
Grimaud 7c3890
```
Grimaud 7c3890
Keisuke Ogaki 9cb85e
### 3. Build tiff in thirdparty
Grimaud 7c3890
Grimaud 7c3890
```
Grimaud 7c3890
$ cd opentoonz/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
Keisuke Ogaki 9cb85e
### 5. Build Everything Together
Grimaud 7c3890
Grimaud 7c3890
```
Grimaud 7c3890
$ cd ../../toonz
Grimaud 7c3890
$ mkdir build
Grimaud 7c3890
$ cd build
Stephen Shkardoon 3d9be0
  CMAKE_PREFIX_PATH=~/Qt5.6.0/5.6/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
```
Grimaud 7c3890
$ open ./toonz/OpenToonz_1.0.app
Grimaud 7c3890
```