Instructions for installing Natron from sources on Microsoft Windows ==================================================================== # Installing with MSYS2 [MSYS2](https://sourceforge.net/projects/msys2/) is a unix-like toolchain that can be used to build Windows applications. It provides most dependencies required by Natron. Follow the [Windows SDK](tools/MINGW-packages/README.md) instructions to setup MSYS2 and install the required MSYS packages. ### OpenFX Natron uses the OpenFX API, before building you should make sure it is up to date. For that, go under Natron and type ``` git submodule update -i --recursive ``` ### Download OpenColorIO-Configs In the past, OCIO configs were a submodule, though due to the size of the repository, we have chosen instead to make a tarball release and let you download it [here](https://github.com/NatronGitHub/OpenColorIO-Configs/archive/Natron-v2.1.tar.gz). Place it at the root of Natron repository. ***note:*** *If it is name something like: `OpenColorIO-Configs-Natron-v2.0` rename it to `OpenColorIO-Configs`* ### config.pri The `config.pri` is used to define the locations of the dependencies. It is probably the most confusing part of the build process. Create a `config.pri` file next to the `Project.pro` that will tell the .pro file where to find those libraries. You can fill it with the following proposed code to point to the libraries. Of course you need to provide valid paths that are valid on your system. You can find more examples specific to distributions below. INCLUDEPATH is the path to the include files LIBS is the path to the libs ``` ----- copy and paste the following in a terminal ----- cat > config.pri << EOF boost-serialization-lib: LIBS += -lboost_serialization boost: LIBS += -lboost_thread -lboost_system expat: LIBS += -lexpat expat: PKGCONFIG -= expat cairo: PKGCONFIG -= cairo EOF ----- end ----- ``` ***note:*** *the last line for cairo is only necessary if the package for cairo in your distribution is lower than version 1.12 (as it is on Ubuntu 12.04 LTS for example).* ### Nodes Natron's nodes are contained in separate repositories. To use the default nodes, you must also build the following repositories: https://github.com/NatronGitHub/openfx-misc https://github.com/NatronGitHub/openfx-io You'll find installation instructions in the README of both these repositories. Both openfx-misc and openfx-io have submodules as well. Plugins must be installed in /usr/OFX/Plugins on Linux Or in a directory named "Plugins" located in the parent directory where the binary lies, e.g.: bin/ Natron Plugins/ IO.ofx.bundle ## Build To build, go into the Natron directory and type: qmake -r make If everything has been installed and configured correctly, it should build without errors. If you want to build in DEBUG mode change the qmake call to this line: qmake -r CONFIG+=debug Some debug options are available for developers of Natron and you can see them in the global.pri file. To enable an option just add `CONFIG+=