当前位置:网站首页>QT project error: -1: error: cannot run compiler 'clang++' Output:mingw32-make. exe
QT project error: -1: error: cannot run compiler 'clang++' Output:mingw32-make. exe
2022-06-23 07:46:00 【Miaowei】
List of articles
List of articles
Preface
Download... On the Internet Qt In the project, in the machine , Using one's own QtCreator We often encounter various errors
“QMAKE_CXXFLAGS+=–target=i686-w64-mingw32” “QMAKE_LFLAGS+=–target=i686-w64-mingw32”
Info: creating stash file E:\QtExercise\QtReadWriteXml\QtXmlDom\build-QtXmlDom-Qt_5_12_9_msvc2017_64_64bit-Debug.qmake.stash
10:32:20: process "D:\Qt\Qt5.12.9\5.12.9\msvc2017_64\bin\qmake.exe" The normal exit .
10:32:20: Unable to start process "mingw32-make.exe" -f E:/QtExercise/QtReadWriteXml/QtXmlDom/build-QtXmlDom-Qt_5_12_9_msvc2017_64_64bit-Debug/Makefile qmake_all
Error while building/deploying project QtXmlDom (kit: Qt 5.12.9 (msvc2017_64) 64bit)
The kit Qt 5.12.9 (msvc2017_64) 64bit has configuration issues which might be the root cause for this problem.
When executing step “qmake”
10:32:21: Elapsed time: 00:03.



One 、 Error reason
I have summarized the following three reasons :
1. The original project is to use MinGW32/64 Generated by the compiler
2. The original project is to use MSVC2015~msvc2019 Generated by the compiler
3. Use of original project lang Generated by the compiler
among clang The compiler may be unfamiliar to some of its partners
Clang The compiler is composed of APPLE The company's compiler Daniel Chris Lattner Prepared under the leadership of , The goal is to replace the famous GCC compiler ; from XCODE4 Start , That is to say Mac OS X 10.6 Version on the system ,Apple Announce the end of the update GCC compiler , such GCC Stay at GCC4.2 edition , And suggest you use LLVM Compiler 2.0(LLVM-Clang), This version fully supports C++/ Objective-C++, And provide libc++ Library to support new C++ standard(C++0x standard ), and GCC/LLVM-GCC Support is GCC Standard library libstdc++;
in addition , because LLVM-Clang Excellent design ,Android NDK from r11 I suggest you switch to clang. And the GCC Marked as deprecated( Abandoning ), take GCC Version locked in GCC 4.9 No more updates ;Android NDK from r13 rise , By default Clang Compile . But I haven't put GCC Delete ,Google consider libc++(LLVM-Clang Of c++ Standard library ) Not stable enough ; Android NDK stay r17 They declared that they would no longer support GCC And in the following r18 Delete GCC. Now? GCC The main battlefield is only Linux Heel part Windows Application software development .
Two 、 terms of settlement
1. First, we are installing Qt When , Remember to check msvc,MinGW These compilers , Because I am in windows Lower development , All only selected msvc,MinGW compiler
2.QtCreator To configure


Configure the corresponding msvc perhaps MinGW compiler
Reference resources
边栏推荐
- 浅析 Open API 设计规范
- The sandbox has reached a cooperation with football player to bring popular football cartoons and animation into the metauniverse
- [深度学习][原创]如何不用yolov5权重或者模型进行目标检测和绘制map等参数图
- How to solve CSRF attack in laravel
- Judge black production based on CDN and client slow log characteristics
- Hcip Road
- vs在连接SQL时出现的问题myconn.OPen();无法运行
- HCIP之路第八次实验
- Data types in tensorflow
- Pseudocode specification, pseudocode online editor,
猜你喜欢

MySQL (11) - sorting out MySQL interview questions

Sstable details

SimpleDateFormat 线程安全问题

Cirium has gradually become the standard for airlines' carbon dioxide emission reporting

帆软堆积图显示占比

Talk about routing design in service governance

CIRIUM(睿思誉)逐渐成为航空公司二氧化碳排放报告的标准

30 sets of report templates necessary for the workplace, meeting 95% of the report needs, and no code is required for one click application
three. Solution to stripe shadow and grid shadow in JS

启动appium
随机推荐
How to solve CSRF attack in laravel
Wechat multiplayer chat and Roulette Games (websocket Implementation)
The road to hcip MPLS
【云计算赛项】职业技能竞赛--容器开发部分例题Pig快速开发框架
Minio single node deployment Minio distributed deployment fool deployment process (I)
Ldconfig command
Playwirght getting started
聊聊服务治理中的路由设计
G++ compilation command use
MySQL (II) - MySQL data type
1278_FreeRTOS_借助prvAddCurrentTaskToDelayedList接口理解delayed task
To conquer salt fields and vegetable fields with AI, scientific and technological innovation should also step on the "field"
【markdown】markdown 教程大归纳
Test APK exception control nettraffic attacker development
Intelligence Education - how to merge codes when code conflicts occur in multi person collaborative development?
Query on the performance of multi table view in MySQL
three. Solution to stripe shadow and grid shadow in JS
2022山东大学软件学院软件项目管理期末考试(回忆版)
1.概率论-组合分析
2.概率论-概率论公理