当前位置:网站首页>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 后面的勾勾去掉
边栏推荐
- MySQL数据库存储引擎以及数据库的创建、修改与删除
- 你不知道的 console.log 替代品
- C# 一周入门高级编程之《C#-LINQ》Day Four
- 常见布局效果实现方案
- CTO said that the number of rows in a MySQL table should not exceed 2000w, why?
- En-us is an invalid culture error solution when Docker links sqlserver
- MYSQLg高级------回表
- 这些云自动化测试工具值得拥有
- Build Zabbix Kubernetes cluster monitoring platform
- UNI-APP_iphone bottom safe area
猜你喜欢

Day20 FPGA 】 【 - block the I2C read and write EEPROM

【FPGA】SDRAM

Redis老了吗?Redis与Dragonfly性能比较

LeetCode刷题第11天字符串系列之《 58最后一个单词长度》

EasyCVR接入海康大华设备选择其它集群服务器时,通道ServerID错误该如何解决?

Interchangeability and Measurement Technology—Surface Roughness Selection and Marking Method

【FPGA】day22-SPI协议回环

"98 BST and Its Verification" of the 13th day of leetcode brushing series of binary tree series

移动端地图开发选择哪家?

Interchangeable Measurement Techniques - Geometric Errors
随机推荐
.NET 服务注册
App基本框架搭建丨日志管理 - KLog
How to learn machine learning?machine learning process
When EasyCVR is connected to the GB28181 device, what is the reason that the device is connected normally but the video cannot be played?
Graphical LeetCode - 640. Solving Equations (Difficulty: Moderate)
Description of ESB product development steps under cloud platform
Homework 8.10 TFTP protocol download function
.NET自定义中间件
Will oracle cardinality affect query speed?
Binary tree related code questions [more complete] C language
【ADI低功耗2k代码】基于ADuCM4050的ADXL363、TMP75的加速度、温度检测及串口打印、蜂鸣器播放音乐(孤勇者)
使用百度EasyDL实现施工人员安全装备检测
MYSQLg高级------聚簇索引和非聚簇索引
LeetCode Brush Questions Day 11 String Series "58 Last Word Length"
Get Qt installation information: including installation directory and various macro addresses
Power Cabinet Data Monitoring RTU
shell监视gpu使用情况
【FPGA】设计思路——I2C协议
console.log alternatives you didn't know about
DNS separation resolution and intelligent resolution