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
Grimaud 7c3890
  - http://download.qt.io/official_releases/qt/5.5/5.5.1/
Grimaud 7c3890
    - qt-opensource-mac-x64-clang-5.5.1.dmg
Grimaud 7c3890
- boost
Grimaud 7c3890
  - http://www.boost.org/users/history/version_1_55_0.html
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
Keisuke Ogaki 9cb85e
  CMAKE_PREFIX_PATH=~/Qt5.5.1/5.5/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
```