Configure VTK project stuck at [100%] Linking cxx executable

Hi! I’m just compiled and installed the VTK 9.2.
I have a simple project and this is my CMakeList.txt

cmake_minimum_required(VERSION 3.16)
project (Helloworld)

find_package (VTK REQUIRED)
include_directories(${VTK_INCLUDE_DIRS})

add_executable (Helloworld Helloworld.cxx)

target_link_libraries (Helloworld ${VTK_LIBRARIES})

But after I do all the ccmake stuffs, then run make, my project just stucked at the [100%] Linking cxx executable. What’s the reason?

Hi @Sterben_01 ,

Thats pre VTK9 CMake code. Please take a look at the examples:
https://kitware.github.io/vtk-examples/site/Cxx/GeometricObjects/CylinderExample/

my project just stucked at the [100%] Linking cxx executable. What’s the reason?

You are probably linking with the whole of VTK, require only the components you need

Best,

1 Like

Thank you so much!