forked from POV-Ray/povray
-
Notifications
You must be signed in to change notification settings - Fork 3
Compilation
Jérôme Grimbert edited this page Jun 10, 2015
·
3 revisions
On Ubuntu 14.04, with 12 cores, and disabled io restrictions.
Remember to replace the value of COMPILED_BY with your data.
- $ 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
- $ 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
- $ 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
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
- $ 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
- $ 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
Same as previously.
- $ 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
- $ 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