[vtkusers] VTK_USE_RENDERING required in CMake during example configuration, but no such option was available when configuring VTK
Eriksson, Mikael
mikael.k.eriksson at philips.com
Fri May 23 05:04:23 EDT 2014
Hi all,
I am a newbie to ITK and VTK. I have built both ITK and VTK and they seem to run just fine (e.g. the QuickViewDemo example worked perfectly, http://www.vtk.org/Wiki/ITK/Examples/QuickViewDemo). However, I run into trouble when I try to build other examples, such as the DistancePointToLine, http://www.vtk.org/Wiki/VTK/Examples/Cxx/SimpleOperations/DistancePointToLine. When configuring in CMake (I use Windows 7 Enterprise, 64-bit version btw) I get the following error.
CMake Error at CMakeLists.txt:6 (MESSAGE):
Example SimpleOperations requires VTK_USE_RENDERING.
The CMakeLists.txt-file, as seen on the example Wiki-page, is:
cmake_minimum_required(VERSION 2.8)
PROJECT(DistancePointToLine)
find_package(VTK REQUIRED)
include(${VTK_USE_FILE})
add_executable(DistancePointToLine MACOSX_BUNDLE DistancePointToLine)
if(VTK_LIBRARIES)
target_link_libraries(DistancePointToLine ${VTK_LIBRARIES})
else()
target_link_libraries(DistancePointToLine vtkHybrid)
endif()
If I understand things correctly, VTK_USE_RENDERING has been an option in CMake under the VTK-group in previous versions of VTK? However, when I configure VTK with CMake I don't get this option, even though I tick the Advanced-checkbox. Under the Modules-group there are some Modules called something containing rendering which I could tick, but most seem to be for rendering with e.g. Python, Tcl etc. so I doubt that I need to add them to the configuration.
Can anybody suggest how to proceed? I suspect I need to rebuild VTK and do something differently to get the rendering to work, but without the explicit option VTK_USE_RENDERING I'm stuck.
Best regards,
Mikael
.......................................................................................................
Mikael Eriksson
R&D Physicist Trainee
Philips Medical Systems MR Finland, Feasibility studies
.......................................................................................................
________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140523/7008538e/attachment.html>
More information about the vtkusers
mailing list