[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
Mon May 26 01:49:41 EDT 2014
You're quite right, the CMakeLists.txt-file I used was mistakenly that of the SimpleOperations-example, I changed it to the correct one and everything works fine. Thank you for your help!
Cheers,
Mikael
………………………………………………………………………………………….
Mikael Eriksson
R&D Physicist Trainee
Philips Medical Systems MR Finland, Feasibility studies
+358 40 631 8500
mikael.k.eriksson at philips.com
………………………………………………………………………………………….
-----Original Message-----
From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
Sent: 23. toukokuuta 2014 17:59
To: Eriksson, Mikael
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] VTK_USE_RENDERING required in CMake during example configuration, but no such option was available when configuring VTK
I think you are configuring the example incorrectly. The error message you are getting is from the CMakeLists.txt file in Cxx/SimpleOperations
How are you configuring the example with cmake?
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
________________________________
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.
More information about the vtkusers
mailing list