-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure_paraview_native_gui.sh
38 lines (34 loc) · 1.05 KB
/
configure_paraview_native_gui.sh
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
#!/bin/bash
paraview_source_dir=$1
paraview_install_dir=$2
osmesa_install_dir=$3
python_install_dir=$4
cmake_command=$5
qt_install_dir=$6
use_x=1
oldpath=$PATH
export PATH=$qt_install_dir/bin:$PATH
$cmake_command \
-DBUILD_SHARED_LIBS=1 \
-DPARAVIEW_USE_MPI=1 \
-DPARAVIEW_ENABLE_PYTHON=1 \
-DPARAVIEW_BUILD_QT_GUI=1 \
-DENABLE_MPI4PY=1 \
-DPARAVIEW_BUILD_PLUGIN_pvblot=0 \
-DBUILD_TESTING=0 \
-DPYTHON_EXECUTABLE="$python_install_dir/bin/python" \
-DPYTHON_INCLUDE_DIR="$python_install_dir/include/python2.5" \
-DPYTHON_LIBRARY="$python_install_dir/lib/libpython2.5.so" \
-DQT_QMAKE_EXECUTABLE=$qt_install_dir/bin/qmake \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DCMAKE_INSTALL_PREFIX:PATH="$paraview_install_dir" \
-DPARAVIEW_ENABLE_COPROCESSING=1 \
-DBUILD_COPROCESSING_ADAPTORS=1 \
-DBUILD_FORTRAN_COPROCESSING_ADAPTORS=1 \
-DBUILD_PYTHON_COPROCESSING_ADAPTOR=1 \
-DBUILD_PHASTA_ADAPTOR=1 \
$paraview_source_dir
#-DOPENGL_INCLUDE_DIR="$osmesa_install_dir/include" \
#-DOPENGL_gl_LIBRARY="" \
#-DOPENGL_glu_LIBRARY="$osmesa_install_dir/lib/libGLU.so" \
export PATH=$oldpath