【发布时间】: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.
- 如何找到可以用作
part的名称?
来自How to compile Qt as static,我可以看到一些选项是
-nomake demos -nomake tools
-
-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'.
【问题讨论】: