jingweimo的个人博客分享 http://blog.sciencenet.cn/u/jingweimo

博文

Build Qt submodule QtSvg

已有 1720 次阅读 2019-1-9 05:51 |系统分类:科研笔记

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:

https://stackoverflow.com/questions/54097920/how-to-install-or-add-qt-qtsvg-module-to-the-statically-built-qt-framework

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



https://wap.sciencenet.cn/blog-578676-1156041.html

上一篇:随笔一记
下一篇:[转载]NI-DAQmx and LabVIEW Compatibility
收藏 IP: 98.209.56.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-15 17:56

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部