Bug#747436: libvtk6: Libraries are possibly underlinked

Anton Gladky gladk at debian.org
Sun May 18 12:29:55 UTC 2014


Hi Marco,

thanks for Bug-report. According to an "official" JPEGWriter example [1],
you should link it against ${VTK_LIBRARIES}, not only vtkIOImage.
If you do it, your minimal example is working fine.

[1] http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/JPEGWriter

Regards

Anton


2014-05-08 18:42 GMT+02:00 Marco Nolden <debbugs at manol.org>:
> CMakeLists.txt
> ==============
> cmake_minimum_required(VERSION 2.8)
> PROJECT(JPEGWriter)
> find_package(VTK REQUIRED)
> include(${VTK_USE_FILE})
> add_executable(JPEGWriter JPEGWriter.cxx)
> target_link_libraries(JPEGWriter vtkIOImage)



More information about the debian-science-maintainers mailing list