[vtkusers] VTK 5.8 + CMake: "target platform does not support dynamic linking."
nico.schloemer at gmail.com
Tue Sep 4 09:53:04 EDT 2012
I'm on an early release of Ubuntu 12.10 and noticed that VTK might
have problems here.
$ sudo apt-get install libvtk5-dev
installs fine. When trying to write an application that uses VTK and
manage it with CMake, the typical CMakeLists.txt would look like
And indeed, VTK is correctly found under /usr/lib/vtk-5.8/VTKConfig.cmake.
Upon actually creating the Makefiles howver, CMake will complain that
CMake Warning (dev) at /usr/lib/vtk-5.8/VTKTargets.cmake:244 (ADD_LIBRARY):
ADD_LIBRARY called with SHARED option but the target platform does not
support dynamic linking. Building a STATIC library instead. This may lead
Call Stack (most recent call first):
This warning is for project developers. Use -Wno-dev to suppress it
What does this warning mean and how is it dealt with?
This refers to the (seemingly correct?) line
ADD_LIBRARY(vtkChartsTCL SHARED IMPORTED)
Has anyone else experienced this before, or knows a workaround?
More information about the vtkusers