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. About the dlls that you need to run the project exe

About the dlls that you need to run the project exe

Scheduled Pinned Locked Moved General and Desktop
9 Posts 3 Posters 2.0k 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.
  • P Offline
    P Offline
    Project try
    wrote on last edited by
    #1

    Hey guys , sorry for asking lots of questions , yesterday I posted a two questions and one of them was about running the exe , and there's a guy that said there's two ways of doing it ,

    1- you copy all the dlls u need

    2- static build

    I read about static build but it was too hard to understand and also it's going to mix it up or something so the final exe would be as big " I think "

    so I have two questions:

    1- what can I do to reduce the size ? because I've made a project and it does a simple thing yet the size is around 30mb " because of the dlls " , please try to explain because English is not my first language also I'm new :)

    2- I read about upx and they said it reduces the size of dlls , so I tried to use it , but when I try to pack the dlls it says " this file does not have a program associated with it for performing this action " even though my program is in the same folder with the dlls.

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #2

      Hi,
      about the size 30 MB: your app and Qt dlls are maybe 10 MB together, the rest is for the 3 ICU51 dlls, used for "unicode and internalization":http://site.icu-project.org/#TOC-What-is-ICU-

      If you don't need full Unicode support for all the world's languages etc, it should be possible to rebuild the ICU libraries to a much smaller size.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Project try
        wrote on last edited by
        #3

        Yup , about 80% from the size is from ic..51.dll files , which are 3 as you said, yes please if you could tell me how to manage them and get rid of the unwanted languages that would be great.

        , also what about upx ?

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          Hi,

          This user has produced a "dummy" version of ICUdt51.dll, which reduces the size from 20+ MB to 600+ KB: http://qt-project.org/forums/viewthread/38489/

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • hskoglundH Offline
            hskoglundH Offline
            hskoglund
            wrote on last edited by
            #5

            Aha, that is a useful link thank you :-) I knew it should be possible, if you can live without support for sanskrit or esperanto (just kidding).

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              You're welcome :)

              [quote author="hskoglund" date="1395612346"]if you can live without support for sanskrit or esperanto (just kidding).[/quote]I'm sure most people will survive ;)

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Project try
                wrote on last edited by
                #7

                Thanks guys ,

                thank you jksh for the link , I'll check it out , but can you link a post that tells you how to do it yourself ? I searched and found that there's a qconfig but I can't find it in my computer , why ? i have Qt 5.2.1.

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  Project try
                  wrote on last edited by
                  #8

                  I used the post's custom dll but it doesn't work , it gives me error and when I tried to put on the bin folder in the qt's folder , and recompile my program it doesn't gives me error it just crashes! I'm using qt 5.2.1 debugger is msvc 2012

                  1 Reply Last reply
                  0
                  • JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #9

                    Hi,

                    It looks like the versions are incompatible.

                    You have two options:

                    Compile ICU yourself to create a minimal package, using your compiler.

                    Compile Qt yourself without ICU support.

                    I don't know how to do #1, but I use "these instructions":http://qt-project.org/wiki/Building-Qt-5-from-Git for #2

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    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