【问题标题】:Which parts can I make, or nomake, while building Qt from source?在从源代码构建 Qt 时,我可以制作哪些部分或 nomake?
【发布时间】:2020-08-17 12:10:52
【问题描述】:

我下载了qt-everywhere-src-5.12.7.tar.xz,其中包含一个自述文件,上面写着:

See output of `./configure -help' for documentation on various options to configure.

该输出包括以下内容:

Component selection:

  -make <part> ......... Add <part> to the list of parts to be built.
                         Specifying this option clears the default list first.
                         [libs and examples, also tools if not cross-building,
                         also tests if -developer-build]
  -nomake <part> ....... Exclude <part> from the list of parts to be built.
  1. 如何找到可以用作part的名称?

来自How to compile Qt as static,我可以看到一些选项是

-nomake demos -nomake tools
  1. -no-webkit -no-script呢,和-nomake-webkit -nomake-script一样吗?

我尝试了以下操作并收到与 -no-webkit 相关的错误:

$ ./configure -prefix $PWD/qtbase -opensource -release -no-webkit -no-script -no-scripttools -no-qt3support -nomake demos -nomake tools -nomake examples
+ cd qtbase
+ /home/user/Downloads/qt/qt-everywhere-src-5.12.7/qtbase/configure -top-level -prefix /home/user/Downloads/qt/qt-everywhere-src-5.12.7/qtbase -opensource -release -no-webkit -no-script -no-scripttools -no-qt3support -nomake demos -nomake tools -nomake examples
Creating qmake...
............................................................................................Done.
Info: creating super cache file /home/user/Downloads/qt/qt-everywhere-src-5.12.7/.qmake.super
Info: creating cache file /home/user/Downloads/qt/qt-everywhere-src-5.12.7/.qmake.cache
ERROR: Unknown command line option '-no-webkit'.

【问题讨论】:

    标签: c++ qt build qt5 qmake


    【解决方案1】:

    https://doc.qt.io/qbs/qt-modules.html

    斧头容器
    斧头服务器
    并发
    核心
    dbus
    声明式
    设计师
    工程师
    桂
    帮助
    多媒体
    多媒体小部件
    网络
    opengl
    声子
    打印支持
    快速
    快速控制2
    qml
    qmltest
    脚本
    scxml
    sql
    svg
    测试库
    网络套件
    webkitwidgets
    小部件
    xml
    xml模式

    【讨论】:

    • 这是不正确的。这是 Qt 模块的列表。 Qt 模块不是命令行选项 -make 所指的“部分”。我没有找到这些部分的完整列表,所以我自己也不确定答案。
    【解决方案2】:

    Qt 6 现在在 configure --help 输出中明确说明了允许的值。 您可以在 config_help.txt 文件中的 qtbase 存储库的底部找到它。确保您拥有 Qt 6 版本的源代码——扩展的 Qt 6 源代码压缩包或 git 模块检出到 6.x 分支或标记。下面是值:

      -make <part> ......... Add <part> to the list of parts to be built.
                             Specifying this option clears the default list first.
                             (allowed values: libs, tools, examples, tests,
                             benchmarks, manual-tests, minimal-static-tests)
                             [default: libs and examples, also tools if not
                             cross-building, also tests if -developer-build]
    

    对于 Qt 5,您可以在位于 qtbase git 模块目录底部的configure.json 中看到可接受的值。确保您拥有 Qt 5 版本的源代码 - 扩展的 Qt 5 源代码压缩包或 git 模块检出到 5.x 分支或标记。下面是值:

        "make": { "type": "addString", "values": [ "examples", "libs", "tests", "tools" ] },
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-12
      相关资源
      最近更新 更多