Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt LNK2019: unresolved external symbol "__declspec(dllimport)..." VTK
Qt 6.12 LTS is out! See what's new in the release blog

Qt LNK2019: unresolved external symbol "__declspec(dllimport)..." VTK

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
15 Posts 5 Posters 14.0k Views 2 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    Are you trying to build this example ?

    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
    1
    • A Offline
      A Offline
      AnaM
      wrote on last edited by AnaM
      #3

      Hello! Thank you!

      Yes that example! Any help?

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

        I missed something the first time I read your thread. Visual Studio 2010 ? Did you build VTK yourself with that version of VS ?

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

        A 1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #5

          Hi
          To add to @SGaist ,
          In Creator, you also have selected VS2010 as compiler ?

          1 Reply Last reply
          0
          • SGaistS SGaist

            I missed something the first time I read your thread. Visual Studio 2010 ? Did you build VTK yourself with that version of VS ?

            A Offline
            A Offline
            AnaM
            wrote on last edited by
            #6

            Hello!

            I build VTK myself with VS! I build with Release mode, should I build with Debug mode instead?

            How do I select VS as compiler in Qt?

            Thank you very much!!

            jsulmJ 1 Reply Last reply
            0
            • A AnaM

              Hello!

              I build VTK myself with VS! I build with Release mode, should I build with Debug mode instead?

              How do I select VS as compiler in Qt?

              Thank you very much!!

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #7

              @AnaM http://doc.qt.io/qtcreator/creator-tool-chains.html

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              A 1 Reply Last reply
              2
              • jsulmJ jsulm

                @AnaM http://doc.qt.io/qtcreator/creator-tool-chains.html

                A Offline
                A Offline
                AnaM
                wrote on last edited by
                #8

                @jsulm Yes, The VS is selected as the compiler.
                Maybe the problem is the build mode?(release/debug)?

                Thank you again

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

                  I might be insisting but do you have everything build with the same version of MSVC ? Same architecture ?

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

                  A 1 Reply Last reply
                  1
                  • SGaistS SGaist

                    I might be insisting but do you have everything build with the same version of MSVC ? Same architecture ?

                    A Offline
                    A Offline
                    AnaM
                    wrote on last edited by
                    #10

                    @SGaist Yes, everthing was build with MSVC same version.

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

                      Wouldn't you be missing the vtkWidgets library in your .pro file ?

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

                      A 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        Wouldn't you be missing the vtkWidgets library in your .pro file ?

                        A Offline
                        A Offline
                        AnaM
                        wrote on last edited by
                        #12

                        @SGaist No.
                        Maybe it's because I am building my project in VS 64 bit and Qt only detects VS compiler 32 bit?
                        How can I make Qt work with 64 bit?

                        Thank you!!

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

                          You have to install a 64bit build of Qt. You can't mix and match libraries of different architectures.

                          [Edit: fixed wording... Thanks @jsulm]

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

                          jsulmJ 1 Reply Last reply
                          1
                          • SGaistS SGaist

                            You have to install a 64bit build of Qt. You can't mix and match libraries of different architectures.

                            [Edit: fixed wording... Thanks @jsulm]

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            @SGaist said in Qt LNK2019: unresolved external symbol "__declspec(dllimport)..." VTK:

                            You can mix

                            You can't mix :-)

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • W Offline
                              W Offline
                              wilmer
                              wrote on last edited by
                              #15

                              Hola , para yo resolver este error cambie de modo DEBUG a RELEASE y corrio mi app.

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