From fa04a506ad49f3831f10cf942fb9b5dd31cb1e0f Mon Sep 17 00:00:00 2001 From: Devresse Adrien Date: Thu, 23 Mar 2017 13:17:30 +0100 Subject: [PATCH] Add simple stupid build script to build Brayns in nix environment (#137) * Add simple stupid build script to build Brayns in nix environment. Required for the porting on KNL * Update build_nix.sh --- build_nix.sh | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100755 build_nix.sh diff --git a/build_nix.sh b/build_nix.sh new file mode 100755 index 000000000..369fff4a4 --- /dev/null +++ b/build_nix.sh @@ -0,0 +1,57 @@ + +# +# simple script to build nix in any bbp-nixpkgs environment +# with the nix module installed +# e.g bbpviz*, bbplxviz*, knl, jureca, theta, marconi, gallileo, cooley +# + + + +# clean the environment +module purge + +# load basic dev gcc env +module load nix/dev-env-gcc + +# for compilation with ICC, replace the previous line with +# module load nix/dev-env-icc/09.2016 + +# load openGL env +module load nix/gl-dev + +# load all the viz team world +module load nix/viz/lunchbox nix/viz/zeroeq nix/viz/zerobuf nix/viz/lexis nix/viz/vmmlib nix/viz/brion + +# load intel staff +module load nix/viz/ospray nix/viz/embree + +# load few extra for brayns +module load nix/jpegturbo nix/assimp + +# replace hdf5 module by hdf5 with cpp bindingq +module swap nix/hdf5 nix/hdf5-cpp + + + +## start to build +rm -rf build +mkdir -p build + +cd build + +# run cmake +# - disable subprojects +# - verbose mode +# - ignore -Werror ( failure with gcc 4.9.3 ) +# - disable deflect +cmake \ + -DDISABLE_SUBPROJECTS=TRUE \ + -DCOMMON_FIND_PACKAGE_QUIET=FALSE \ + -DCOMMON_DISABLE_WERROR=TRUE \ + -DBRAYNS_DEFLECT_ENABLED=OFF \ + -DBoost_NO_BOOST_CMAKE=FALSE ../ + +# build +make -j 4 + +