当前位置:网站首页>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
边栏推荐
- Learn from Taiji makers - mqtt (V) publish, subscribe and unsubscribe
- 【QT】自定义控件-开关
- 网上股票开户安全吗?
- Version management tool usage
- GD32 ADC采集电压
- js array数组json去重
- 学习太极创客 — MQTT(四)服务端连接操作
- Simple use example of Aidl
- Lumen Analysis and Optimization of ue5 global Lighting System
- [flask introduction series] flask processing request and response
猜你喜欢

Learn from Taiji makers - mqtt (V) publish, subscribe and unsubscribe

数据库的授权

NoSQL之Redis配置与优化

Possible values for @supply in kotlin

DF reports an error stale file handle

【解决】CMake was unable to find a build program corresponding to “Unix Makefiles“.

如何在 R 中的绘图中添加回归方程

On virtual memory and oom in project development

Business process diagram design

Wealth freedom skills: commercialize yourself
随机推荐
如何筹备一场感人的婚礼
UTONMOS:以数字藏品助力华夏文化传承和数字科技发展
Golang regexp package use - 06 - other usage (Special Character conversion, find regular Common prefix, Switch gourmand mode, query regular Group NUMBER, query regular Group name, cut with regular, qu
js array数组json去重
使用 AnnotationDbi 转换 R 中的基因名称
如何在 ggplot2 中向绘图中添加表格
在UE内添加控制台工程(Programs)
如何提词条
解析社交机器人中的技术变革
PCA and automatic encoder for dimension reduction of R language
MySQL根据查询的数据更新记录
Version management tool usage
文献阅读---优化RNA-seq研究以研究除草剂耐药性(综述)
力扣(LeetCode)175. 组合两个表(2022.06.24)
Dual batteries in series, hardware design
The programmer's eight-year salary change has made netizens envious: you pay me one year's salary per month
Wealth freedom skills: commercialize yourself
请指教同花顺开户选选择哪家券商比较好?网上开户是否安全么?
基于 ovarian 数据集 进行生存分析
Arduino string to hexadecimal number for large color serial port screen.