<div dir="ltr">In VTK, all of the linkages are handled by the vtk_module CMake command in the module.cmake file of each module. The DEPENDS modules are linked to the current module.<div><br></div><div>IIRC, you can run "make VERBOSE=1" to print out the actual gcc/ld commands that are called, that might give you some clues.</div><div><br></div><div>Dave</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 28, 2016 at 3:45 PM, Mario Emmenlauer <span dir="ltr"><<a href="mailto:mario@emmenlauer.de" target="_blank">mario@emmenlauer.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Thanks David for the reply. Its a bit strange because 7.0.0 worked fine,<br>
so it must be something introduced in 7.1.0. I can also see the text<br>
definition of the missing symbol in vtkCommonCore, so it must be the<br>
missing linker command. Could you tell me how the dependency is defined<br>
in VTK? I would be curious to learn the build system a bit.<br>
<br>
Cheers,<br>
<br>
Mario<br>
<br>
<br>
<br>
On 28.11.2016 17:44, David Lonie wrote:<br>
> According to Common/DataModel/module.cmake, vtkCommonDataModel already has a<br>
> dependency on vtkCommonCore inside of VTK. Everything should be linked already. Hmm.<br>
><br>
> It's likely that the mingw support needs some love. I don't think we have any<br>
> customers that rely on it at the moment, but maybe someone can pick it up.<br>
><br>
> On Fri, Nov 25, 2016 at 4:23 AM, Mario Emmenlauer <<a href="mailto:mario@emmenlauer.de">mario@emmenlauer.de</a><br>
> <mailto:<a href="mailto:mario@emmenlauer.de">mario@emmenlauer.de</a>>> wrote:<br>
><br>
><br>
> Dear All,<br>
><br>
> I've reported this issue already here:<br>
> <a href="https://gitlab.kitware.com/vtk/vtk/issues/16916" rel="noreferrer" target="_blank">https://gitlab.kitware.com/<wbr>vtk/vtk/issues/16916</a><br>
> <<a href="https://gitlab.kitware.com/vtk/vtk/issues/16916" rel="noreferrer" target="_blank">https://gitlab.kitware.com/<wbr>vtk/vtk/issues/16916</a>><br>
> But I hope somebody here on the mailing list might be knowledgeable about<br>
> how to add<br>
> linker dependencies inside VTK?<br>
><br>
> When building VTK 7.1.0 I get an error about an undefined reference on<br>
> MSYS2. Everything<br>
> works fine on Linux. The error on MSYS2 is:<br>
><br>
> CMakeFiles/vtkCommonDataModel.<wbr>dir/objects.a(<wbr>vtkDataSetAttributes.cxx.obj):<wbr>vtkDataSetAttributes.cxx:(.<wbr>text+0x4a7c):<br>
> undefined reference to<br>
> `vtkAOSDataArrayTemplate<long><wbr>::FastDownCast(<wbr>vtkAbstractArray*)'<br>
> CMakeFiles/vtkCommonDataModel.<wbr>dir/objects.a(<wbr>vtkDataSetAttributes.cxx.obj):<wbr>vtkDataSetAttributes.cxx:(.<wbr>text+0x4a92):<br>
> undefined reference to<br>
> `vtkAOSDataArrayTemplate<long><wbr>::FastDownCast(<wbr>vtkAbstractArray*)'<br>
><br>
> I think its required that vtkCommonDataModel links against vtkCommonCore? I<br>
> do not<br>
> know how to achieve this. I've tried various combinations to add the<br>
> dependency to<br>
> Common/DataModel/CMakeLists.<wbr>txt but without success. How is this done correctly?<br>
><br>
> Cheers,<br>
><br>
> Mario<br>
> ______________________________<wbr>_________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com" rel="noreferrer" target="_blank">http://www.kitware.com</a>><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
> <<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a>><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a> <<a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a>><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
> <<a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?<wbr>q=vtkusers</a>><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
> <<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a>><br>
><br>
><br>
<br>
<br>
<br>
Viele Gruesse,<br>
<br>
Mario Emmenlauer<br>
<br>
<br>
--<br>
BioDataAnalysis GmbH, Mario Emmenlauer Tel. Buero: <a href="tel:%2B49-89-74677203" value="+498974677203">+49-89-74677203</a><br>
Balanstr. 43 mailto: memmenlauer * <a href="http://biodataanalysis.de" rel="noreferrer" target="_blank">biodataanalysis.de</a><br>
D-81669 München <a href="http://www.biodataanalysis.de/" rel="noreferrer" target="_blank">http://www.biodataanalysis.de/</a><br>
</blockquote></div><br></div>