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 reduce the number of modules.
Qt 6.11 is out! See what's new in the release blog

How to reduce the number of modules.

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 2.6k 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.
  • B Offline
    B Offline
    BratSinot
    wrote on last edited by
    #1

    Hello there!

    I have a little program, which use Audio, Network and WebKit. If i unclude all *.dll / *.so i have about 88MiB, and this include this modules: Qt5OpenGL, Qt5Positioning, Qt5PrintSupport, Qt5Qml, Qt5Quick, Qt5Sensors, Qt5Sql.
    These modules are not used, just Qt5Core (and some others) depends on them.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
      wrote on last edited by
      #2

      welcome to the forum. Definitely you need Qt5core, QtGui, Qt5Widget. Qtnetwork. If you are not using the QML in your app remove Qml related libraries. You can do trial and error by removing one-by-one libraries and running your program.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      https://www.pthinks.com

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BratSinot
        wrote on last edited by
        #3

        Ok, then another question. QtCreator link my program with this library. How can i disable this?

        My *.pro file:
        @
        #-------------------------------------------------

        Project created by QtCreator 2014-05-30T19:47:01

        #-------------------------------------------------

        QT += core gui widgets webkitwidgets multimedia

        TARGET = ClassicMusicDownloader
        TEMPLATE = app

        SOURCES += main.cpp
        classicmusicdownloader.cpp
        webview.cpp
        httpdownloader.cpp

        HEADERS += classicmusicdownloader.h
        webview.h
        httpdownloader.h

        FORMS += classicmusicdownloader.ui
        httpdownloader.ui

        RESOURCES +=
        icons.qrc

        QMAKE_CXXFLAGS_RELEASE += -flto -Ofast -mfpmath=sse -mtune=native -march=pentium4 -msse -msse2 -pipe
        QMAKE_CXXFLAGS_DEBUG += -Og -mfpmath=sse -mtune=native -march=pentium4 -msse -msse2 -pipe
        @

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          Also this might help http://qt-project.org/doc/qt-5/deployment.html

          157

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

            Hi and welcome to devnet,

            To add to my fellows, you can also use e.g. Dependency Walker to know which libraries you're linking to.

            There's also this fine "wiki entry":http://qt-project.org/wiki/Deploy_an_Application_on_Windows for a more visual presentation of the windows deployment process

            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
            • B Offline
              B Offline
              BratSinot
              wrote on last edited by
              #6

              I already use DW, and the problem is that the program is linked with these modules, but I don't use them.

              1 Reply Last reply
              0
              • dheerendraD Offline
                dheerendraD Offline
                dheerendra
                Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
                wrote on last edited by
                #7

                If it is linked them, that means they are used internally. You may not be using them directly. With all the process and procedure, you can remove some of them and see your program works.

                Dheerendra
                @Community Service
                Certified Qt Specialist
                https://www.pthinks.com

                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