-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathSingularity.def
42 lines (35 loc) · 1.12 KB
/
Singularity.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
BootStrap: debootstrap
OSVersion: focal
MirrorURL: http://us.archive.ubuntu.com/ubuntu/
%post
export DEBIAN_FRONTEND=noninteractive
export NPROC=$(nproc)
apt-get update
apt-get install -y software-properties-common
add-apt-repository universe
apt-get update
apt-get -y install build-essential cmake git coreutils cmake-curses-gui libflann-dev libgsl-dev libeigen3-dev libopenmpi-dev openmpi-bin opencl-c-headers ocl-icd-opencl-dev libvtk7-dev libvtk7-qt-dev libboost-all-dev freeglut3-dev libhdf5-dev qtbase5-dev qt5-default libqt5opengl5-dev liblz4-dev libopencv-dev libyaml-cpp-dev libtbb-dev libspdlog-dev
git config --global http.sslverify false
git clone https://github.com/embree/embree.git embree
cd embree
mkdir build
cd build
cmake -DEMBREE_TUTORIALS=OFF -DEMBREE_ISPC_SUPPORT=OFF ..
make -j $NPROC
make install
cd ..
rm -r build
cd /
git clone https://gitlab.informatik.uni-osnabrueck.de/Las_Vegas_Reconstruction/Develop.git lvr
cd lvr
git checkout develop
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j $NPROC
make install
cd ..
rm -r build
cd /
%environment
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH