Skip to content
Jérôme Grimbert edited this page Jun 10, 2015 · 3 revisions

Home


Compilation

On Ubuntu 14.04, with 12 cores, and disabled io restrictions.

Remember to replace the value of COMPILED_BY with your data.

With icpc compiler

  • $ cd unix
  • $ ./prebuild.sh
  • $ cd ..
  • $ ./configure COMPILED_BY="your name here <with email address>" --disable-io-restrictions LIBS="-lboost_system -lboost_thread" CXX=icpc CC=icc CPPFLAGS=-I/usr/include/x86_64-linux-gnu/c++/4.8
  • $ make -j 12
  • $ make check

With g++ compiler

  • $ cd unix
  • $ ./prebuild.sh
  • $ cd ..
  • $ ./configure COMPILED_BY="your name here <with email address>" --disable-io-restrictions LIBS="-lboost_system -lboost_thread"
  • $ make -j 12
  • $ make check

With clang compiler

  • $ cd unix
  • $ ./prebuild.sh
  • $ cd ..
  • $ ./configure COMPILED_BY="your name here <with email address>" --disable-io-restrictions LIBS="-lboost_system -lboost_thread" CXX=clang++ CC=clang
  • $ make -j 12
  • $ make check

Ubuntu 15.04

boost from distribution (made with g++) does not work with icpc nor clang : it links, but crash on start up with segmentation fault due to global initialisation (before entering main()). A solution is to install boost with the same compiler that will be used for povray: it just takes ages to compile boost

with icpc 15

Boost

  • $ sudo mkdir -p /media/jerome/Trilogie/intel/usr/local
  • $ sudo chmod -R 777 /media/jerome/Trilogie/intel/
  • $ ./bootstrap.sh --prefix=/media/jerome/Trilogie/intel/usr/local --with-toolset=intel-linux
  • $ ./b2 install

Povray

  • $ export LD_LIBRARY_PATH=/media/jerome/Trilogie/intel/usr/local/lib/:$LD_LIBRARY_PATH
  • $ cd unix
  • $ ./prebuild.sh
  • $ cd ..
  • $ ./configure COMPILED_BY="your name here <with email address>" --disable-io-restrictions --with-boost=/media/jerome/Trilogie/intel/usr/local LIBS="-lboost_system -lboost_thread" CXX=icpc CC=icc
  • $ make -j 12
  • $ make check

with g++ compiler

Same as previously.

with clang

Boost

  • $ sudo mkdir -p /media/jerome/Trilogie/clang/usr/local
  • $ sudo chmod -R 777 /media/jerome/Trilogie/clang/
  • $ ./bootstrap.sh --prefix=/media/jerome/Trilogie/clang/usr/local --with-toolset=clang
  • $ ./b2 install

Povray

  • $ export LD_LIBRARY_PATH=/media/jerome/Trilogie/clang/usr/local/lib/:$LD_LIBRARY_PATH
  • $ cd unix
  • $ ./prebuild.sh
  • $ cd ..
  • $ ./configure COMPILED_BY="your name here <with email address>" --disable-io-restrictions --with-boost=/media/jerome/Trilogie/intel/usr/local LIBS="-lboost_system -lboost_thread" CXX=clang++ CC=clang
  • $ make -j 12
  • $ make check

Clone this wiki locally