Unknown module(s) in QT: svg
Asked Answered
C

3

66

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?

Compurgation answered 13/1, 2014 at 18:37 Comment(1)
Ubuntu 13.10. How to check this?Compurgation
O
115

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*
Outlet answered 13/1, 2014 at 20:1 Comment(5)
oddly enough I did not see the dev packages in synaptic when I entered qt svgGoulden
In Fedora it is sudo dnf install qt5-qtsvg-devel.Gadgeteer
Just doing sudo apt-get install libqt5svg5-dev resolves to all the dependencies needed by pgModeler.Bifid
@Bifid This in Ubuntu 16.04Pineal
@lpapp how to install the module to a statically built version of Qt in Windows (see my post here #54098420)Thynne
E
16

Debian Stretch:

sudo apt install libqt5svg5-dev

Fedora (courtesy of @robin-green):

sudo dnf install qt5-qtsvg-devel
Extinguish answered 17/11, 2018 at 6:13 Comment(0)
P
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.

Peroxidase answered 4/9, 2019 at 18:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.