Skip to content

Commit

Permalink
Update build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Apr 25, 2015
1 parent dda9431 commit 2d31f78
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 11 deletions.
21 changes: 20 additions & 1 deletion INSTALL_LINUX.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@ Developer installation for GNU/Linux
====================================

This file is supposed to guide you step by step to have working (compiling) version of
Natron on GNU/Linux.
Natron on GNU/Linux.

Note that that installing dependencies using `apt-get` should work on
any Debian-based distribution (e.g. Ubuntu).

The scripts `tools/travis/install_dependencies.sh` and
`tools/travis/build.sh` respectively install the correct dependencies
and build Natron and the standard set of plugins on Ubuntu
12.04. These scripts should always be up-to-date.

The end of this document gives instructions for a other Linux
distributions.

## Install libraries

Expand Down Expand Up @@ -126,3 +137,11 @@ Note that if you want Natron to find the OpenColorIO config files you will need
place them in the appropriate location. In the repository they are located under
`Gui/Resources/OpenColorIO-Configs`.
You must copy them to a directory named `../share/OpenColorIO-Configs` relative to Natron's binary.

# Installing and building on other Linux distributions

## ArchLinux

pacman -S qt4 cairo glew python expat boost pixman ffmpeg opencolorio openimageio wget git cmake gcc make libxslt pkg-config
wget https://raw.githubusercontent.com/olear/natron-linux/master/installer/misc/build-natron-on-archlinux.sh
sudo sh build-natron-on-archlinux.sh
29 changes: 19 additions & 10 deletions INSTALL_OSX.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Developer installation on mac osx
Developer installation on OS X
=================================

This file is supposed to guide you step by step to have working (compiling) version of Natron on mac osx ( >= 10.6 ).
Expand Down Expand Up @@ -119,9 +119,10 @@ EOF

## Build with Makefile

You can generate a makefile by typing
You can generate a makefile by opening a Terminal, setting the current
directory to the toplevel source directory, and typing

qmake -r Project.pro
qmake -r

then type

Expand All @@ -131,7 +132,7 @@ This will create all binaries in all the subprojects folders.

If you want to build in DEBUG mode change the qmake call to this line:

qmake -r CONFIG+=debug Project.pro
qmake -r CONFIG+=debug

* You can also enable logging by adding CONFIG+=log

Expand All @@ -142,16 +143,24 @@ If you want to build in DEBUG mode change the qmake call to this line:
Follow the instruction of build but
add -spec macx-xcode to the qmake call command:

qmake -r -spec macx-xcode Project.pro
qmake -r -spec macx-xcode

Then open the already provided Project-xcode.xcodeproj and compile the target "all"

* If using Xcode to compile, and it doesn't find the necessary
binaries (qmake, moc, pkg-config, just execute this line from a
terminal and log in/out of your session (see
<http://www.emacswiki.org/emacs/EmacsApp> for other options):
### Xcode caveats

launchctl setenv PATH /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin
henever the .pro files change, Xcode will try to launch qmake and
probably fail because it doesn't find the necessary binaries (qmake,
moc, pkg-config, python3-config, etc.). In this case, just open a
Terminal and relaunch the above command. This will rebuild the Xcode projects.

Alternatively, you can globally add the necessary directories
(`/usr/local/bin`on Homebrew, `/opt/local/bin` on MacPorts) to you
PATH (see <http://www.emacswiki.org/emacs/EmacsApp> for instructions).

On MacPorts, this would look like:

launchctl setenv PATH /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin

## Testing

Expand Down

0 comments on commit 2d31f78

Please sign in to comment.