当前位置:网站首页>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
边栏推荐
- arduino字符串转16进制数 大彩串口屏用。
- Redis configuration and optimization of NoSQL
- A few simple ways for programmers to exercise their waist
- Literature reading --- optimize RNA SEQ research to study herbicide resistance (review)
- 在 R 中创建非线性最小二乘检验
- Limit the input character length to 1 character in English and 2 characters in Chinese
- 《你不可不知的人性》经典语录
- 解读Oracle
- I am in Zhongshan. Where can I open an account? Is it safe to open an account online?
- 【flask入门系列】flask处理请求和处理响应
猜你喜欢

UE5全局光照系统Lumen解析与优化

Possible values for @supply in kotlin

Google recommends using kotlin flow in MVVM architecture

Drawing structure diagram with idea

Classic quotations from "human nature you must not know"

OpenAPI 3.0 specification - Food Guide

组件与路由

如何提词条

【论文笔记】Learning to Grasp with Primitive Shaped Object Policies

小 P 周刊 Vol.10
随机推荐
What can Arthas do for you?
少儿编程对国内传统学科的推进作用
网络PXE启动WinPE,支持UEFI和LEGACY引导
如何在 ggplot2 中删除网格线(附示例)
工作室第3次HarmonyOS培训笔记
Good news | congratulations on the addition of 5 new committers in Apache linkage (incubating) community
Matlab| short term load forecasting of power system based on BP neural network
P2483-[模板]k短路/[SDOI2010]魔法猪学院【主席树,堆】
R language Markov chain Monte Carlo: practical introduction
【系统架构】-如何评估软件架构
Une citation classique de la nature humaine que vous ne pouvez pas ignorer
[QT] custom control - air quality dashboard
解析社交机器人中的技术变革
【解决】CMake was unable to find a build program corresponding to “Unix Makefiles“.
我在中山,到哪里开户比较好?网上开户是否安全么?
Oracle练习
R language survival analysis
Components and routing
使用 AnnotationDbi 转换 R 中的基因名称
如何在 R 中的绘图中添加回归方程