Skip to content

Commit

Permalink
INSTALL_LINUX.md: better instructions to use the Natron SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay authored Apr 17, 2019
1 parent cbbe84f commit 4bc7901
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion INSTALL_LINUX.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4bc7901

Please sign in to comment.