Unknown module(s) in QT: svg

狂风中的少年 提交于 2019-11-27 17:06:40

问题


Added QT += svg and I tried just QT += svg and greaterThan(QT_MAJOR_VERSION, 4): QT += svg to the .pro solution file and ran qmake from inside the QtCreator and got this error:

error: Unknown module(s) in QT: svg

Any ideas?


回答1:


You are lacking the installation of the the QtSvg library. Try to install them on your Ubuntu 13.10 in the following way:

sudo apt-get install libqt5svg5*



回答2:


Debian Stretch:

sudo apt install libqt5svg5-dev

Fedora (courtesy of @robin-green):

sudo dnf install qt5-qtsvg-devel



回答3:


Because zsh complains to me about "no matches found" when using lpapp's answer, I would like to add here: On Debian Systems one can get the required library for release builds via:

sudo apt install libqt5svg5

and if one also wants to build a debug build one requires:

sudo apt install libqt5svg5-dev

additionally.



来源:https://stackoverflow.com/questions/21098805/unknown-modules-in-qt-svg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!