从源代码构建 QT 模块

Building QT module from source

能否请谁详细解释一下如何构建单个qt模块。我试图理解 build sources documentation, but there is no info on how to build just a single module, let alone what to do with it after. I would like to do some modification on the qtmultimedia 模块,使用更改构建它并在我现有的 QT 安装中使用该模块。我只需要 IOS 部分。

使用您要用于构建的 Qt 构建中的 qmake 可执行文件来创建 Makefile。然后 运行 make.

<path_to_qt_build>/bin/qmake <path_to_module>
make [or nmake or jom for windows]

配置过程后只需输入:

make -j<N> module-<foo>,

其中“foo”是您需要的模块名称