QtSvg not built

  • I'm trying to build a moderately lightweight Qt library from source, and the following set of configuration options almost works for me:

    @configure -opensource -debug-and-release -c++11 -no-compile-examples -opengl desktop -no-openssl -no-icu -no-iconv -nomake examples -nomake tests -qt-zlib -prefix C:\Qt\5.1.1\x86_64@

    I say 'almost' because the one module that's missing appears to be QtSvg.

    Qt4 had an explicit -svg option to ensure that the corresponding module was built, but Qt5 does not appear to have this - or at least, there's no mention of SVG in the output of 'configure -help'.

    So, what do I need to do to ensure QtSVG is built?

  • Lifetime Qt Champion


    Good question I can't answer right away, but you can try to build it by hand. You can call qmake then make in the qtsvg folder

  • Thank you, yes, that worked: once my main compilation had finished, I just moved to src\qtsvg and typed 'qmake' then 'nmake' and a few minutes later I had my missing DLL.

    It still seems very unsatisfactory though; I still have the feeling that I've missed something that should be obvious...

  • Lifetime Qt Champion

    If you have time you can try to rebuild adding your options one by one, to see which one poses problem

  • I've actually done quite a lot of that already - certainly disabling the options which cause sections such as icu and iconv not to be compiled - but nothing I've tried so far has worked. There are of course hundreds of possible permutations and combinations, and I can't work through all of them.

  • Lifetime Qt Champion

    Indeed, but I was just thinking about the options you used that disables things like -no-iconv/-no-icu (AFAIK icu should not influence QtSvg)

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.