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. QtCreator complaining that 'Qt version is not properly installed'
Forum Updated to NodeBB v4.3 + New Features

QtCreator complaining that 'Qt version is not properly installed'

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 1.1k 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.
  • J Offline
    J Offline
    janice
    wrote on last edited by janice
    #1

    Hi, I'm having a problem getting Qt Creator to recognise my recent Qt6 build. My setup is

    • OS: Windows 10 x64
    • Qt Creator: v12.0.2
    • Qt build: v6.5.3
    • Build platform: Visual Studio 2022

    When adding my Qt build to Qt Creator, it's saying: "Qt version is not properly installed, please run make install" as detailed below:

    qtcreator.png

    I'm not sure why as there weren't any apparent errors during the build/install process. I notice when checking the version of qmake that I'm getting something that looks like a relative path to the lib folder for my Qt6 build version, which I'm guessing is the cause of the problem with Qt Creator:

    cd E:/dev/projects/app1/build/qt6/bin
    qmake.exe -v
    
    QMake version 3.1
    Using Qt version 6.5.3 in //qt6/lib
    

    However I'm getting an absolute path to the lib folder for my previous Qt5 build version (which is marked yellow in Qt Creator as it's indicating "No QML utility installed") which works perfectly fine:

    cd E:/dev/projects/app1/build/qt5/bin
    qmake -v
    
    QMake version 3.1
    Using Qt version 5.15.12 in cd E:/dev/projects/app1/build/qt5/lib
    

    I used the following commands to build Qt 6:

    configure -redo -prefix E:\\dev\\projects\\app1\\build\\qt6 -I E:\\dev\\projects\\app1\\build\\base\\include -L E:\\dev\\projects\\app1\\build\\base\\lib -platform win32-msvc -release -opensource -confirm-license -strip -no-shared -static -static-runtime -ltcg -make libs -make tools -nomake examples -no-dbus -no-icu -no-gtk -no-opengl -no-opengles3 -no-sql-sqlite -no-sql-odbc -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebglplugin -skip qtwebsockets -skip qtwebview -skip qtx11extras -skip qtxmlpatterns -skip qtquicktimeline -skip qtquick3d -skip qtgraphs -skip qtlottie -skip qtmqtt -skip qtopcua -skip qtquick3dphysics -skip qtquickeffectmaker -system-zlib -openssl-linked -- -DOPENSSL_ROOT_DIR=E:\\dev\\projects\\app1\\openssl -DOPENSSL_USE_STATIC_LIBS=TRUE -DZLIB_ROOT=E:\\dev\\projects\\app1\\zlib
    
    cmake --build . --parallel
    cmake --install . --prefix E:\\dev\\projects\\app1\\build\\qt6
    

    Thanks for any help.

    sierdzioS 1 Reply Last reply
    0
    • J janice deleted this topic on
    • J janice restored this topic on
    • J janice

      Hi, I'm having a problem getting Qt Creator to recognise my recent Qt6 build. My setup is

      • OS: Windows 10 x64
      • Qt Creator: v12.0.2
      • Qt build: v6.5.3
      • Build platform: Visual Studio 2022

      When adding my Qt build to Qt Creator, it's saying: "Qt version is not properly installed, please run make install" as detailed below:

      qtcreator.png

      I'm not sure why as there weren't any apparent errors during the build/install process. I notice when checking the version of qmake that I'm getting something that looks like a relative path to the lib folder for my Qt6 build version, which I'm guessing is the cause of the problem with Qt Creator:

      cd E:/dev/projects/app1/build/qt6/bin
      qmake.exe -v
      
      QMake version 3.1
      Using Qt version 6.5.3 in //qt6/lib
      

      However I'm getting an absolute path to the lib folder for my previous Qt5 build version (which is marked yellow in Qt Creator as it's indicating "No QML utility installed") which works perfectly fine:

      cd E:/dev/projects/app1/build/qt5/bin
      qmake -v
      
      QMake version 3.1
      Using Qt version 5.15.12 in cd E:/dev/projects/app1/build/qt5/lib
      

      I used the following commands to build Qt 6:

      configure -redo -prefix E:\\dev\\projects\\app1\\build\\qt6 -I E:\\dev\\projects\\app1\\build\\base\\include -L E:\\dev\\projects\\app1\\build\\base\\lib -platform win32-msvc -release -opensource -confirm-license -strip -no-shared -static -static-runtime -ltcg -make libs -make tools -nomake examples -no-dbus -no-icu -no-gtk -no-opengl -no-opengles3 -no-sql-sqlite -no-sql-odbc -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebglplugin -skip qtwebsockets -skip qtwebview -skip qtx11extras -skip qtxmlpatterns -skip qtquicktimeline -skip qtquick3d -skip qtgraphs -skip qtlottie -skip qtmqtt -skip qtopcua -skip qtquick3dphysics -skip qtquickeffectmaker -system-zlib -openssl-linked -- -DOPENSSL_ROOT_DIR=E:\\dev\\projects\\app1\\openssl -DOPENSSL_USE_STATIC_LIBS=TRUE -DZLIB_ROOT=E:\\dev\\projects\\app1\\zlib
      
      cmake --build . --parallel
      cmake --install . --prefix E:\\dev\\projects\\app1\\build\\qt6
      

      Thanks for any help.

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @janice

      -prefix E:\\dev\\projects\\app1\\build\\qt6 
      

      There is no need for double backslashes, just use \ and that's it. Also, use configure.bat on Windows. Lastly, there is no need to specify --prefix during installation, you have already specified it when configuring.

      (Z(:^

      J 1 Reply Last reply
      0
      • sierdzioS sierdzio

        @janice

        -prefix E:\\dev\\projects\\app1\\build\\qt6 
        

        There is no need for double backslashes, just use \ and that's it. Also, use configure.bat on Windows. Lastly, there is no need to specify --prefix during installation, you have already specified it when configuring.

        J Offline
        J Offline
        janice
        wrote on last edited by
        #3

        @sierdzio Thanks. If i don't use the \\ I get the following:

        -- Configuring submodule 'qtimageformats'
        -- Configuring submodule 'qtlanguageserver'
        CMake Error at qtbase/lib/cmake/Qt6BuildInternals/QtBuildInternalsExtra.cmake:185 (set):
          Syntax error in cmake code at
        
            E:/dev/projects/qbittorrent/build/_qt-everywhere-src/www/qt-everywhere-src-6.6.2/qtbase/lib/cmake/Qt6BuildInternals/QtBuildInternalsExtra.cmake:185
        
          when parsing string
        
            E:\dev\projects\qbittorrent\build\install_msvc64\base\include
        
          Invalid character escape '\d'.
        Call Stack (most recent call first):
          qtbase/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake:11 (include)
          qtbase/lib/cmake/Qt6/Qt6Config.cmake:164 (find_package)
          qtlanguageserver/CMakeLists.txt:14 (find_package)
        
        
        -- Configuring incomplete, errors occurred!
        CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:1040 (message):
          CMake exited with code 1.
        

        So I guess it's thinking the \d in E:\dev is an escape character, hence why I put \\ everywhere. I'm not sure how else to avoid it.

        Also, if I use configure -prefix... wouldn't that be using configure.bat implicitly? There is also a configure file (without extension) in the root folder, however that's used for linux installs.

        I managed to fix the issue. The problem I think is that I was originally using environment variables in my prefix statement i.e. configure -prefix %PROJECT_ROOT%\%MSVC_FOLDER%\qt5 ... and for some reasonconfigure.bat is interpreting them as empty strings, hence why %PROJECT_ROOT%\%MSVC_FOLDER%\qt5 reduces to \\qt5. I'm not sure the reason configure.bat is the exception, because when I was compiling openssl and zlib, I used the same environment variables in my compile statements for those libraries just fine, within the same x64 Native Tools Command Prompt for VS 2022 session.

        Thanks again.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved