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
Grimaud 7c3890
### Using brew to Install Necessary Packages
Grimaud 7c3890
Grimaud 7c3890
```
Grimaud 7c3890
$ brew install glew lz4 libjpeg libpng lzo pkg-config
Grimaud 7c3890
```
Grimaud 7c3890
Grimaud 7c3890
### Cloning the Repository
Grimaud 7c3890
Grimaud 7c3890
```
Grimaud 7c3890
$ git clone https://github.com/opentoonz/opentoonz
Grimaud 7c3890
```
Grimaud 7c3890
Grimaud 7c3890
### (Optional) Creating 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
Grimaud 7c3890
### Building tiff in thirdparty
Grimaud 7c3890
Grimaud 7c3890
```
Grimaud 7c3890
$ cd opentoonz/thirdparty/tiff-4.0.3
Grimaud 7c3890
$ ./configure && make
Grimaud 7c3890
```
Grimaud 7c3890
Grimaud 7c3890
### Installing boost to thirdpaty
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
Grimaud 7c3890
### Building Everything Together
Grimaud 7c3890
Grimaud 7c3890
```
Grimaud 7c3890
$ cd ../../toonz
Grimaud 7c3890
$ mkdir build
Grimaud 7c3890
$ cd build
Grimaud 7c3890
$ 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
```