Unknown module(s) in QT: svg

后端 未结 3 1936
耶瑟儿~
耶瑟儿~ 2020-12-15 14:59

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 err

相关标签:
3条回答
  • 2020-12-15 15:44

    Debian Stretch:

    sudo apt install libqt5svg5-dev
    

    Fedora (courtesy of @robin-green):

    sudo dnf install qt5-qtsvg-devel
    
    0 讨论(0)
  • 2020-12-15 15:45

    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.

    0 讨论(0)
  • 2020-12-15 15:58

    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*
    
    0 讨论(0)
提交回复
热议问题