[vtkusers] VTK6.2.0 error

Bill Lorensen bill.lorensen at gmail.com
Wed Apr 1 13:46:52 EDT 2015


For vtk6 use this:

cmake_minimum_required(VERSION 2.6)
PROJECT (study)

FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})

ADD_EXECUTABLE(study study.cxx)
TARGET_LINK_LIBRARIES(study ${VTK_LIBRARIES})



On Wed, Apr 1, 2015 at 12:00 AM, Charles - <chacyi at hotmail.com> wrote:
> I was just trying to compile this code:
>
> CMakeLists.
>
> cmake_minimum_required(VERSION 2.6)
> PROJECT (study)
>
> IF(NOT VTK_BINARY_DIR)
> FIND_PACKAGE(VTK REQUIRED)
> IF(NOT VTK_USE_RENDERING)
>    MESSAGE(FATAL_ERROR "${PROJECT_NAME} requires VTK_USE_RENDERING.")
> ENDIF(NOT VTK_USE_RENDERING)
> INCLUDE(${VTK_USE_FILE})
> ENDIF(NOT VTK_BINARY_DIR)
>
> ADD_EXECUTABLE(study study.cxx)
> TARGET_LINK_LIBRARIES(study vtkRendering vtkIO)
>
> And I have to build the c.xx to make the visualisation of some images like
> cone cubes,...
> But when I just configure the cMake it came up with this error that there is
> no VTK_USE_RENDERING
>
> and here is what I found when I checked my cmake after configuring the VTK
> 6.2.0
> there is no VTK_USE_RENDERING.
> I attached the cmake report after configure and generate VTK6.2.0
>
> Thank you very much for your help
>
>
>
>> Date: Tue, 31 Mar 2015 07:29:31 -0700
>> Subject: Re: [vtkusers] VTK6.2.0 error
>> From: bill.lorensen at gmail.com
>> To: chacyi at hotmail.com
>> CC: vtkusers at vtk.org
>
>>
>> What exercise are you trying to build?
>>
>> On Tue, Mar 31, 2015 at 7:19 AM, Charles - <chacyi at hotmail.com> wrote:
>> >
>> >
>> > Hello,Dear user of VTK!
>> >
>> > I now finish installing VTK6.2.0 but when I run cmake to configure the
>> > first
>> > exercise to see if it is working, it pops out this error:
>> >
>> > CMake Error at CMakeLists.txt:7 (MESSAGE):
>> > exercise requires VTK_USE_RENDERING.
>> >
>> > And when I checked to VTK on Cmake I found that there is no this
>> > VTK_USE_RENDERING.
>> >
>> > How can I solve this problem? VTK6.2.0 doesn`t have the
>> > VTK_USE_RENDERING?
>> > If so which replaced it?
>> >
>> > Thank you very much.
>> >
>> > I appreciate your help.
>> >
>> > _______________________________________________
>> > 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
>> >
>> > Search the list archives at: http://markmail.org/search/?q=vtkusers
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://public.kitware.com/mailman/listinfo/vtkusers
>> >
>>
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list