-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|