VTK (Visualization Tool Kit) - gkgkgk1215/else GitHub Wiki
VTK
- Install dependencies
sudo apt install build-essential cmake mesa-common-dev mesa-utils freeglut3-dev python3-dev python3-venv git-core ninja-build
-
Download source file from website: https://vtk.org/download/
-
Extract and install
cd ~/Downloads
sudo tar -zxvf VTK-9.3.0.tar.gz -C /opt/
cd /opt/VTK-9.3.0/
sudo mkdir build && cd build
sudo cmake -DVTK_RENDERING_BACKEND=OpenGL ..
sudo make -j8
sudo make install
- To install modules for Python,
conda activate minho
pip install vtk
Bullet Physics
- Download source from repo and install.
cd /opt && sudo mkdir bullet_physics
sudo chown minho bullet_physics && cd bullet_physics
git clone https://github.com/bulletphysics/bullet3.git
cd bullet3
mkdir build && cd build
cmake -DUSE_DOUBLE_PRECISION=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_EXTRAS=ON DINSTALL_EXTRA_LIBS=ON ..
make -j8
sudo make install