From 83a1a6009505b21698088b4cb459cc9498048b24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Devernay?= Date: Wed, 4 May 2016 13:08:39 +0200 Subject: [PATCH] update build instructions for 2.1 --- INSTALL_FREEBSD.md | 6 +- INSTALL_LINUX.md | 11 +-- INSTALL_OSX.md | 4 +- INSTALL_WINDOWS.md | 185 +++++++++++++++++++++++++++++++++++++++------ 4 files changed, 171 insertions(+), 35 deletions(-) diff --git a/INSTALL_FREEBSD.md b/INSTALL_FREEBSD.md index 6495c92801..39a449cb44 100644 --- a/INSTALL_FREEBSD.md +++ b/INSTALL_FREEBSD.md @@ -1,5 +1,5 @@ -Developer installation for FreeBSD -================================== +Instructions for installing Natron from sources on FreeBSD +========================================================== This file is supposed to guide you step by step to have working (compiling) version of Natron on FreeBSD. @@ -63,7 +63,7 @@ shiboken { ###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/MrKepzie/OpenColorIO-Configs/archive/Natron-v2.0.tar.gz). +to make a tarball release and let you download it [here](https://github.com/MrKepzie/OpenColorIO-Configs/archive/Natron-v2.1.tar.gz). Place it at the root of Natron repository. ### Build diff --git a/INSTALL_LINUX.md b/INSTALL_LINUX.md index c9d5a28a8a..61c596cf02 100644 --- a/INSTALL_LINUX.md +++ b/INSTALL_LINUX.md @@ -1,5 +1,5 @@ -Developer installation for GNU/Linux -==================================== +Instructions for installing Natron from sources on GNU/Linux +============================================================ This file is supposed to guide you step by step to have working (compiling) version of Natron on GNU/Linux. @@ -35,7 +35,7 @@ and build Natron and the standard set of plugins on Ubuntu In order to have Natron compiling, first you need to install the required libraries. -### Qt 4.8.6 +### Qt 4.8.7 You'll need to install Qt4 libraries, usually you can get them from your package manager (depends on your distribution). @@ -55,8 +55,6 @@ Alternatively you can install boost from [boost download](http://www.boost.org/u You can download it with your package manager. The package depends on your distribution. - - ### GLEW You can download it with your package manager. @@ -84,7 +82,6 @@ Natron uses pyside for python 2 Natron uses shiboken for python 2 - # Configuration ### OpenFX @@ -100,7 +97,7 @@ 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/MrKepzie/OpenColorIO-Configs/archive/Natron-v2.0.tar.gz). +to make a tarball release and let you download it [here](https://github.com/MrKepzie/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`* diff --git a/INSTALL_OSX.md b/INSTALL_OSX.md index d4f372a8b8..3509baf807 100644 --- a/INSTALL_OSX.md +++ b/INSTALL_OSX.md @@ -1,5 +1,5 @@ -Developer installation on OS X -================================= +Instructions for installing Natron from sources on OS X +======================================================= These are step-by-step instructions to compile Natron on OS X. diff --git a/INSTALL_WINDOWS.md b/INSTALL_WINDOWS.md index a19e6929e8..5df2a6e903 100644 --- a/INSTALL_WINDOWS.md +++ b/INSTALL_WINDOWS.md @@ -1,13 +1,147 @@ -developer installation for windows -================================== +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. + + +## Packaged dependencies + +Clone the [MINGW-packages](https://github.com/MrKepzie/MINGW-packages) repository: + + cd tools/Windows + git clone https://github.com/MrKepzie/MINGW-packages + +Set the environment variable `MINGW_PACKAGES_PATH` to the location of +the `MINGW-packages`directory. + +Using `pacman`, the MSYS2 package manager, install the following +packages: + +toolchain yasm gsm gdbm db python2 boost libjpeg-turbo libpng +libtiff giflib lcms2 openjpeg LibRaw glew pixman cairo +openssl freetype fontconfig eigen3 pango librsvg libzip cmake + +wget tar diffutils file gawk gettext grep make patch patchutils +pkg-config sed unzip git bison flex rsync zip + +## Dependencies to build manually + +### *FFmpeg 3.0.2* + +### *ImageMagick 6.3.9* + +### *OpenColorIO 1.0.9* + +### *OpenEXR 2.2* + +### *OpenImageIO 1.6.13* + +### *Qt 4.8.7* + + +## Configuration + +### 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/MrKepzie/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: LIBS += -lboost_serialization + 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/devernay/openfx-misc + https://github.com/MrKepzie/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+=