Build instructions for Triton (2013-03-08):

First, you will need to set up the compilation environment by issuing
the following command:

module load PrgEnv-gnu

This will enable GCC 4.7

Then compile as usual. However, you will need to compile yourself:
- ffmpeg
- OpenCV
- libboost (particularly: program_options and regex)

and ensure that OpenCV finds ffmpeg (NOT provided by triton!) by
issuing the following commands before compiling it (of course,
replacing ffmpeg_install_path with the relevant directory
information):

export LD_LIBRARY_PATH=/ffmpeg_install_path/lib/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/ffmpeg_install_path/lib/pkgconfig
export PKG_CONFIG_LIBDIR=$PKG_CONFIG_LIBDIR:/ffmpeg_install_path/lib/

- jmkarppa

Build instructions for Triton (2012-11-08): 

You will need to build OpenCV manually. Currently, there is a build on
the way to /triton/ics/work/jmkarppa/opencv243

Notices about OpenCV:

Building OpenCV 2.4.3 seems to fail if ccache is enabled (at least in
my case the cache grew so large that it ate all my disk space quota!)

- jmkarppa

Update for MacOS X Lion! (2012-08-13): 

DYLD_LIBRARY_PATH is no longer required as the new CMake file will
copy the required dyld files to the installation directory
automagically.

- jmkarppa

Update for MacOS X Lion! (2012-08-10):

The current GCC/G++ 4.7.0 Homebrew formula seems to do the
trick. However, Boost still needs to be compiled manually. In
addition, if you get a complaint about a Boost dyld file image not
being found, please set the environment variable DYLD_LIBRARY_PATH to
point at the /lib/ directory of your special Boost instance.

- jmkarppa

Build instructions for slmotion on MacOS X Lion (as of 2012-04-24):
- Install XCode and the associated command-line build tools (i.e. GCC 4.2)
- Install Homebrew. For some reason, I was unable to make this work with Macports.
- Install GCC 4.6.3. As of 04/24, the default GCC installed by the gcc formula is 4.7.0 and it does not seem to work as expected. GCC 4.6.3 can be installed with the following command:
brew install --use-gcc https://raw.github.com/Homebrew/homebrew-dupes/c527b7cd5df96482d2b09a1ff1bdeada934228be/gcc.rb
- Install all other dependencies as usual (OpenCV in particular), except
- Boost, compile it manually. However, you need to adjust the cxx flags in the following file: boost_1_49_0//tools/build/v2/tools/darwin.jam
On the line that says:
flags darwin.compile OPTIONS : -no-cpp-precomp -gdwarf-2 -fexceptions ;
remove the flag '-no-cpp-precomp'
- Then build Boost normally, making sure to build it with the SAME GCC THAT YOU ARE GOING TO USE TO BUILD SLMOTION (i.e. 4.6.3), otherwise you will get very weird error messages (such as 'pointer free'd was not malloc'ed' from ~std::string)
- Then just build as usual with cmake

- jmkarppa, 2012-04-24

Build instructions for slmotion on Ubuntu 12.04 "precise" (as of 2012-05-15):
- Remove opencv_legacy from /usr/share/OpenCV/OpenCVConfig.cmake
- Change -lcsoap-1.1 to -lcsoap in CMakeLists.txt and same for nanohttp
- Copy /share/imagedb/picsom/linux64/lib/libvl.so to picsom/c++/linux64/debug

