From 4bc7901c425381c3dc9815257db36086707cee62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Devernay?= Date: Tue, 16 Apr 2019 19:27:25 -0700 Subject: [PATCH] INSTALL_LINUX.md: better instructions to use the Natron SDK --- INSTALL_LINUX.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/INSTALL_LINUX.md b/INSTALL_LINUX.md index 3ba8b54e8b..a79cfc1f7b 100644 --- a/INSTALL_LINUX.md +++ b/INSTALL_LINUX.md @@ -40,10 +40,27 @@ Some packages, especially Qt 4.8.7, have Natron-specific patches. Take a look at The SDK may be updated by pulling the last modifications to the script and re-executing it. +### Environment to use the Natron SDK + +Once the SDK is built, you should set your environment as follows, to make sure that the Natron SDK is preferred over any other system library. This must be done in every terminal where you intend to compile and/or run Natron: + +``` +SDK=/opt/Natron-sdk +GCC="$SDK/gcc" +QTDIR="$SDK/qt4" +FFMPEG="$SDK/ffmpeg-gpl2" +LIBRAW="$SDK/libraw-gpl2" +PATH="$SDK/bin:$QTDIR/bin:$GCC/bin:$FFMPEG/bin:$LIBRAW_PATH:$PATH" +LIBRARY_PATH="$SDK/lib:$QTDIR/lib:$GCC/lib64:$GCC/lib:$FFMPEG/lib:$LIBRAW/lib" +LD_LIBRARY_PATH="$SDK/lib:$QTDIR/lib:$GCC/lib64:$GCC/lib:$FFMPEG/lib:$LIBRAW/lib" +LD_RUN_PATH="$SDK/lib:$QTDIR/lib:$GCC/lib:$FFMPEG/lib:$LIBRAW/lib" +CPATH="$SDK/include:$QTDIR/include:$GCC/include:$FFMPEG/include:$LIBRAW/include" +export PKG_CONFIG_PATH="$SDK/lib/pkgconfig:$SDK/osmesa/lib/pkgconfig:$QTDIR/lib/pkgconfig:$GCC/lib/pkgconfig:$FFMPEG/lib/pkgconfig:$LIBRAW/lib/pkgconfig" +export QTDIR LD_LIBRARY_PATH LD_RUN_PATH PKG_CONFIG_PATH CPATH``` ## Manually install dependencies -In order to have Natron compiling, first you need to install the required libraries. +Alternatively, *if you don't want to use the Natron SDK*, you still need to install the required libraries. ***note:*** *The scripts `tools/travis/install_dependencies.sh` and `tools/travis/build.sh` respectively install the correct dependencies