当前位置:网站首页>QT compilation error: unknown module (s) in qt: script
QT compilation error: unknown module (s) in qt: script
2022-06-26 03:13:00 【Pepsi__】
When cross compiling , Used in projects script An error occurred while the module
QT += script
ERROR: Unknown module(s) in QT: script
terms of settlement : Compile it yourself qtscript library
To qt Download from the official website qtscript Source code :https://download.qt.io/archive/qt/
Find yourself qt edition , my qt The version is 5.9.6, Enter into submodules Under the table of contents , download qtscript-opensource-src-5.9.6.zip file 
Unzip after download
To the unzipped source directory , take include Copy to all folders qt Installation directory qt edition / compiler / Under the table of contents . my qt The installation directory is /opt/Qt5.9.6/, So copy it in /opt/Qt5.9.6/5.9.6/gcc_64 Under the table of contents 
Put the... In the source directory src The folder is also copied in qt Installation directory qt edition / compiler / Under the table of contents .
Find the project file in the source code .pro. use qt open , And compile , After compilation , Will be generated in the compilation directory qt5script library 
In use of qtscript In the project of the module , Right click , Add library 
Select the compiled Library libQt5Script.so
Click on next, complete 
After the library is added , In the use of QScriptEngine Make the following changes to the header file 
There is no need to add... To the project QT += script
边栏推荐
- 小 P 周刊 Vol.10
- 【解决】CMake was unable to find a build program corresponding to “Unix Makefiles“.
- [flask introduction series] flask processing request and response
- 力扣(LeetCode)176. 第二高的薪水(2022.06.25)
- 解析社交机器人中的技术变革
- Golang--channel and select
- [machine learning] case study of college entrance examination prediction based on multiple time series
- 如何在 ggplot2 中向绘图中添加表格
- Arthas(阿尔萨斯) 能为你做什么?
- 学习太极创客 — MQTT(四)服务端连接操作
猜你喜欢

Termux install openssh

How to prompt

小 P 周刊 Vol.10

Overview of orb-slam3 paper

Une citation classique de la nature humaine que vous ne pouvez pas ignorer

Little p weekly Vol.10

DF reports an error stale file handle

OpenAPI 3.0 规范-食用指南

用元分析法驱动教育机器人的发展

Utonmos: digital collections help the inheritance of Chinese culture and the development of digital technology
随机推荐
Qt编译出错ERROR: Unknown module(s) in QT: script
Clion项目中运行多个main函数
Little p weekly Vol.10
Wealth freedom skills: commercialize yourself
2021-08-04
Translation notes of orb-slam series papers
Classic quotations from "human nature you must not know"
力扣(LeetCode)175. 组合两个表(2022.06.24)
Lumen Analysis and Optimization of ue5 global Lighting System
PCA and automatic encoder for dimension reduction of R language
小 P 周刊 Vol.10
[QT] custom control - air quality dashboard
Can the main RF circuit be removed for projects that do not need the main RF?
Overview of orb-slam3 paper
How to delete gridlines in ggplot2 (with examples)
Good news | congratulations on the addition of 5 new committers in Apache linkage (incubating) community
[solution] cmake was unable to find a build program corresponding to "UNIX makefiles"
【QT】自定义控件-空气质量仪表盘
Business process diagram design
Mysql常用sql语句之修改表名、删除表、获取表信息、删除指定日期的表记录