[vtk-developers] Dependency issue with examples

Bill Lorensen bill.lorensen at gmail.com
Tue Dec 29 12:47:15 EST 2009


Francois ,

On my linux system, I just touched vtkContourValues.h and the AMR
example rebuilt fine.

Bill


On Tue, Dec 29, 2009 at 12:42 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Hmmm.. Are you using the cvs head? I have been reworking the examples
> so that they can be tested. I'll look into this. What platform are you
> on?
>
> Bill
>
> On Tue, Dec 29, 2009 at 11:19 AM, Francois Bertel
> <francois.bertel at kitware.com> wrote:
>> Hello,
>>
>> On my working copy of VTK, I modified VTK/Common/vtkContourValues.h to
>> fix some conversion warning.
>>
>> Everything compiles correctly except that an example using
>> vtkContourValues does not rebuild when it should, hence I have a link
>> error:
>>
>> Linking CXX executable ../../../bin/HierarchicalBoxPipeline
>> CMakeFiles/HierarchicalBoxPipeline.dir/HierarchicalBoxPipeline.o: In
>> function `vtkContourFilter::SetValue(int, double)':
>> /home/fbertel/projects/development/ParaView3/VTK/Graphics/vtkContourFilter.h:180:
>> undefined reference to `vtkContourValues::SetValue(int, double)'
>> collect2: ld returned 1 exit status
>>
>> Why is the dependency not generated automatically? Isn't cmake
>> generated dependencies automatically from the include files, as gcc -M
>> or -MM would do for make?
>>
>> The example is:
>> VTK/Examples/AMR/Cxx/HierarchicalBoxPipeline.cxx
>>
>> which includes "vtkContourFilter.h" (in VTK/Graphics), which itself
>> includes vtkContourValues.h
>>
>> --
>> François Bertel, PhD  | Kitware Inc. Suite 204
>> 1 (518) 371 3971 x113 | 28 Corporate Drive
>>                      | Clifton Park NY 12065, USA
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>>
>



More information about the vtk-developers mailing list