Skip to content
Snippets Groups Projects
Commit 47d927b9 authored by ad784563's avatar ad784563
Browse files

Removed cmake and git dependencies. Why not.

parent 0b0859f9
Branches
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
module load cmake/3.16.4
module load gcc/10 module load gcc/10
mkdir dependencies mkdir dependencies
cd dependencies cd dependencies
# Install CMake.
wget https://github.com/Kitware/CMake/releases/download/v3.19.4/cmake-3.19.4-Linux-x86_64.tar.gz
ZIP=cmake-3.19.4-Linux-x86_64.tar.gz
tar -xzvf $ZIP
rm $ZIP
mv ./cmake-3.19.4-Linux-x86_64 ./cmake-3.19.4
# Install Ospray. # Install Ospray.
wget https://github.com/ospray/ospray/releases/download/v1.8.5/ospray-1.8.5.x86_64.linux.tar.gz wget https://github.com/ospray/ospray/releases/download/v1.8.5/ospray-1.8.5.x86_64.linux.tar.gz
ZIP=ospray-1.8.5.x86_64.linux.tar.gz ZIP=ospray-1.8.5.x86_64.linux.tar.gz
...@@ -13,19 +19,21 @@ rm $ZIP ...@@ -13,19 +19,21 @@ rm $ZIP
mv ./ospray-1.8.5.x86_64.linux ./ospray-1.8.5 mv ./ospray-1.8.5.x86_64.linux ./ospray-1.8.5
# Install VTK. # Install VTK.
git clone https://github.com/Kitware/VTK.git wget https://www.vtk.org/files/release/9.0/VTK-9.0.1.tar.gz
cd VTK ZIP=VTK-9.0.1.tar.gz
git checkout v9.0.1 tar -xzvf $ZIP
rm $ZIP
cd VTK-9.0.1
mkdir build mkdir build
cd build cd build
export ospray_DIR=../../ospray-1.8.5/lib/cmake/ospray-1.8.5 export ospray_DIR=../../ospray-1.8.5/lib/cmake/ospray-1.8.5
cmake .. -DVTK_MODULE_ENABLE_VTK_RenderingRayTracing=YES ../../cmake-3.19.4/bin/cmake .. -DVTK_MODULE_ENABLE_VTK_RenderingRayTracing=YES
cmake --build . --config Release --parallel 64 ../../cmake-3.19.4/bin/cmake --build . --config Release --parallel 64
# Install application. # Install application.
cd ../../offline_ray_tracer cd ../../../offline_ray_tracer
mkdir build mkdir build
cd build cd build
export VTK_DIR=../../../dependencies/VTK/build export VTK_DIR=../../dependencies/VTK-9.0.1/build/lib64/cmake/vtk-9.0/
cmake .. ../../dependencies/cmake-3.19.4/bin/cmake ..
cmake --build . --clean-first --config Release --parallel 64 ../../dependencies/cmake-3.19.4/bin/cmake --build . --clean-first --config Release --parallel 64
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment