1. Download and install CMake
2. Download and install Qt
-
Launch CMake and set the paths to build VTK from the
libs
folder:- src:
QuickVtk/libs/src
- bin:
QuickVtk/libs/bin
- src:
-
Press Configure and specify a project generator. It is recommended to use Unix Makefiles for faster builds
-
Use the VTK_GIT_TAG attribute to specify a commit hash which will be used to download and build a specific VTK-version from the remote repository
-
Press Configure and then Generate
-
Open the terminal and navigate to
/libs/bin
in the project directory. From there, use the make command to invoke the build process. VTK will first be cloned so make sure you are connected to the internet
-
Launch CMake and set the paths accordingly:
- src:
QuickVtk
- bin:
QuickVtk/bin
- src:
-
Press Configure and select a project generator
-
In most cases, CMake will fail to find Qt. Confirm the error dialog and enter
Qt
in the search field. Set the path toQt5Config.cmake
which might vary depending on your Qt-installation.
-
Press Configure again
-
Another error will probably pop up. This time VTK was not found. Type
VTK
in the search field and set the path tolibs/bin/VTK/bin
from the project root directory
- Press Configure and then Generate
-
Open the generated
.xcodeproj
file from thebin
folder -
Change the build target from
ALL_BUILD
toQuickVtk
- Hit ⌘ Command +
R
to build and run QuickVtk