Important: Please read the Qt Code of Conduct -

How to build qtsvg-module of QT5.2?

  • Hi,

    I have check out QT5.2 from git. I want to build qtsvg for an embedded device.
    But I can not find a way to build qtsvg module?

    @user@ubuntu:~/Downloads/qt5$ make module-qtsvg
    make: *** No rule to make target `module-qtsvg'. Stop.@

    Also searching MAKEFILE for svg returns nothing.
    What is going on with the svg module?

  • Moderators

    You need to configure Qt before running make. So, something like:
    ./configure <options>
    make module-qtsvg

  • Hi, I know but when I run configure with -svg ,it produces an error.
    see below:

    @+ /home/user/Downloads/qt5/qtbase/configure -top-level -v -opensource -confirm-license -opengl es2 -svg -make libs -device imx53 -nomake examples -nomake tests -no-audio-backend -no-nis -no-pch -no-dbus -no-openssl -no-c++11 -skip qtsvg -skip qtlocation -skip qtactiveqt -skip qtscript -skip qtmacextras -skip qtsensors -skip qtserialport -skip qtconnectivity -skip qtmultimedia -qt-freetype -device-option CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.3.3-glibc-2.8-cs2009q1-203/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi- -sysroot /mnt/freescale/ltib_10.04_gtt/ltib/rootfs -no-gcc-sysroot -prefix /usr/local/qt5
    -svg: invalid command-line switch@

    QT5 in a nutshell, undocumented and confusing when it comes to building :(

  • Moderators

    You do not need this flag. Qt will build all modules by default. The only thing you can do is to skip some of the modules with "-skip":
    ./configure -skip webkit

  • Hi, thanks again for the reply.

    The output which the below commands returns shows no messages which I can use to see whether qtsvg was configured or not. @./configure <option>@

    How can I check that my QT5 build actually includes qtsvg?

  • Moderators

    See if folder with named "qtsvg" is there. Once your module is built, the binaries will be copied to "qtase" folder (exact structure there depends on the platform, but in general take a look at bin and lib dirs).

  • I have qtsvg check out from git.
    I have performed ./configure, make, make install
    Still I can not find qtsvg in the qtbase-folder.

    How come qtsvg was not built?

    (I have already tested my build on target and I know it works but without qtsvg)

  • Moderators

    One of the options you pass to configure in the listing above is "-skip qtsvg"...

    Other than that, I don't know. Maybe some dependencies for building SVG are missing: configure output should inform you about that during build.

  • Sorry that was copy/pastle issue.
    From the ./configure output I can see it trying to configure OpenVG, it never tries to configure qtsvg.

    (and that is even more strange since openvg is not even supported in qt5)

Log in to reply