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. win11 qt6.5 构建报错,之前有装其他版本的Qt,但卸载了
Forum Updated to NodeBB v4.3 + New Features

win11 qt6.5 构建报错,之前有装其他版本的Qt,但卸载了

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 3 Posters 898 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.
  • S Offline
    S Offline
    shanda_zhou
    wrote on last edited by
    #1

    报错1:
    C:\Program Files\CMake\share\cmake-3.26\Modules\CMakeTestCXXCompiler.cmake:60: error: The C++ compiler "C:/Qt/Tools/mingw1120_64/bin/g++.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: E:/Code/Cpp/QtPro/untitled33/build/CMakeFiles/CMakeScratch/TryCompile-mct1cj Run Build Command(s):C:/Qt/Tools/Ninja/ninja.exe -v cmTC_c56a9 && ninja: fatal: couldn't open nul
    报错2:
    :-1: error: CMake project configuration failed. No CMake configuration for build type "Debug" found.
    安装问题困扰很久了,需要找到问题点在哪里

    S 1 Reply Last reply
    0
    • S shanda_zhou

      报错1:
      C:\Program Files\CMake\share\cmake-3.26\Modules\CMakeTestCXXCompiler.cmake:60: error: The C++ compiler "C:/Qt/Tools/mingw1120_64/bin/g++.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: E:/Code/Cpp/QtPro/untitled33/build/CMakeFiles/CMakeScratch/TryCompile-mct1cj Run Build Command(s):C:/Qt/Tools/Ninja/ninja.exe -v cmTC_c56a9 && ninja: fatal: couldn't open nul
      报错2:
      :-1: error: CMake project configuration failed. No CMake configuration for build type "Debug" found.
      安装问题困扰很久了,需要找到问题点在哪里

      S Offline
      S Offline
      shanda_zhou
      wrote on last edited by
      #2

      @shanda_zhou 7399c2d3-99c9-4d3f-8195-2c3fd254f7ad-image.png yi
      以上为报错信息图片

      Christian EhrlicherC 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
      • S shanda_zhou

        @shanda_zhou 7399c2d3-99c9-4d3f-8195-2c3fd254f7ad-image.png yi
        以上为报错信息图片

        Christian EhrlicherC Online
        Christian EhrlicherC Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Please write in english or use the appropriate sub-forum.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        S 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          Please write in english or use the appropriate sub-forum.

          S Offline
          S Offline
          shanda_zhou
          wrote on last edited by
          #4

          @Christian-Ehrlicher ok,
          Win11 qt6.5 build error, previously installed other versions of Qt, but uninstalled.

          error1:
          C:\Program Files\CMake\share\cmake-3.26\Modules\CMakeTestCXXCompiler.cmake:60: error: The C++ compiler "C:/Qt/Tools/mingw1120_64/bin/g++.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: E:/Code/Cpp/QtPro/untitled33/build/CMakeFiles/CMakeScratch/TryCompile-mct1cj Run Build Command(s):C:/Qt/Tools/Ninja/ninja.exe -v cmTC_c56a9 && ninja: fatal: couldn't open nul
          error2:
          :-1: error: CMake project configuration failed. No CMake configuration for build type "Debug" found.
          Installation issues have been bothering me for a long time, and I need to find out where the problem lies

          1 Reply Last reply
          0
          • cristian-adamC Online
            cristian-adamC Online
            cristian-adam
            wrote on last edited by
            #5

            If you try to run C:\Qt\Tools\mingw1120_64\bin\g++.exe --version from a Terminal do you get the following text:

            C:\Qt\Tools\mingw1120_64\bin
            $ g++ --version
            g++ (x86_64-posix-seh-rev3, Built by MinGW-W64 project) 11.2.0
            Copyright (C) 2021 Free Software Foundation, Inc.
            This is free software; see the source for copying conditions.  There is NO
            warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
            
            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