Unknown module(s) in QT: svg

2020-02-09 23:53发布

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?

3条回答
兄弟一词,经得起流年.
2楼-- · 2020-02-10 00:15

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.

查看更多
贪生不怕死
3楼-- · 2020-02-10 00:28

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*
查看更多
混吃等死
4楼-- · 2020-02-10 00:40

Debian Stretch:

sudo apt install libqt5svg5-dev

Fedora (courtesy of @robin-green):

sudo dnf install qt5-qtsvg-devel
查看更多
登录 后发表回答