[vtkusers] Problem compiling with VTK on Ubuntu 11.10

capagira87 nacci.gaetano at alice.it
Tue Mar 6 04:01:11 EST 2012


This is what is written in my CMakeLists.txt:

cmake_minimum_required(VERSION 2.6)
 
PROJECT(ProvaReadPly)
 
find_package(VTK REQUIRED)
include(${VTK_USE_FILE})
 

add_executable(ProvaReadPly ProvaReadPly.cxx)

if (VTK_LIBRARIES)
target_link_libraries (ProvaReadPly (${VTK_LIBRARIES}))
else ()
target_link_libraries(ProvaReadPlY ITKBasicFilters ITKCommon ITKIO
vtkRendering vtkGraphics vtkHybrid vtkImaging vtkIO vtkFiltering vtkCommon)
endif ()

Is there any problem for target_link_libraries?


Bill Lorensen wrote
> 
> What does your CMakeLists.txt file look like?
> 
> On Mon, Mar 5, 2012 at 2:23 PM, capagira87 <nacci.gaetano@> wrote:
>> Hi,
>> i'm just a newbie in Vtk. After having installed VTK on my laptop, which
>> works with Ubuntu 11.10 - 32 bit, I had a problem, while I was compiling
>> my
>> code.
>> After I typed the command* make *on my shell, I had this message of
>> error:
>>
>> make[2]: *** No rule to make target `/usr/lib/libGL.so', needed by
>> `ProvaReadPly'.  Stop.
>> make[1]: *** [CMakeFiles/ProvaReadPly.dir/all] Error 2
>> make: *** [all] Error 2
>>
>>
>> How can I solve this problem?
>>
>> Regards
>>
>> Gaetano
>>
>>
>> --
>> View this message in context:
>> http://vtk.1045678.n5.nabble.com/Problem-compiling-with-VTK-on-Ubuntu-11-10-tp5538591p5538591.html
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> 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
> _______________________________________________
> 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
> 

--
View this message in context: http://vtk.1045678.n5.nabble.com/Problem-compiling-with-VTK-on-Ubuntu-11-10-tp5538591p5540267.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list