我已经下载了qt-everywhere-opensource-src-5.6.0,并在WIndows 7上使用mingw32的配置选项进行了构建:
configure -static -release -platform win32-g++ -openssl -I C:\OpenSSL-Win32\include -L C:\OpenSSL-Win32\lib\MinGW -target xp -no-directwrite -no-angle -no-opengl -static-runtime -wmf-backend -audio-backend当包含QT +=多媒体时,我从.pro得到“未知模块在QT:多媒体”。
在目录'C:\qt-everywhere-opensource-src-5.6.0\‘或'C:\qt-everywhere-opensource-src-5.6.0\qtbase\include’中不存在名为qt多媒体的文件夹。
我发现了这个:qtmultimedia-opensource-src-5.6.0.7z
如何在我的QT中添加QtMultimedia支持。
发布于 2018-07-11 03:16:28
所以你想静态地构建qt multimedia模块。我在您传递给configure的参数中看不到任何错误。添加-make libs是可行的。然而,我已经构建了很多次qt的静态版本,并且我总是得到对Qt多媒体的支持。下面是我在Windows上构建Qt时经常使用的参数:
configure -prefix "/somePath/Qt511Static" -static -static-runtime -release -opensource -confirm-license -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -sql-sqlite -make libs -nomake tools -nomake examples -nomake tests -skip qtwebengine
还要确保您正确安装了qt的静态版本,并在qt creator中设置了一个新的静态工具包。
发布于 2018-08-06 18:11:39
您可以在C:\qt-everywhere-opensource-src-5.6.0\qtbase中而不是在C:\qt-everywhere-opensource-src-5.6.0的顶级目录中运行configure
这将导致只配置qtbase。因此,当您运行nmake或jom之后,您将只获得基本模块,而不是其他模块,如多媒体。
https://stackoverflow.com/questions/43338668
复制相似问题