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. How to reduce the size of the Qt directory?
Forum Updated to NodeBB v4.3 + New Features

How to reduce the size of the Qt directory?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
10 Posts 3 Posters 2.1k 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.
  • A Offline
    A Offline
    Argolance
    wrote on last edited by
    #1

    Bonjour,
    (I don't know if it is the right place to ask the question and even if this question makes sens, but may be I will find an answer here!)
    Concerning common Qt programs users (and not developers), inside a Qt directory (for me /opt/qt), there are many subdirectories/files that are probably usefulness/unused and can be deleted without causing harm to the Qt programs themselves and making them fail.
    My question: how to reduce the size of the Qt directory, presuming I would like to keep the Qtconfig GUI and the Pixeltool...

    Thank you for your attention.
    Cordialement.

    jsulmJ 1 Reply Last reply
    0
    • A Argolance

      Bonjour,
      (I don't know if it is the right place to ask the question and even if this question makes sens, but may be I will find an answer here!)
      Concerning common Qt programs users (and not developers), inside a Qt directory (for me /opt/qt), there are many subdirectories/files that are probably usefulness/unused and can be deleted without causing harm to the Qt programs themselves and making them fail.
      My question: how to reduce the size of the Qt directory, presuming I would like to keep the Qtconfig GUI and the Pixeltool...

      Thank you for your attention.
      Cordialement.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Argolance Is there a reason you want to do this?
      Also, how did you install Qt?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Argolance
        wrote on last edited by Argolance
        #3

        Thank you a lot for your answer.
        I successfully compiled Qt directly inside my current LINUX distribution then integrated it to the "iso" file of this distribution ToOpPy LINUX. Applications which need Qt environment run as well as possible but I just want to keep Qtconfig and Pixeltool which can be useful for simple users (like me!). As this distribution runs entirely in RAM, lighter is the main loaded sfs file, better it is. This is the reason why I would like to make the /opt/Qt directory lose as much weight as possible.
        Cordialement.

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

          Hi and welcome to devnet,

          It depends on what you want to do with Qt. From what you wrote it seems that you only want to use two tools, is that correct ? Or are you planning to do some development ?

          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
          • A Offline
            A Offline
            Argolance
            wrote on last edited by Argolance
            #5

            Thanks. Yes, I only want to use two tools: Qtconfig which lets user configure Appearance, Fonts, Phonon GStreamer multimedia backend. etc. and Pixeltool. If I or any ToOpPy LINUX user would ever like to do some development, it will be possible to install a full package of Qt, available on the ToOpPy repository. So, just now, I only want what's needed for common users to make Qt applications work properly, not more.
            Cordialement.

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

              Then in that case you can create a bundle with these two tools. Follow the Linux deployment guide. You can also take a look a the linuxdeployqt project to make it easier.

              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
              • A Offline
                A Offline
                Argolance
                wrote on last edited by Argolance
                #7

                Bonjour,
                Please, what do you exactly mean when you write: "Then in that case you can create a bundle with these two tools"?
                If I well understood, it is not possible to simply delete unused files directly inside the Qt directory? Only do a special compilation?
                Cordialement.

                jsulmJ 1 Reply Last reply
                0
                • A Argolance

                  Bonjour,
                  Please, what do you exactly mean when you write: "Then in that case you can create a bundle with these two tools"?
                  If I well understood, it is not possible to simply delete unused files directly inside the Qt directory? Only do a special compilation?
                  Cordialement.

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Argolance A bundle can be just an tar archive (or RPM/DEB package or whatever). What @SGaist means is: deploy your apps first (search for "Qt Linux deployment guide"), then you will have a directory containing your apps and all Qt libs used by them. That would be your bundle.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • A Offline
                    A Offline
                    Argolance
                    wrote on last edited by Argolance
                    #9

                    Bonjour,
                    I was expecting something more simple and explicit. Nevertheless, I thank you a lot guys for the time you were kind enough to take for giving me an answer.
                    Cordialement.

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

                      Life of a developer is rarely easy ;)

                      Like I wrote before, linuxdeployqt might help achieve your goal more easily.

                      Note, that you would have to do something similar if you wanted to provide your own application as standalone rather than through a distribution package manager.

                      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