Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. No svg plugin in static Qt
Forum Updated to NodeBB v4.3 + New Features

No svg plugin in static Qt

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 2.7k Views 1 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.
  • P Offline
    P Offline
    passik
    wrote on last edited by
    #1

    Hi. I've compiled Qt 5.2.1 as static, but there isn't any svg libs in 'C:\Qt\5.2.1_static\plugins\imageformats', so i can not build my code. I expected libqsvg.a and other libs to be there, but there is only libqico.a, libqicod.a, qico.prl, qicod.prl. Here is my config: configure -static -prefix "C:\Qt\5.2.1_static" -opengl desktop -nomake examples -nomake tests. How can i build Qt with svg plugin? Or i should build svg plugin separately?

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

      Hi and welcome to devnet,

      The svg format is not supported trough an image plugin but the QtSVG module.

      You need to build it then add

      @QT += svg@

      in your pro file

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

      1 Reply Last reply
      0
      • P Offline
        P Offline
        passik
        wrote on last edited by
        #3

        Thanks, but my problem isn't solved.
        How can i build module for static linking? I've built it just with qmake and mingw32-make, and then copied files from
        "Qt\5.2.1\Src\qtsvg\mkspecs\modules" to "Qt\5.2.1_static\mkspecs\modules". Qt Creator finds module now, parsing is ok, but .exe file crashes at start. I think, my QtSvg build is for dynamic linking, but i'm not sure, and don't know how to make static one. Is it possible to build Qt including that module, maybe some instructions for configure step? It would be easier for me. Thank you again!

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

          Did you got both dlls and lib files ?

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

          1 Reply Last reply
          0
          • P Offline
            P Offline
            passik
            wrote on last edited by
            #5

            Which files exactly? Where?

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

              Qt5Svg.lib in your Qt\5.2.1_static\lib

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

              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