How to reduce the size of the Qt directory?



  • 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.


  • Moderators

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



  • 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.


  • Lifetime Qt Champion

    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 ?



  • 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.


  • Lifetime Qt Champion

    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.



  • 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.


  • Moderators

    @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.



  • 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.


  • Lifetime Qt Champion

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.