c++ - 项目错误 : Unknown module(s) in QT: script?

标签 c++ qt ubuntu script

我正在为一个项目在 ubuntu 16.04 上安装 qt。我一直在遵循以下一些安装说明:

The QtCreator IDE should be installed in the home directory from: https://download.qt.io/ archive/qtcreator/4.1/4.1.0/. Next, follow these steps:


• wget https://download.qt.io/archive/qtcreator/4.1/4.1.0/qt-creator-opensource-src-4.1.0.tar.gz


• tar zvxf qt-creator-opensource-src-4.1.0.tar.gz


• sudo apt-get install build-essential


• sudo apt-get install qt5-default


• cd qt-creator-opensource-src-4.1.0


• cd src


• qmake -r


• make


一切正常,直到“qmake -r”命令给出以下错误:
阅读/home/rita/qt-creator-opensource-src-4.1.0/src/shared/qbs/src/lib/corelib/corelib.pro
项目错误:QT 中的未知模块:脚本
有谁知道如何解决这个问题?
谢谢

最佳答案

看起来您可能错过了安装几个特定于 QtQuick 的软件包。尝试安装此问题的答案中列出的软件包(假设您正在安装 Qt5):https://askubuntu.com/questions/819592/installing-qt-5-x-on-ubuntu-globally
如果这不能解决问题,最好使用 Qt 中的 .run 安装程序安装 QtCreator,而不是尝试解压缩 tarball:https://download.qt.io/archive/qtcreator/4.1/4.1.0/qt-creator-opensource-linux-x86_64-4.1.0.run .但是请注意,这只是安装 QtCreator,而不是 Qt 本身,这可能是一个更复杂的过程,具体取决于您尝试设置的 Qt 版本。

关于c++ - 项目错误 : Unknown module(s) in QT: script?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70153928/

相关文章:

c++ - 找不到Qt5WebKitWidgets

qt - 下载短文件期间阻止 Qt 应用程序

具有灵活返回类型的 C++ 函数模板

c++ - 在循环外声明的变量在 C++ 中是无法识别的

c++ - 查找 Internet Explorer_Server 的链接元素并发送 Click() 事件 (C++)

qt - 忽略变音符号的 QLineEdit/QComboBox 搜索

php - Laravel 项目创建问题

Qt Creator 在库中找不到函数

c# - 如何在 Ubuntu 上使用 NginX 提供 Blazor 应用程序

c++ - 如何在 C++ 中找到特定区间内的所有完美数?