Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 2.13 KB

build.md

File metadata and controls

69 lines (43 loc) · 2.13 KB

QuickVtk

Build Instructions

macOS

1. Download and install CMake

2. Download and install Qt

3. Build VTK

  • Launch CMake and set the paths to build VTK from the libs folder:

    • src: QuickVtk/libs/src
    • bin: QuickVtk/libs/bin
  • 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

4. Build QuickVtk

  • Launch CMake and set the paths accordingly:

    • src: QuickVtk
    • bin: QuickVtk/bin
  • 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 to Qt5Config.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 to libs/bin/VTK/bin from the project root directory

  • Press Configure and then Generate

4.1 Building via Xcode

  • Open the generated .xcodeproj file from the bin folder

  • Change the build target from ALL_BUILD to QuickVtk

  • Hit ⌘ Command + R to build and run QuickVtk