Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator: Qt version not properly installed
QtWS25 Last Chance

QtCreator: Qt version not properly installed

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 10.0k 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.
  • T3STYT Offline
    T3STYT Offline
    T3STY
    wrote on last edited by
    #1

    I'm trying to get a working MinGW x32 and x64 configuration in Qt Creator. I have downloaded the x64-Qt-5.1.1+qtcreator-2.8.1-(gcc-4.8.1-seh-rev5).7z package from here:
    http://sourceforge.net/projects/mingwbuilds/files/external-binary-packages/Qt-Builds/
    From the archive I have extracted the Qt64-5.1.1 folder (the Qt build) in _C:\Qt\5.1.1_ and the mingw64 folder (the mingw64 compiler) in C:\Qt\Tools. I did the same with the x32 package available at the same link above. I have renamed the extracted folders with a better naming scheme, so now I have the paths as follows:
    @[MingW32 compiler x32] C:\Qt\Tools\mingw-32-4.8.1\bin
    [MingW32 compiler x64] C:\Qt\Tools\mingw-64-4.8.1\bin
    [Qt 5.1.1 binaries MinGW x32 build] C:\Qt\5.1.1\mingw-32-4.8.1
    [Qt 5.1.1 binaries MinGW x64 build] C:\Qt\5.1.1\mingw-64-4.8.1@
    Then in QtCreator > Options> Build & Run I have set as follows:
    @[Compilers]
    => Add > MinGW
    =>> Name: MinGW 4.8.1 - 32-bit
    =>> Compiler path: Browse > C:\Qt\Tools\mingw-32-4.8.1\bin\gcc.exe
    =>> ABI: <custom> x86 - windows - msys - pe - 32bit

    => Add > MinGW
    =>> Name: MinGW 4.8.1 - 64-bit
    =>> Compiler path: Browse > C:\Qt\Tools\mingw-64-4.8.1\bin\gcc.exe
    =>> ABI: <custom> x86 - windows - msys - pe - 64bit

    [Qt Versions]
    => Add > C:\Qt\5.1.1\mingw-32-4.8.1\bin\qmake.exe
    ==> Name: Qt 5.1.1 (mingw-32-4.8.1)

    => Add > C:\Qt\5.1.1\mingw-64-4.8.1\bin\qmake.exe
    ==> Name: Qt 5.1.1 (mingw-64-4.8.1)

    [Kits]
    => Add
    =>> Name: Generic MinGW 4.8.6 32-bit
    =>> Device type: Desktop
    =>> Device: Run locally (default for Desktop)
    =>> Sysroot: (blank)
    =>> Compiler: MinGW 4.8.1 - 32-bit
    =>> Debugger: C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\cdb.exe
    =>> Qt version: Qt 5.1.1 (mingw-32-4.8.1)
    =>> Qt mkspec: (blank)

    => Add
    =>> Name: Generic MinGW 4.8.6 64-bit
    =>> Device type: Desktop
    =>> Device: Run locally (default for Desktop)
    =>> Sysroot: (blank)
    =>> Compiler: MinGW 4.8.1 - 64-bit
    =>> Debugger: C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\cdb.exe
    =>> Qt version: Qt 5.1.1 (mingw-64-4.8.1)
    =>> Qt mkspec: (blank)
    @

    So in theory all the files Qt Creator needs are there ready to be used in the configured environment. In practice instead, on the Qt versions tab, the Qt builds that I have added report an error:
    @Qt version is not properly installed, please run make install@
    A red "stop" icon with an exclamation mark is shown in front of the Qt versions I added. The same happens on the Kits tab, and the error reported here is:
    @Mkspec not found for Qt version.@
    I have checked all the paths, I even used names without spaces; I tried many times to remove and add again the kits, and I have even reinstalled Qt Creator. Previously I had the MSVC2012 and mingw32_48 kits installed (installed with the online Qt installer) so I made a backup of them and restored it over a new installation of Qt without any kits. Guess what: not even these kits, which were working just fine before, are working now. They report the same error.

    So I guess I'm doing something wrong while manually adding the kits, or anything... could someone please tell me what's going on and how to solve this issue?

    p.s. I'm using Qt Creator 2.8.1 on Windows 7 Professional x64 and I have the Windows 8.1 SDK and Visual Studio 2012 installed.

    1 Reply Last reply
    0
    • E Offline
      E Offline
      edis
      wrote on last edited by
      #2

      Sometimes this has to do with fixed paths at compile time referring to inexistent paths in a different deployment.

      --
      EDIS Interactive
      http://edis.mx
      http://vimeo.com/edis

      1 Reply Last reply
      0
      • T3STYT Offline
        T3STYT Offline
        T3STY
        wrote on last edited by
        #3

        My bad, I should explore folders a bit more before assuming there's nothing else I can do.
        I found in the Qt build folders an executable, qtbinpatcher.exe. I've run it (for both 32 and 64 bit versions) and they seem to fix the main problem (Qt version not properly installed). I fixed the MSVC12 backups too by copying the same executable in each folder (there wasn't any provided in the MSVC12 folders) and they now work fine again.

        The Mkspec error gets away too but if you specify any parameters in the mkspec field of the kit, the error will pop up again. For this I haven't found a solution yet. Any suggestions?

        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