Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT5 (VisualStudio2012 addin) won't link
Forum Updated to NodeBB v4.3 + New Features

QT5 (VisualStudio2012 addin) won't link

Scheduled Pinned Locked Moved Installation and Deployment
13 Posts 2 Posters 5.7k 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.
  • S Offline
    S Offline
    steno
    wrote on last edited by
    #2

    Are you linking to the QtWidgets Library?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Daepilin
      wrote on last edited by
      #3

      i left all settings unchanged. But that was it for most of the errors(checked the boxes under "Qt project Settings. Thougth that would all be done automatically).

      Only error left is the first one :/

      and that's a fatal one, so no final building :/

      1 Reply Last reply
      0
      • S Offline
        S Offline
        steno
        wrote on last edited by
        #4

        Do you have vs2010 and vs2012 installed?

        In Project Properties, select General Tab, and check to see what "Platform Toolset" is set to.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          Daepilin
          wrote on last edited by
          #5

          nope, just vs2012.

          platfoorm toolset for the project says Visual Studio 2012 (v110), and i have only one other option (v110_xp)

          1 Reply Last reply
          0
          • S Offline
            S Offline
            steno
            wrote on last edited by
            #6

            Well the variable _MSC_VER holds the compilers version number. 1600 is for vs2010 and 1700 is for vs2012.

            "MSDN _MSC_VER definition":http://msdn.microsoft.com/en-us/library/b0084kay.aspx

            "This might help some...":http://stackoverflow.com/questions/4061929/help-with-linker-error-lnk2038

            Also, the install for the Qt libraries is compiled for 2010 not 2012.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              steno
              wrote on last edited by
              #7

              So, did you rebuild the Qt using 2012?

              1 Reply Last reply
              0
              • D Offline
                D Offline
                Daepilin
                wrote on last edited by
                #8

                so basically there is an addin for vs2012 but vs2012 itself is not supported -.-

                i guess the easiest solution would be installing vs2010? is the express version enough as it should bring everything compilerrelated with it?

                e: nope, and i have no idea how i would do that. i think i remember seeing a tutorial for that yesterday (even though i can't find it now) but i think there where quite some needed tools and i really don't wanna mess up my whole system with compilers and stuff for one use...

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  steno
                  wrote on last edited by
                  #9

                  You can download the source and build qt with vs2012. Vs2012 is supported, you just have to build it yourself.

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    Daepilin
                    wrote on last edited by
                    #10

                    well, i will see if i can do that.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      steno
                      wrote on last edited by
                      #11

                      If this is a one time use, might just be easier to use Qt creator instead.

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        Daepilin
                        wrote on last edited by
                        #12

                        qt creator does not want my vs2012 compiler as well.. i tried mingw, didn't work out as well. (no compiler found, even if the correct kit is selected).

                        guess i would have to use 4.8 with minggw for that. but i try compiling it, i guess i migth be using qt even after those university exercises^^ always wanted to get into gui programming and not only cmd programms...

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          Daepilin
                          wrote on last edited by
                          #13

                          so, i build qt5 (i think succesfully as i had no errors)
                          but again, another linker error that says:

                          "Qt5Guid5.lib cannot ne opened". and well in the path where it trys to open this file it doesn't exist. There is one Qt5Gui.lib and a Qt5Guid.lib bot no Qt5Guid5.lib...

                          the path is: C:\qt-source\qt5\qtbase\lib\Qt5Guid5.lib and the q path is set to the qtbase folder.

                          e: found the bug report... i guess i can just change that in the linker settings.

                          e2: yep, working as it should :)

                          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