Created
April 5, 2020 21:09
-
-
Save planetceres/b33966cf2d5027f39c8d5998b65d26d2 to your computer and use it in GitHub Desktop.
Install PCL and VTK Ubunt 18.04
This file contains hidden or 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
#!/usr/bin/env bash | |
# PCL | |
sudo apt install libpcl-dev | |
# VTK | |
# Ref: https://discourse.vtk.org/t/installing-vtk-in-ubuntu-18-04/2147/4 | |
sudo apt install cmake \ | |
libavcodec-dev \ | |
libavformat-dev \ | |
libavutil-dev \ | |
libboost-dev \ | |
libdouble-conversion-dev \ | |
libeigen3-dev \ | |
libexpat1-dev \ | |
libfontconfig-dev \ | |
libfreetype6-dev \ | |
libgdal-dev \ | |
libglew-dev \ | |
libhdf5-dev \ | |
libjpeg-dev \ | |
libjsoncpp-dev \ | |
liblz4-dev \ | |
liblzma-dev \ | |
libnetcdf-dev \ | |
libnetcdf-cxx-legacy-dev \ | |
libogg-dev \ | |
libpng-dev \ | |
libpython3-dev \ | |
libqt5opengl5-dev \ | |
libqt5x11extras5-dev \ | |
libsqlite3-dev \ | |
libswscale-dev \ | |
libtheora-dev \ | |
libtiff-dev \ | |
libxml2-dev \ | |
libxt-dev \ | |
qtbase5-dev \ | |
qttools5-dev \ | |
zlib1g-dev | |
mkdir -p $USER/software | |
cd $USER/software | |
git clone https://gitlab.kitware.com/vtk/vtk.git | |
cd vtk | |
git checkout v8.2.0 | |
mkdir build | |
cd build | |
cmake -DCMAKE_INSTALL_PREFIX=$HOME/vtk-inst \ | |
-DCMAKE_INSTALL_RPATH=$HOME/vtk-inst \ | |
-DVTK_Group_Qt=ON \ | |
-DVTK_QT_VERSION=5 \ | |
-DVTK_Group_Imaging=ON \ | |
-DVTK_Group_Views=ON \ | |
-DModule_vtkRenderingFreeTypeFontConfig=ON \ | |
-DVTK_WRAP_PYTHON=ON \ | |
-DVTK_PYTHON_VERSION=3 \ | |
-DPYTHON_EXECUTABLE=/usr/bin/python3 \ | |
-DPYTHON_INCLUDE_DIR=/usr/include/python3.6 \ | |
-DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.6m.so \ | |
-DBUILD_TESTING=OFF \ | |
-DVTK_USE_SYSTEM_LIBRARIES=ON \ | |
-DVTK_USE_SYSTEM_LIBPROJ4=OFF \ | |
-DVTK_USE_SYSTEM_GL2PS=OFF \ | |
-DVTK_USE_SYSTEM_LIBHARU=OFF \ | |
-DVTK_USE_SYSTEM_PUGIXML=OFF \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
.. | |
make -j$(($(nproc) - 1)) | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment