Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. LNK2001 while building VTK in VS
Qt 6.11 is out! See what's new in the release blog

LNK2001 while building VTK in VS

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
2 Posts 2 Posters 948 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PaulB
    wrote on last edited by
    #1

    Hello!

    I am new with Qt and VTK.

    I'm failing to build VTK 8 for QT 5 with VS. I'm following this instruction: https://www.vtk.org/Wiki/VTK/Tutorials/QtSetup

    • So I generated project in CMake, selecting qmake from msvc2017_64 (also tryed winrt_x64_msvc2017).
    • Switched to "Release" (WIN32) in visual studio and built "ALL_BUILD".

    End up with "123 succeeded, 5 failed" having hundreds error lines like this:

    error LNK2001: unresolved external symbol "protected: virtual int __thiscall QTreeView::verticalOffset(void)const " (?verticalOffset@QTreeView@@MBEHXZ)

    Please, I am stuck in here and I can't find any solution for that.
    Thank you in advance!!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      The wiki page you are linking to looks like to be written for an older version of VTK.

      Did you try to contact VTK's authors ? They might have the answer already.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved