|
Statically building Qt5 may not generate all componnets needed, such as QtSvg (Scalable Vector Graphics, SVG), depending on configurations. One example of official configurations (given here https://wiki.qt.io/Building_Qt_5_from_Git) is configure -static -opengl desktop -openvg -nomake examples -nomake tests, which only builds the qtbase module.
With the qtbase, it is easy to go further to install the desired but missing modules. Take QtSvg for example:
1) download the submodule https://download.qt.io/archive/qt/5.7/5.7.0/submodules/ (the module version needs be consistent with that of the previously built Qt framework)
2) Run vs2015 x64 command prompt or cmd (as adminstrator if necessary)
3) Navigate to the directory where the module is unzipped
4) Call qmake
5) Call nmake (make for lunix)
Sources:
http://doc.qt.io/qt-5/configure-options.html
https://forum.qt.io/topic/67182/building-qt-in-static-mode-qtsvg/2
https://forum.qt.io/topic/37109/how-to-build-qtsvg-module-of-qt5-2/9
https://forum.qt.io/topic/53618/solved-windows-build-many-classes-cannot-be-found
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2025-1-9 16:53
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社