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 size of my deployed app
Forum Updated to NodeBB v4.3 + New Features

How to reduce the size of my deployed app

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 587 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.
  • J Offline
    J Offline
    johndummy
    wrote on last edited by
    #1

    I've developed a console app in QT on the Linux machine.
    For deployment i used cqtdeploy .

    The app is smaller is size but i noticed that the larger size is due to the libicudata.so file (~24MB).

    Is this file really necessary? How come I avoid this bulky file ?

    Axel SpoerlA C 2 Replies Last reply
    0
    • J johndummy

      I've developed a console app in QT on the Linux machine.
      For deployment i used cqtdeploy .

      The app is smaller is size but i noticed that the larger size is due to the libicudata.so file (~24MB).

      Is this file really necessary? How come I avoid this bulky file ?

      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      Is this file really necessary?

      libicudata contains information needed to map different timezones, daytime saving and the like, including historic data. That's why it's a bit larger. It's needed by QtCore on the target machine. If it's necessary to deploy a copy of it, is another question. It's not a bold assumption to expect ICU being installed on a Linux machine that is able to run any sort of calender / world clock. Moreover, ICU is free. If you want to be absolutely sure, you can even write check script that prompts the user to install libicu.

      How come I avoid this bulky file ?

      My apologies - I don't know how you eventually came to avoid the file. And if you did, why are you posting the question?

      Software Engineer
      The Qt Company, Oslo

      SGaistS 1 Reply Last reply
      0
      • Axel SpoerlA Axel Spoerl

        Is this file really necessary?

        libicudata contains information needed to map different timezones, daytime saving and the like, including historic data. That's why it's a bit larger. It's needed by QtCore on the target machine. If it's necessary to deploy a copy of it, is another question. It's not a bold assumption to expect ICU being installed on a Linux machine that is able to run any sort of calender / world clock. Moreover, ICU is free. If you want to be absolutely sure, you can even write check script that prompts the user to install libicu.

        How come I avoid this bulky file ?

        My apologies - I don't know how you eventually came to avoid the file. And if you did, why are you posting the question?

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Axel-Spoerl said in How to reduce the size of my deployed app:

        How come I avoid this bulky file ?

        My apologies - I don't know how you eventually came to avoid the file. And if you did, why are you posting the question?

        @Axel-Spoerl I might be wrong but it think the OP wanted to write: "How can I avoid this file ?" :-)

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

        Axel SpoerlA 1 Reply Last reply
        1
        • SGaistS SGaist

          @Axel-Spoerl said in How to reduce the size of my deployed app:

          How come I avoid this bulky file ?

          My apologies - I don't know how you eventually came to avoid the file. And if you did, why are you posting the question?

          @Axel-Spoerl I might be wrong but it think the OP wanted to write: "How can I avoid this file ?" :-)

          Axel SpoerlA Offline
          Axel SpoerlA Offline
          Axel Spoerl
          Moderators
          wrote on last edited by
          #4

          @SGaist Now I feel really stupid. And rightfully so!

          @johndummy Sorry!
          You can't avoid to have it on the target machine.
          But you can avoid to deploy it explicitly by expecting as a dependency. As said above, the bullet-proof avoidance scenario is a script with an install-prompt.

          Software Engineer
          The Qt Company, Oslo

          1 Reply Last reply
          1
          • J johndummy

            I've developed a console app in QT on the Linux machine.
            For deployment i used cqtdeploy .

            The app is smaller is size but i noticed that the larger size is due to the libicudata.so file (~24MB).

            Is this file really necessary? How come I avoid this bulky file ?

            C Offline
            C Offline
            ChrisW67
            wrote on last edited by
            #5

            Is this file really necessary?

            Yes, Qt6Core.so is linked to it.

            How come I avoid this bulky file ?

            You cannot entirely avoid it, but you maybe able to tailor and ship a reduced size version if your particular application does not need certain of the ICU features.
            See Customizing ICU’s Data Library

            1 Reply Last reply
            3

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved