当前位置:网站首页>Qt编译出错ERROR: Unknown module(s) in QT: script
Qt编译出错ERROR: Unknown module(s) in QT: script
2022-06-26 02:39:00 【百口可乐__】
在进行交叉编译时,在项目中使用script模块时出现错误
QT += script
ERROR: Unknown module(s) in QT: script
解决办法:自己编译qtscript库
到qt官网下载qtscript源代码:https://download.qt.io/archive/qt/
找到自己qt版本,我的qt版本是5.9.6,进入到submodules目录下,下载qtscript-opensource-src-5.9.6.zip文件
下载完成后解压
到解压后的源码目录,将include文件夹全部拷贝到qt安装目录的qt版本/编译器/目录下。我的qt安装目录是/opt/Qt5.9.6/,因此将其拷贝在/opt/Qt5.9.6/5.9.6/gcc_64目录下
将源码目录下的src文件夹同样拷贝在qt安装目录的qt版本/编译器/目录下。
在源码中找到项目文件.pro。用qt打开,并进行编译,编译完成后,会在编译目录生成qt5script库
在使用到qtscript模块的项目中,右键,添加库
选择编译好的库libQt5Script.so
点击next,完成
库添加好后,在用到QScriptEngine头文件的地方做如下修改
项目中不再需要加入QT += script
边栏推荐
- 如何在 ggplot2 中删除网格线(附示例)
- 【解决】联想拯救者vmware启动虚拟机蓝屏重启问题
- 【论文笔记】Learning to Grasp with Primitive Shaped Object Policies
- Une citation classique de la nature humaine que vous ne pouvez pas ignorer
- 基于 ovarian 数据集 进行生存分析
- Little p weekly Vol.10
- 使用IDEA画结构图
- The programmer's eight-year salary change has made netizens envious: you pay me one year's salary per month
- R 语言马尔可夫链蒙特卡洛:实用介绍
- Golang--channel and select
猜你喜欢

使用IDEA画结构图

Termux install openssh

如何提词条

Camtasia 2022 nouvelle vidéo d'ordinateur d'enregistrement ultra - clair

【论文笔记】Deep Reinforcement Learning Control of Hand-Eye Coordination with a Software Retina

【flask入门系列】flask处理请求和处理响应

Google recommends using kotlin flow in MVVM architecture

学习太极创客 — MQTT(五)发布、订阅和取消订阅

What can Arthas do for you?

The difference between like,%, - in database query SQL
随机推荐
[QT] custom control - air quality dashboard
Termux install openssh
如何在 R 中的绘图中添加回归方程
Never criticize
Vulhub replicate an ActiveMQ
附加:HikariCP连接池简述;(并没有深究,只是对HikariCP连接池有个基本认识)
scrapy返回400
Modifying table names, deleting tables, obtaining table information, and deleting table records on specified dates for common MySQL statements
Translation notes of orb-slam series papers
工作室第3次HarmonyOS培训笔记
Oracle exercise
学习太极创客 — MQTT(五)发布、订阅和取消订阅
Learn from Taiji makers - mqtt (V) publish, subscribe and unsubscribe
UE5全局光照系統Lumen解析與優化
R 语言降维的 PCA 与自动编码器
【论文笔记】Supersizing Self-supervision: Learning to Grasp from 50K Tries and 700 Robot Hours
Une citation classique de la nature humaine que vous ne pouvez pas ignorer
Overview of orb-slam3 paper
golang正則regexp包使用-06-其他用法(特殊字符轉換、查找正則共同前綴、切換貪婪模式、查詢正則分組個數、查詢正則分組名稱、用正則切割、查詢正則字串)
[flask introduction series] flask processing request and response