Fedora 25 上的 Qt Creator:“未找到有效的套件”

Kla*_*aus 4 qt qt-creator fedora-25

如果我尝试在 Qt Creator 中打开现有项目,我总是会收到“未找到有效套件”的信息。

我发现了很多关于此的问答,但在我的安装中,我无法选择有效的 Qt 版本,因为:

在“构建&运行”->“儿童”->“桌面”->“QtVersion”中:无

我在该字段中看不到任何其他条目。

正如已经提到的:它是 Fedora 25 x86_64 版本。

Qt Creator 在命令行中给出:

警告:找不到套件“qt.57.gcc_64_kit”。继续。

这是一个应该存在于某处的文件吗?可以在某处下载吗?手动配置似乎是不可能的,因为无法选择qt版本。

是否有我没有安装的软件包?是否有任何元包可用于获得有效的安装?

我安装了什么:

rpm-qa| grep qt5

    dbusmenu-qt5-0.9.3-0.11.20150604.fc24.x86_64
    qt5-qtbase-gui-5.7.0-3.fc25.x86_64
    qt5-qtwebchannel-5.7.0-2.fc25.x86_64
    qt5-qttools-static-5.7.0-3.fc25.x86_64
    qt5-qtconfiguration-devel-0.3.1-2.fc24.x86_64
    adwaita-qt5-0.4-3.fc25.x86_64
    qt5-qtsvg-devel-5.7.0-2.fc25.x86_64
    qt5-qtbase-common-5.7.0-3.fc25.noarch
    qt5-qtlocation-devel-5.7.0-2.fc25.x86_64
    qt5-qttools-libs-designer-5.7.0-3.fc25.x86_64
    qt5-qtx11extras-devel-5.7.0-2.fc25.x86_64
    qt5-qtserialport-5.7.0-2.fc25.x86_64
    qt5-qttools-devel-5.7.0-3.fc25.x86_64
    qt5-qtconfiguration-0.3.1-2.fc24.x86_64
    qt5-qtwayland-devel-5.7.0-2.fc25.x86_64
    qt5-qttools-libs-clucene-5.7.0-3.fc25.x86_64
    qt5-qtlocation-5.7.0-2.fc25.x86_64
    quazip-qt5-0.7.2-1.fc25.x86_64
    qt5-qttools-libs-designercomponents-5.7.0-3.fc25.x86_64
    qt5-qttools-5.7.0-3.fc25.x86_64
    qt5-qtenginio-devel-1.6.1-2.fc25.x86_64
    qt5-linguist-5.7.0-3.fc25.x86_64
    qt5-qtwebsockets-devel-5.7.0-1.fc25.x86_64
    qt5-qtconnectivity-devel-5.7.0-2.fc25.x86_64
    qt5-qtsvg-5.7.0-2.fc25.x86_64
    qt5-qtquickcontrols-5.7.0-1.fc25.x86_64
    qt5-qtwayland-5.7.0-2.fc25.x86_64
    qt5-devel-5.7.0-9.fc25.noarch
    qt5-qtxmlpatterns-5.7.0-2.fc25.x86_64
    qt5-qtwebkit-5.7.0-2.fc25.x86_64
    qt5-qtserialport-devel-5.7.0-2.fc25.x86_64
    qt5-qtaccountsservice-devel-0.6.0-2.fc24.x86_64
    qt5-qttools-libs-help-5.7.0-3.fc25.x86_64
    qt5-qtmultimedia-5.7.0-2.fc25.x86_64
    qt5-qtimageformats-5.7.0-2.fc25.x86_64
    qt5-qtsensors-5.7.0-2.fc25.x86_64
    qt5-qtdoc-5.7.0-1.fc25.noarch
    qt5-designer-5.7.0-3.fc25.x86_64
    qt5-qtbase-static-5.7.0-3.fc25.x86_64
    qt5-qtenginio-1.6.1-2.fc25.x86_64
    qt5-qt3d-5.7.0-2.fc25.x86_64
    qt5-qtbase-5.7.0-3.fc25.x86_64
    qt5-qtdeclarative-devel-5.7.0-2.fc25.x86_64
    qt5-rpm-macros-5.7.0-9.fc25.noarch
    qt5-qhelpgenerator-5.7.0-3.fc25.x86_64
    qt5-qtwebsockets-5.7.0-1.fc25.x86_64
    qt5-qtconnectivity-5.7.0-2.fc25.x86_64
    phonon-qt5-4.9.0-3.fc25.x86_64
    qt5-qtscript-5.7.0-2.fc25.x86_64
    qt5-qtwebchannel-devel-5.7.0-2.fc25.x86_64
    qt5-gstreamer-devel-1.2.0-11.fc25.x86_64
    qt5-qtaccountsservice-0.6.0-2.fc24.x86_64
    phonon-qt5-backend-gstreamer-4.9.0-1.fc25.x86_64
    qt5-qtscript-devel-5.7.0-2.fc25.x86_64
    qt5-qtbase-devel-5.7.0-3.fc25.x86_64
    qt5-qtx11extras-5.7.0-2.fc25.x86_64
    polkit-qt5-1-0.112.0-8.fc25.x86_64
    qt5-qdoc-5.7.0-3.fc25.x86_64
    qt5-qtdeclarative-static-5.7.0-2.fc25.x86_64
    qt5-qtwebkit-devel-5.7.0-2.fc25.x86_64
    qt5-gstreamer-1.2.0-11.fc25.x86_64
    qt5-qtdeclarative-5.7.0-2.fc25.x86_64
    qt5-qtsensors-devel-5.7.0-2.fc25.x86_64
    qt5-qttools-common-5.7.0-3.fc25.noarch
    qt5-qtmultimedia-devel-5.7.0-2.fc25.x86_64
    qt5-qtxmlpatterns-devel-5.7.0-2.fc25.x86_64
    qt5-qt3d-devel-5.7.0-2.fc25.x86_64
Run Code Online (Sandbox Code Playgroud)

Ven*_*emo 5

我还在 Fedora 25 上使用 Qt Creator 进行开发,它对我有用。

我通常是这样做的:

dnf install make gcc-c++ gdb
dnf install qt5*-devel
dnf install qt-creator
Run Code Online (Sandbox Code Playgroud)

之后,我在新的 Fedora 25 上获得了一个可以工作的 Qt Creator 配置(我昨天刚刚从头开始安装)。

老实说,我不确定你可能做错了什么,但我有一些想法:

  • 您是否从以前的操作系统版本升级,或者是否将以前的 Qt Creator 版本的配置复制到新安装中?
  • 检查您是否安装了编译器和构建环境(makegcc、 ...)
  • 如果其配置已损坏,您可以尝试删除~/.config/QtProject,Qt Creator 可能会识别您的内容。
  • *.pro.user如果您的项目文件可能是由以前的 Qt Creator 版本生成的,请尝试删除该文件

无论如何,您都可以相对轻松地修复配置。

  • 转到工具 -> 选项
  • 选择构建并运行
  • 在“编译器”选项卡上,您应该在自动检测部分中看到已安装的编译器。如果您安装了编译器但无法识别,请在此处手动添加。
  • 在 Qt 版本选项卡上,我从 Fedora 存储库安装的版本(当前为 5.7.0)出现在手动部分中(即使我没有手动添加它)。您可以通过浏览到 来添加它/usr/bin/qmake-qt5
  • 在 Kits 选项卡上,我有一个名为 Desktop 的手动条目,它基本上设置为使用上面提到的编译器和 Qt 版本。