Skip to content

Commit

Permalink
Add simple stupid build script to build Brayns in nix environment (#137)
Browse files Browse the repository at this point in the history
* Add simple stupid build script to build Brayns in nix environment. Required for the porting on KNL

* Update build_nix.sh
  • Loading branch information
adevress committed Mar 23, 2017
1 parent 176b3b5 commit fa04a50
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions build_nix.sh
Original file line number Diff line number Diff line change
@@ -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


0 comments on commit fa04a50

Please sign in to comment.