Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5 Visual Studio 2012 Add-In - Doesn't recongize Qt5
Forum Updated to NodeBB v4.3 + New Features

Qt5 Visual Studio 2012 Add-In - Doesn't recongize Qt5

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 4.4k 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.
  • K Offline
    K Offline
    kantaki
    wrote on last edited by
    #1

    Hello,

    I have installed the Vs2012 Add-in but I am unable to specify the Qt framework.

    @Qt5 -> Qt Options -> Qt Versions -> add@

    I am unable to choose the qmake.exe. I am only able to select the bin folder like this

    @D:\Qt\Qt5.0.0-rc2\5.0.0-rc2\msvc2010\bin@

    even if I try to add @D:\Qt\Qt5.0.0-rc2\5.0.0-rc2\msvc2010\bin\qmake.exe@ the Ok button is still grey.
    Maybe I have to compile the Qt5 source with Visual c++ 2012 compiler to make it work?

    1 Reply Last reply
    0
    • U Offline
      U Offline
      utcenter
      wrote on last edited by
      #2

      Try like this:

      @D:\Qt\Qt5.0.0-rc2\5.0.0-rc2\msvc2010@

      The add in adds \bin automatically, so you need to point to the root of the build

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kantaki
        wrote on last edited by
        #3

        Oh okay thank you, now I fell a little bit stupid.
        Anyways now visual studio doesn't find the header files, I think I try a clean up to date source compilation.

        Edit:

        I just added the includes manually, which seems to work but then I get the following error msg
        @error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in moc_test1.obj@

        Which is probably because this version of Qt is compiled with vs2010

        1 Reply Last reply
        0
        • U Offline
          U Offline
          utcenter
          wrote on last edited by
          #4

          Well, obviously, you need to have Qt compiled with MSVC2012 compiler to compile projects with it. Or get MSVC2012...

          You should also know that VS2012 compilation is likely to produce wrongly named lib files, putting an extra 5 after the name of each file, renaming the files to remove the trailing 5 fixes that.

          As for the headers, there has been some rearranging, make sure the include folder of Qt5 is into the project properties - C++ - general - additional include directories, the add on should add those, but if not, you should add manually. Id you still get an error trying to locate some headers, go and search for them in the include folder to see if they aren't moved to some sub-folder.

          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