[vtkusers] Weird link error - possibly 4.7.1??

Andrew Parker andy.john.parker at googlemail.com
Fri Jun 22 11:09:00 EDT 2012


I already have  VTK_USE_INFOVIS  ON  set, and therefore it's built like
that.  What do I do now, is there something else I should be linking or
including if this is the case?

Andy

On 22 June 2012 16:06, Jothybasu Selvaraj <jothybasu at gmail.com> wrote:

> If you haven't built vtk with infovis, I would suggest you rebuild vtk
> with infovis.
>
> There was a long discussion on the list regarding these dependencies when
> RC 5.10 was released.
>
> Eventually no way was found to skip infovis while using charts. Some of
> the charts classes depend on infovis classes.
>
> I am not sure whether it has been fixed in the stable release. i was able
> to use charts only after building vtk with infovis!
>
> Jothy
>
>
> On Fri, Jun 22, 2012 at 3:42 PM, Andrew Parker <
> andy.john.parker at googlemail.com> wrote:
>
>> So I would do what? Sorry to be thick, include it, add to libraries?
>>
>> Cheers,
>> Andy
>>
>>
>> On 22 June 2012 15:40, Jothybasu Selvaraj <jothybasu at gmail.com> wrote:
>>
>>> Don't forget to check the INFOVIS in cmake when building vtk if you want
>>> tot use vtkCharts.
>>>
>>> Charts depends on INFOVIS.
>>>
>>> Jothy
>>>
>>> On Fri, Jun 22, 2012 at 3:31 PM, Andrew Parker <
>>> andy.john.parker at googlemail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I get this weird linking error, whether I use:
>>>> INCLUDE(${VTK_USE_FILE})
>>>> TARGET_LINK_LIBRARIES(EXE ${VTK_LIBRARIES}) or
>>>> TARGET_LINK_LIBRARIES(EXE vtkHybrid vtkCharts)
>>>>
>>>> the latter of which work successfully for ages on 5.8.0??  I am
>>>> assuming it is this?
>>>>
>>>> Any thoughts really appreciated?
>>>> Cheers,
>>>> Andy
>>>>
>>>> /INSTALLS-based-on-gcc-4.7.1/vtk-5.10.0/bin/libvtkCharts.a(vtkPlotStacked.cxx.o):
>>>> In function `vtkPlotStackedSegment::Configure(vtkPlotStacked*,
>>>> vtkDataArray*, vtkDataArray*, vtkPlotStackedSegment*)':
>>>> vtkPlotStacked.cxx:(.text._ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_[_ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_]+0x2a7):
>>>> undefined reference to `vtkMath::IsInf(double)'
>>>> vtkPlotStacked.cxx:(.text._ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_[_ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_]+0x2ba):
>>>> undefined reference to `vtkMath::IsInf(double)'
>>>> vtkPlotStacked.cxx:(.text._ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_[_ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_]+0x2cc):
>>>> undefined reference to `vtkMath::IsNan(double)'
>>>> vtkPlotStacked.cxx:(.text._ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_[_ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_]+0x2df):
>>>> undefined reference to `vtkMath::IsNan(double)'
>>>> /INSTALLS-based-on-gcc-4.7.1/vtk-5.10.0/bin/libvtkCharts.a(vtkPlotPoints.cxx.o):
>>>> In function `vtkPlotPoints::FindBadPoints()':
>>>> vtkPlotPoints.cxx:(.text+0xdc5a): undefined reference to
>>>> `vtkMath::IsInf(double)'
>>>> vtkPlotPoints.cxx:(.text+0xdc6d): undefined reference to
>>>> `vtkMath::IsInf(double)'
>>>> vtkPlotPoints.cxx:(.text+0xdc7f): undefined reference to
>>>> `vtkMath::IsNan(double)'
>>>> vtkPlotPoints.cxx:(.text+0xdc92): undefined reference to
>>>> `vtkMath::IsNan(double)'
>>>> collect2: error: ld returned 1 exit status
>>>> make[2]: *** [solver] Error 1
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Jothybasu Selvaraj
>>> PhD Student
>>> University of Liverpool
>>> UK
>>>
>>>
>>
>>
>> --
>>
>> __________________________________
>>
>>    Dr Andrew Parker
>>
>>    Em at il:  andrew.parker at cantab.net
>>
>>
>
>
> --
> Jothybasu Selvaraj
> PhD Student
> University of Liverpool
> UK
>
>


-- 

__________________________________

   Dr Andrew Parker

   Em at il:  andrew.parker at cantab.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120622/e92d7c10/attachment.htm>


More information about the vtkusers mailing list