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. Building qt 5.9.7 on CentOS 7 completes but qtsvg seems to be missing
Qt 6.11 is out! See what's new in the release blog

Building qt 5.9.7 on CentOS 7 completes but qtsvg seems to be missing

Scheduled Pinned Locked Moved Unsolved General and Desktop
26 Posts 4 Posters 4.7k Views 2 Watching
  • 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.
  • Y Offline
    Y Offline
    yryu4526
    wrote on last edited by
    #3

    I believe I said it successfully built qt5 so no build errors but qtsvg was apparently not available when trying to build the other application. Not sure what you meant by "build it alone"?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #4

      Then go to the qtsvg subdirectory and type 'make' to see if something gets compiled.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      Y 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        Then go to the qtsvg subdirectory and type 'make' to see if something gets compiled.

        Y Offline
        Y Offline
        yryu4526
        wrote on last edited by
        #5

        I just did and nothing additional built. Two questions:

        • Are there any test programs etc. I can run to make sure I have clean and complete compile?
        • After compiling qt with, in my case, gmake and then gmake install, are there any environment variables I need to set in order to compile another application that uses qt? If I type qmake --version it tells me:
          QMake version 3.1
          Using Qt version 5.9.7 in /usr/local/Qt-5.9.7/lib
          Is this sufficient for when using qmake to build this other application, pgmodeler, that uses qt?
        Y 1 Reply Last reply
        0
        • Y yryu4526

          I just did and nothing additional built. Two questions:

          • Are there any test programs etc. I can run to make sure I have clean and complete compile?
          • After compiling qt with, in my case, gmake and then gmake install, are there any environment variables I need to set in order to compile another application that uses qt? If I type qmake --version it tells me:
            QMake version 3.1
            Using Qt version 5.9.7 in /usr/local/Qt-5.9.7/lib
            Is this sufficient for when using qmake to build this other application, pgmodeler, that uses qt?
          Y Offline
          Y Offline
          yryu4526
          wrote on last edited by
          #6

          I just checked pgmodeler.pri, apparently the file qmake pulls in when building pgmodeler and it contains the following statements for qt:

          General Qt settings

          QT += core widgets printsupport network svg
          CONFIG += ordered qt stl rtti exceptions warn_on c++11
          TEMPLATE = subdirs
          MOC_DIR = moc
          OBJECTS_DIR = obj
          UI_DIR = src

          Is there anything above that I should double-check? The most likely explanation for the error:
          Project ERROR: Unknown module(s) in QT: svg
          might be that something is misconfigured??

          Y 1 Reply Last reply
          0
          • Y yryu4526

            I just checked pgmodeler.pri, apparently the file qmake pulls in when building pgmodeler and it contains the following statements for qt:

            General Qt settings

            QT += core widgets printsupport network svg
            CONFIG += ordered qt stl rtti exceptions warn_on c++11
            TEMPLATE = subdirs
            MOC_DIR = moc
            OBJECTS_DIR = obj
            UI_DIR = src

            Is there anything above that I should double-check? The most likely explanation for the error:
            Project ERROR: Unknown module(s) in QT: svg
            might be that something is misconfigured??

            Y Offline
            Y Offline
            yryu4526
            wrote on last edited by
            #7

            I now have two docker containers:

            • In the first one I downloaded the qt5 libraries (5.9.7) etc available in CentOS repositories and then cloned pgmodeler from github and was able to build version 0.9.0-alpha1 of the latter successfully.
            • In the second container I did /not/ download the qt5 libraries from the repositories but cloned pgmodeler exactly as above and the compile of that results in Qt svg not found as earlier stated.

            I see three differences between the two different docker containers:

            • In the first one I use qmake-qt5 for the build, in the second I use qmake (no qmake-qt5 is generated).
            • In the first one the qt libraries are in /usr/lib64 and in the second one they are in /usr/local/Qt-5.9.7/lib.
            • The third difference is a slight difference in size of individual library files, not sure why.

            But, could there be a configuration problem?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #8

              Do you have the QtSvg module installed in your custom build ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              Y 1 Reply Last reply
              0
              • SGaistS SGaist

                Do you have the QtSvg module installed in your custom build ?

                Y Offline
                Y Offline
                yryu4526
                wrote on last edited by
                #9

                Could you explain a bit further, what do you mean by "installed in your custom build"? Two messages up I pasted the qt section of the build profile for the other app.

                Y SGaistS 2 Replies Last reply
                0
                • Y yryu4526

                  Could you explain a bit further, what do you mean by "installed in your custom build"? Two messages up I pasted the qt section of the build profile for the other app.

                  Y Offline
                  Y Offline
                  yryu4526
                  wrote on last edited by
                  #10

                  Just for "fun" I removed the svg reference in the qt section of the build profile for the third-party app and I could begin building it. However, it failed late in the build process when it tried to access qtsvg.

                  I have to believe there is something wrong with the setup since the qtsvg modules are not picked up. Might there be some bug in qt 5.9.7 itself that does not make qtsvg available? Or some setup configuration I have missed since although it builds, it does not seem to be available later...

                  Is there any way I can test this hypothesis outside my third-party app?

                  1 Reply Last reply
                  0
                  • Y yryu4526

                    Could you explain a bit further, what do you mean by "installed in your custom build"? Two messages up I pasted the qt section of the build profile for the other app.

                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    @yryu4526 said in Building qt 5.9.7 on CentOS 7 completes but qtsvg seems to be missing:

                    Could you explain a bit further, what do you mean by "installed in your custom build"? Two messages up I pasted the qt section of the build profile for the other app.

                    Take a look into the folder that was populated after you called "make install". Do you find anything related to QtSvg ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    Y 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      @yryu4526 said in Building qt 5.9.7 on CentOS 7 completes but qtsvg seems to be missing:

                      Could you explain a bit further, what do you mean by "installed in your custom build"? Two messages up I pasted the qt section of the build profile for the other app.

                      Take a look into the folder that was populated after you called "make install". Do you find anything related to QtSvg ?

                      Y Offline
                      Y Offline
                      yryu4526
                      wrote on last edited by
                      #12

                      That would be, I believe, /usr/local/Qt-5.9.7/lib and it does contain libQt5Svg.so.5.9.7.

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #13

                        Ok, do you have the same issue if you create a small dummy project using that module ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        Y 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          Ok, do you have the same issue if you create a small dummy project using that module ?

                          Y Offline
                          Y Offline
                          yryu4526
                          wrote on last edited by
                          #14

                          I do not know, I do not have the skills to create a new project. I asked earlier if there are any test programs in qt that I can use to check the status post-compilation?

                          mrjjM 1 Reply Last reply
                          0
                          • Y yryu4526

                            I do not know, I do not have the skills to create a new project. I asked earlier if there are any test programs in qt that I can use to check the status post-compilation?

                            mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by mrjj
                            #15

                            @yryu4526
                            Hi
                            You can just use Creator and the menu File->"New File Or project"
                            and then
                            alt text

                            then add
                            QT += svg
                            in the pro file and see if that compiles.

                            just in case you dont have creator.
                            here is default project created with thw wizard
                            https://www.dropbox.com/s/vvz5s4yhka68uui/justDefualt.zip?dl=0

                            Y 1 Reply Last reply
                            1
                            • mrjjM mrjj

                              @yryu4526
                              Hi
                              You can just use Creator and the menu File->"New File Or project"
                              and then
                              alt text

                              then add
                              QT += svg
                              in the pro file and see if that compiles.

                              just in case you dont have creator.
                              here is default project created with thw wizard
                              https://www.dropbox.com/s/vvz5s4yhka68uui/justDefualt.zip?dl=0

                              Y Offline
                              Y Offline
                              yryu4526
                              wrote on last edited by
                              #16

                              I downloaded the file into a new directory, ran "qmake -r justDefualt.pro" and got the following output:
                              Info: creating stash file /root/test/.qmake.stash
                              Project ERROR: Unknown module(s) in QT: svg

                              Note that I am running as root in a docker container, not on the main machine itself.

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #17

                                And the qmake is from your self compiled Qt ?

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                Y 1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  And the qmake is from your self compiled Qt ?

                                  Y Offline
                                  Y Offline
                                  yryu4526
                                  wrote on last edited by
                                  #18

                                  Correct, it's located in /root/qt5-build/qtbase/bin. I am wondering, since I am doing this in a docker container, there might be some configuration issue?

                                  This is the output after running the first ./configure command (../qt5/configure -opensource -prefix /usr/lib64 -nomake examples -skip qtquick1 | tee -a /qt-build.txt)
                                  :
                                  Configure summary:

                                  Build type: linux-g++ (x86_64, CPU features: mmx sse sse2)
                                  Configuration: use_gold_linker sse2 sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512bw avx512cd avx512dq avx512er avx512ifma avx512pf avx512vbmi avx512vl compile_examples enable_new_dtags f16c largefile precompile_header shared rpath release c++11 c++14 c++1z concurrent dbus reduce_exports reduce_relocations stl
                                  Build options:
                                  Mode ................................... release
                                  Optimize release build for size ........ no
                                  Building shared libraries .............. yes
                                  Using C++ standard ..................... C++1z
                                  Using ccache ........................... no
                                  Using gold linker ...................... yes
                                  Using new DTAGS ........................ yes
                                  Using precompiled headers .............. yes
                                  Using LTCG ............................. no
                                  Target compiler supports:
                                  SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2
                                  AVX .................................. AVX AVX2 F16C
                                  AVX512 ............................... F ER CD PF DQ BW VL IFMA VBMI
                                  Build parts ............................ libs tools
                                  Qt modules and options:
                                  Qt Concurrent .......................... yes
                                  Qt D-Bus ............................... yes
                                  Qt D-Bus directly linked to libdbus .... yes
                                  Qt Gui ................................. yes
                                  Qt Network ............................. yes
                                  Qt Sql ................................. yes
                                  Qt Testlib ............................. yes
                                  Qt Widgets ............................. yes
                                  Qt Xml ................................. yes
                                  Support enabled for:
                                  Using pkg-config ....................... yes
                                  QML debugging .......................... yes
                                  udev ................................... no
                                  Using system zlib ...................... yes
                                  Qt Core:
                                  DoubleConversion ....................... yes
                                  Using system DoubleConversion ........ no
                                  GLib ................................... yes
                                  iconv .................................. no
                                  ICU .................................... yes
                                  Logging backends:
                                  journald ............................. no
                                  syslog ............................... no
                                  slog2 ................................ no
                                  Using system PCRE2 ..................... no
                                  Qt Network:
                                  getaddrinfo() .......................... yes
                                  getifaddrs() ........................... yes
                                  IPv6 ifname ............................ yes
                                  libproxy ............................... no
                                  OpenSSL ................................ yes
                                  Qt directly linked to OpenSSL ........ no
                                  SCTP ................................... no
                                  Use system proxies ..................... yes
                                  Qt Gui:
                                  Accessibility .......................... yes
                                  FreeType ............................... yes
                                  Using system FreeType ................ yes
                                  HarfBuzz ............................... yes
                                  Using system HarfBuzz ................ yes
                                  Fontconfig ............................. yes
                                  Image formats:
                                  GIF .................................. yes
                                  ICO .................................. yes
                                  JPEG ................................. yes
                                  Using system libjpeg ............... no
                                  PNG .................................. yes
                                  Using system libpng ................ yes
                                  EGL .................................... no
                                  OpenVG ................................. no
                                  OpenGL:
                                  Desktop OpenGL ....................... yes
                                  OpenGL ES 2.0 ........................ no
                                  OpenGL ES 3.0 ........................ no
                                  OpenGL ES 3.1 ........................ no
                                  Session Management ..................... yes
                                  Features used by QPA backends:
                                  evdev .................................. yes
                                  libinput ............................... no
                                  INTEGRITY HID .......................... no
                                  mtdev .................................. no
                                  tslib .................................. no
                                  xkbcommon-evdev ........................ yes
                                  QPA backends:
                                  DirectFB ............................... no
                                  EGLFS .................................. no
                                  LinuxFB ................................ yes
                                  VNC .................................... yes
                                  Mir client ............................. no
                                  X11:
                                  Using system-provided XCB libraries .. yes
                                  EGL on X11 ........................... no
                                  Xinput2 .............................. yes
                                  XCB XKB .............................. yes
                                  XLib ................................. yes
                                  XCB render ........................... yes
                                  XCB GLX .............................. yes
                                  XCB Xlib ............................. yes
                                  Using system-provided xkbcommon ...... yes
                                  Qt Widgets:
                                  GTK+ ................................... no
                                  Styles ................................. Fusion Windows
                                  Qt PrintSupport:
                                  CUPS ................................... yes
                                  Qt Sql:
                                  DB2 (IBM) .............................. no
                                  InterBase .............................. no
                                  MySql .................................. no
                                  OCI (Oracle) ........................... no
                                  ODBC ................................... no
                                  PostgreSQL ............................. yes
                                  SQLite2 ................................ no
                                  SQLite ................................. yes
                                  Using system provided SQLite ......... no
                                  TDS (Sybase) ........................... no
                                  Qt SerialBus:
                                  Socket CAN ............................. yes
                                  Socket CAN FD .......................... yes
                                  QtXmlPatterns:
                                  XML schema support ..................... yes
                                  Qt QML:
                                  QML interpreter ........................ yes
                                  QML network support .................... yes
                                  Qt Quick:
                                  Direct3D 12 ............................ no
                                  AnimatedImage item ..................... yes
                                  Canvas item ............................ yes
                                  Support for Qt Quick Designer .......... yes
                                  Flipable item .......................... yes
                                  GridView item .......................... yes
                                  ListView item .......................... yes
                                  Path support ........................... yes
                                  PathView item .......................... yes
                                  Positioner items ....................... yes
                                  ShaderEffect item ...................... yes
                                  Sprite item ............................ yes
                                  Qt Gamepad:
                                  SDL2 ................................... no
                                  Qt 3D:
                                  Assimp ................................. yes
                                  System Assimp .......................... no
                                  Output Qt3D Job traces ................. no
                                  Output Qt3D GL traces .................. no
                                  Qt 3D GeometryLoaders:
                                  Autodesk FBX ........................... no
                                  Qt Wayland Client ........................ no
                                  Qt Wayland Compositor .................... no
                                  Qt Bluetooth:
                                  BlueZ .................................. no
                                  BlueZ Low Energy ....................... no
                                  Linux Crypto API ....................... no
                                  Qt Sensors:
                                  sensorfw ............................... no
                                  Qt Quick Controls 2:
                                  Styles ................................. Default Material Universal
                                  Qt Quick Templates 2:
                                  Hover support .......................... yes
                                  Multi-touch support .................... yes
                                  Qt Positioning:
                                  Gypsy GPS Daemon ....................... no
                                  WinRT Geolocation API .................. no
                                  Qt Location:
                                  Geoservice plugins:
                                  OpenStreetMap ........................ yes
                                  HERE ................................. yes
                                  Esri ................................. yes
                                  Mapbox ............................... yes
                                  MapboxGL ............................. yes
                                  Itemsoverlay ......................... yes
                                  Qt Multimedia:
                                  ALSA ................................... yes
                                  GStreamer 1.0 .......................... no
                                  GStreamer 0.10 ......................... no
                                  Video for Linux ........................ yes
                                  OpenAL ................................. no
                                  PulseAudio ............................. yes
                                  Resource Policy (libresourceqt5) ....... no
                                  Windows Audio Services ................. no
                                  DirectShow ............................. no
                                  Windows Media Foundation ............... no
                                  Qt WebEngine:
                                  Embedded build ......................... no
                                  Pepper Plugins ......................... yes
                                  Printing and PDF ....................... yes
                                  Proprietary Codecs ..................... no
                                  Spellchecker ........................... yes
                                  WebRTC ................................. yes
                                  Using system ninja ..................... no
                                  ALSA ................................... yes
                                  PulseAudio ............................. yes
                                  System libraries:
                                  re2 .................................. no
                                  ICU .................................. no
                                  libwebp and libwebpdemux ............. no
                                  Opus ................................. no
                                  ffmpeg ............................... no

                                  Note: Also available for Linux: linux-clang linux-icc

                                  Note: Dropped compiler flags '-pthread' when detecting library 'glib'.

                                  Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.

                                  Qt is now configured for building. Just run 'gmake'.
                                  Once everything is built, you must run 'gmake install'.
                                  Qt will be installed into '/usr/lib64'.

                                  Is there something above that does /not/ look correct?

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #19

                                    Did you call make install ?
                                    You can also skip building the tests.

                                    I find it strange that QtSvg is not listed. Did you parse them tests logs to see if anything has failed for it ?

                                    Did you try to manually build it after the rest was built ?

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    Y 1 Reply Last reply
                                    0
                                    • SGaistS SGaist

                                      Did you call make install ?
                                      You can also skip building the tests.

                                      I find it strange that QtSvg is not listed. Did you parse them tests logs to see if anything has failed for it ?

                                      Did you try to manually build it after the rest was built ?

                                      Y Offline
                                      Y Offline
                                      yryu4526
                                      wrote on last edited by
                                      #20

                                      Yes, I called make install and I did try building it manually - I already posted that previously.

                                      But should svg have been listed in the configuration summary I posted?? It seems odd other qt components are listed but since I am not very knowledgeable I do not know if this means anything.

                                      1 Reply Last reply
                                      0
                                      • SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #21

                                        What about the test logs ?

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        Y 1 Reply Last reply
                                        0
                                        • SGaistS SGaist

                                          What about the test logs ?

                                          Y Offline
                                          Y Offline
                                          yryu4526
                                          wrote on last edited by
                                          #22

                                          I have to look for them but my impression so far is that qtsvg is build but for some reason not picked up by qmake for the third-party app, nor for the test app given to me. Can I check this some way?

                                          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