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. Qt Creator Build failed
Forum Updated to NodeBB v4.3 + New Features

Qt Creator Build failed

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 364 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
    JonasCharrier
    wrote on last edited by
    #1

    ** Visual Studio 2022 Developer Command Prompt v17.5.1
    ** Copyright (c) 2022 Microsoft Corporation


    [vcvarsall.bat] Environment initialized for: 'x64_x86'

    C:\Windows\System32>mkdir "C:/Users/jonas/Desktop/compileQT/qtcreator_build"

    C:\Windows\System32>cd "C:/Users/jonas/Desktop/compileQT/qtcreator_build"

    C:\Users\jonas\Desktop\compileQT\qtcreator_build>
    C:\Users\jonas\Desktop\compileQT\qtcreator_build>cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja "-DCMAKE_PREFIX_PATH=C:/Program Files/Qt/6.6.0/msvc2019_64;C:/Program Files/libclang" "C:/Users/jonas/Desktop/compileQT/qt-creator-master"
    -- The C compiler identification is MSVC 19.35.32215.0
    -- The CXX compiler identification is MSVC 19.35.32215.0
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x86/cl.exe - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x86/cl.exe - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    CMake Error at CMakeLists.txt:68 (find_package):
    Could not find a configuration file for package "Qt6" that is compatible
    with requested version "6.2.0".

    The following configuration files were considered but not accepted:

    C:/Program Files/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.6.0 (64bit)
    

    -- Configuring incomplete, errors occurred!

    i get this error trying to build qt creator, i tried to :

    • use a different qt version.
    • using my own cmake installation and the one from the Tools folder of qt creator.

    The weirdest is that i used to be able to build and have no idea what i changed.

    Chris KawaC 1 Reply Last reply
    0
    • J JonasCharrier

      ** Visual Studio 2022 Developer Command Prompt v17.5.1
      ** Copyright (c) 2022 Microsoft Corporation


      [vcvarsall.bat] Environment initialized for: 'x64_x86'

      C:\Windows\System32>mkdir "C:/Users/jonas/Desktop/compileQT/qtcreator_build"

      C:\Windows\System32>cd "C:/Users/jonas/Desktop/compileQT/qtcreator_build"

      C:\Users\jonas\Desktop\compileQT\qtcreator_build>
      C:\Users\jonas\Desktop\compileQT\qtcreator_build>cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja "-DCMAKE_PREFIX_PATH=C:/Program Files/Qt/6.6.0/msvc2019_64;C:/Program Files/libclang" "C:/Users/jonas/Desktop/compileQT/qt-creator-master"
      -- The C compiler identification is MSVC 19.35.32215.0
      -- The CXX compiler identification is MSVC 19.35.32215.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x86/cl.exe - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x86/cl.exe - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      CMake Error at CMakeLists.txt:68 (find_package):
      Could not find a configuration file for package "Qt6" that is compatible
      with requested version "6.2.0".

      The following configuration files were considered but not accepted:

      C:/Program Files/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.6.0 (64bit)
      

      -- Configuring incomplete, errors occurred!

      i get this error trying to build qt creator, i tried to :

      • use a different qt version.
      • using my own cmake installation and the one from the Tools folder of qt creator.

      The weirdest is that i used to be able to build and have no idea what i changed.

      Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @JonasCharrier Your Qt is a 64bit build and you're trying to use it to cross compile Qt Creator to 32bit using 64bit tools. That's not gonna work.

      Either use 32 bit build of Qt if you really want a 32 bit Qt Creator or use a 64bit toolchain if you want 64bit Qt Creator.

      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