Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to build qtsvg-module of QT5.2?
QtWS25 Last Chance

How to build qtsvg-module of QT5.2?

Scheduled Pinned Locked Moved General and Desktop
9 Posts 2 Posters 6.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    thealse
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

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

      (Z(:^

      1 Reply Last reply
      0
      • T Offline
        T Offline
        thealse
        wrote on last edited by
        #3

        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 :(

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          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
          @

          (Z(:^

          1 Reply Last reply
          0
          • T Offline
            T Offline
            thealse
            wrote on last edited by
            #5

            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?

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              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).

              (Z(:^

              1 Reply Last reply
              0
              • T Offline
                T Offline
                thealse
                wrote on last edited by
                #7

                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)

                1 Reply Last reply
                0
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #8

                  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.

                  (Z(:^

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    thealse
                    wrote on last edited by
                    #9

                    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)

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved