[vtkusers] VTK_USE_RENDERING required in CMake during example configuration, but no such option was available when configuring VTK

Bill Lorensen bill.lorensen at gmail.com
Fri May 23 08:31:11 EDT 2014


Do you have old versions of VTK installed?


On Fri, May 23, 2014 at 5:04 AM, Eriksson, Mikael
<mikael.k.eriksson at philips.com> wrote:
> 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.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list