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. Can't build with VS2015 under Qt Creator
QtWS25 Last Chance

Can't build with VS2015 under Qt Creator

Scheduled Pinned Locked Moved Unsolved General and Desktop
5.7.0vs 2015
9 Posts 5 Posters 4.5k Views
  • 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.
  • Todd23434T Offline
    Todd23434T Offline
    Todd23434
    wrote on last edited by
    #1

    I'm pulling my hair out.

    I downloaded the Qt version 5.7 for VS2015 64-bit. (Qt 5.7.0 for Windows 64-bit (VS 2015, 918 MB))
    I installed it.
    When I build projects, it always builds with mingw.
    It auto detects vs2015 compiler (32 and 64 bit), but won't let me build with them.
    Under "Qt Versions" it says "No compiler can produce code for this Qt version"...
    What am I doing wrong? I hate compiling with mingw because I want to use specific windows 64-bit libraries like "xinput".

    I really don't want to build qt myself. What am I missing?

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Probably just a misconfiguration in your kits and project settings.
      Can you post a screenshot of the Compilers tab, Qt Versions tab with the version you want to use selected, the Kits tab with the kit you want to use selected and the Projects pane of your project?

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

        Hi and welcome to devnet,

        Which version of Qt Creator are you using exactly ?

        Did you install VS2015 before or after Qt ?

        IIRC, there's a bug where the incorrect version of MSVC is searched for VS2015.

        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
        • Todd23434T Offline
          Todd23434T Offline
          Todd23434
          wrote on last edited by Todd23434
          #4

          Qt Creator 4.0.3
          Based on Qt 5.7.0 (MSVC 2013, 32 bit)

          compilers tab
          kits tab
          projects pane
          qt versions

          I created a new project, so the projects pane only has the kit i'm trying to build with.
          Thanks.

          1 Reply Last reply
          0
          • Chris KawaC Offline
            Chris KawaC Offline
            Chris Kawa
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hm, that's weird.
            Try this: close Qt Creator, go to %appdata%\QtProject\qtcreator directory and rename/move out a file named qtversion.xml. Open Qt Creator again and see if it re-detected the Qt version correctly this time.

            1 Reply Last reply
            0
            • Todd23434T Offline
              Todd23434T Offline
              Todd23434
              wrote on last edited by
              #6

              Didn't seem to work.

              Should I install qt creator first or vs 2015?
              Also, I have the community edition, does that matter?

              1 Reply Last reply
              0
              • hskoglundH Offline
                hskoglundH Offline
                hskoglund
                wrote on last edited by
                #7

                Hi, community edition is fine, but also check that the C++ compiler gets installed in Visual Studio (I think it's no longer installed by default, as in previous VS versions).

                1 Reply Last reply
                0
                • Todd23434T Offline
                  Todd23434T Offline
                  Todd23434
                  wrote on last edited by
                  #8

                  Yea, it's installed.
                  I have the qt plugin installed into visual studio to create a solution from a .pro and things seem to compile.
                  I'm debating on whether or not I should even bother with Qt Creator and just use Visual Studio at this point.

                  K 1 Reply Last reply
                  0
                  • Todd23434T Todd23434

                    Yea, it's installed.
                    I have the qt plugin installed into visual studio to create a solution from a .pro and things seem to compile.
                    I'm debating on whether or not I should even bother with Qt Creator and just use Visual Studio at this point.

                    K Offline
                    K Offline
                    KeithS
                    wrote on last edited by
                    #9

                    @Todd23434
                    have you tried uninstalling whatever installed minGW? I run qt creator on all platforms except Windows though, as qt creator's debugger integration isn't as good as Visual Studio's imho.

                    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