当前位置:网站首页>Clang Code Model: Error: The clangbackend executable “X:/clangbackend.exe“ could not be started
Clang Code Model: Error: The clangbackend executable “X:/clangbackend.exe“ could not be started
2022-08-11 03:59:00 【妙为】
Qt系列文章目录
前言
今天打开一个Qt工程,QtCreator居然报错:
Clang Code Model: Error: The clangbackend executable “D:\Qt\Qt5.12.9\Tools\QtCreator\bin\clangbackend.exe” could not be started
从报错来看,我的Qt默认使用clang 编译器
一、clang 编译器
Clang 是一个 C 语言、C++、Objective-C 语言的轻量级编译器。源代码发布于 BSD 协议下。Clang 将支持其普通 lambda 表达式、返回类型的简化处理以及更好的处理 constexpr 关键字。
Clang 是一个由 Apple 主导编写,基于 LLVM 的 C/C++/Objective-C 编译器
2013 年 4 月,Clang 已经全面支持 C++11 标准,并开始实现 C++1y 特性(也就是 C++14,这是 C++ 的下一个小更新版本)。Clang 将支持其普通 lambda 表达式、返回类型的简化处理以及更好的处理 constexpr 关键字。
Clang 是一个 C++ 编写、基于 LLVM、发布于 LLVM BSD 许可证下的 C/C++/Objective-C/Objective-C++ 编译器。它与 GNU C语言规范几乎完全兼容(当然,也有部分不兼容的内容,包括编译命令选项也会有点差异),并在此基础上增加了额外的语法特性,比如 C 函数重载(通过__attribute__((overloadable))来修饰函数),其目标(之一)就是超越 GCC。
网上差不多的解释
Clang:是一个C、C++、Objective-C和Objective-C++编程语言的编译器前端。它采用了底层虚拟机(LLVM)作为其后端。它的目标是提供一个GNU编译器套装(GCC)的替代品。作者是克里斯·拉特纳(Chris Lattner),在苹果公司的赞助支持下进行开发,而源代码授权是使用类BSD的伊利诺伊大学厄巴纳-香槟分校开源码许可。Clang主要由C++编写。
Clang项目包括Clang前端和Clang静态分析器等。这个软件项目在2005年由苹果电脑发起,是LLVM(Low Level Virtual Machine)编译器工具集的前端(front-end),目的是输出代码对应的抽象语法树(Abstract Syntax Tree, AST),并将代码编译成LLVM Bitcode。接着在后端(back-end)使用LLVM编译成平台相关的机器语言。
Clang本身性能优异,其生成的AST所耗用掉的内存仅仅是GCC的20%左右。2014年1月发行的FreeBSD10.0版将Clang/LLVM作为默认编译器。
我在安装Qt5.12.9时,默认是没有安装Clang编译器的
二、解决办法
1.在Qt维护中装上Clang组件
1.首先不用重装Qt,只是装上Clang组件就可以了,打开你的Qt安装目录中,双击“MaintenanceTool.exe”
2. 点击下一步
3.添加或移除组件
4.此操作至少需要一个处于启动状态的有效资料档案库
5.点击“设置”
设置清华大学的镜像地址
https://mirrors.tuna.tsinghua.edu.cn/qt/online/qtsdkrepository/mac_x64/root/qt/
由于我是window系统所以没有Clang编译器,如果您使用的是Mac系统应该可以看到Clang编译器选项
2.在QtCreator中设置clang
1.QtCreator中选择“帮助”->“关于插件§”
2.C+±>ClangCodeModel
C+±>ClangCodeModel 后面的勾勾去掉
边栏推荐
- Interchangeability and Measurement Techniques - Tolerance Principles and Selection Methods
- What are port 80 and port 443?What's the difference?
- "3 Longest Substring Without Repeating Characters" on the 17th day of LeetCode brushing
- 使用jackson解析json数据详讲
- 【FPGA】day18-ds18b20实现温度采集
- A brief analysis of whether programmatic futures trading or manual order is better?
- es-head plugin insert query and conditional query (5)
- 【力扣】22.括号生成
- 使用百度EasyDL实现智能垃圾箱
- 校园兼职平台项目反思
猜你喜欢
What is ensemble learning in machine learning?
【组成原理 九 CPU】
When EasyCVR is connected to the GB28181 device, what is the reason that the device is connected normally but the video cannot be played?
移动端地图开发选择哪家?
Interchangeability Measurements and Techniques - Calculation of Deviations and Tolerances, Drawing of Tolerance Charts, Selection of Fits and Tolerance Classes
Read the article, high-performance and predictable data center network
Detailed explanation of VIT source code
Provincial level of Echart maps, as well as all prefecture-level download and use
Get Qt installation information: including installation directory and various macro addresses
Basic understanding of MongoDB (2)
随机推荐
机器学习是什么?详解机器学习概念
机器学习中什么是集成学习?
机器学习可以应用在哪些场景?机器学习有什么用?
What is machine learning?Explain machine learning concepts in detail
什么是机器强化学习?原理是什么?
每日一题-滑动窗口
常见布局效果实现方案
EasyCVR接入海康大华设备选择其它集群服务器时,通道ServerID错误该如何解决?
“顶梁柱”滑坡、新增长极难担重任,阿里“蹲下”是为了跳更高?
Multi-merchant mall system function disassembly 26 lectures - platform-side distribution settings
A simple JVM tuning, learn to write it on your resume
Roewe imax8ev cube battery security, what blackening and swelling are hidden behind it?
MySQL数据库存储引擎以及数据库的创建、修改与删除
AI + medical: for medical image recognition using neural network analysis
华南师范宋宇老师课堂对话论文翻译
En-us is an invalid culture error solution when Docker links sqlserver
Callable实现多线程
Power Cabinet Data Monitoring RTU
shell监视gpu使用情况
App基本框架搭建丨日志管理 - KLog