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 in static mode - qtsvg
Forum Updated to NodeBB v4.3 + New Features

Building QT in static mode - qtsvg

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.1k 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.
  • Giuseppe_1981G Offline
    Giuseppe_1981G Offline
    Giuseppe_1981
    wrote on last edited by Giuseppe_1981
    #1

    Hi everyone,

    First of all, I am using Qt for windows:

    • QT 5.6.0 - Mingw: qt-opensource-windows-x86-mingw492-5.6.0
    • QWT 6.1.2 : qwt-6.1.2.zip

    I am trying to build QT in static mode in order to remove the dependencies of QT dlls for my application.

    The build is fine so far.
    I just followed those steps:

    • cd C:\path\to\Qt
    • C:\Qt\Qt5.6.0\5.6\Src\qtbase\configure -static -opengl desktop -openvg -nomake examples -nomake tests
    • mingw32-make

    Although I got some errors, I could easily fix them (basically some missing path for includes).

    Now, the problem I am facing is that when I build QT sources, some components/plugins are not built. Especially one I need, which is qtsvg.
    I can see in the Windows installer prebuilt libraries (which are built for dynamic usage of QT), that I have the libQt5Svg.a library. It is located with others in "C:\Qt\Qt5.6.0\5.6\mingw49_32\lib".
    When I build mine, I have not this library. I am pretty much sure it is because it has not been included in the QT build. But I didn't see in the configure "help" a way to include "svg". There are options for OpenGL for example, but no SVG.

    I guess I am missing something but I don't know what.

    Any help will be appreciated.
    Regards,
    Giuseppe

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

      Hi and welcome to devnet,

      That's because you have only built the qtbase module. You have two choices to go further:

      1. Rebuild all of Qt i.e. call configure from Src (takes time and hard drive space)
      2. Build only the modules you need (less time and less hard drive space)

      For number 2, just cd in the module(s) folder you want to build, call qmake (the one from your static build) and mingw32-make

      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