我正在为一个项目在 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/