Undefined reference with vtk package #13705
Unanswered
RedKnight21
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Can you provide any minimal sample code to reproduce the issue? Also provide the build instructions with it. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use the vtk package in MSYS2 with mingw64. I've installed all of the necessary packages: gcc, cmake, git, boost, qt5, and vtk. My program that uses Qt5 and Vtk works just fine on Linux won't build on MSYS2 because of the undefined reference errors that are shown in the attached screen shot.
Discussion on discourse.vtk.org points a finger at the mingw64 compiler not being right. This seems to be a consequence of Kitware changing their templates and how they build some of the vtk classes. Or maybe not.
The odd thing about this is that at one point my program did build just fine on MSYS2 without the errors. Then I updated packages and installed some others and it wouldn't build again. I uninstalled MSYS2, re-installed MSYS2, and re-installed the minimum number of packages that I thought were needed. This brought me back to the undefined reference errors.
Can anyone shed some light on this? Is this some type of configuration problem or something else?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions