Important: Please read the Qt Code of Conduct -

LNK2001 while building VTK in VS

  • 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:

    • 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!!

  • Lifetime Qt Champion

    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.

Log in to reply