Results 1 to 3 of 3

Thread: Qt in Windows: Dinamic building, DLLs and size

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Qt in Windows: Dinamic building, DLLs and size

    Hello!

    I'm developing some softwares [in Windows] that by now needs to be started through the Qt IDE in order to work. When I want them, though, to be executed apart from Qt (asa normal software, i.e. as if I had bought them and installed on my PC), I noticed that allways I must take along with the .exe file (thoose .dll that are needed for the software to be executed). That wouldn't be that problem if it wasn't the case that:

    - The 5 DLLs required for the .exe to work take the size together of 179 Mb.
    - It's quite not good to have the DLL directly in the same folder of the .exe.

    The first point is truly bad because imagine that I want to create lots of softwares and each of them, of course, will have each one its own folder in the "Programs and Files". Well, that would be terrible because that would take lot of space in my driver and all because of repeated dlls! One of my software here "at my side" has a .exe of 2 Mb and + 179 Mb of dlls. That means that if I had 6 softwares like this, I would have already used 1Gb of space in my driver for softwares that actually take 2 Mb of space!

    The second problem is like more "aestetic": I think it would be better if at least I could put the DLLs inside a specific folder apart from the .exe file.

    So my question is: isn't there a better way for dealing with this (and still using the dynamic buildig)? Could I put the DLLs in a different folder that in the place wwhere the .exe is? If I had the case of using various Qt-based softwares which require the same DLL but needed to be put in different folders as it is normally done, couldn't I create a "mother main folder" in which all the softwares, in theyr specific folders, would be placed and also another folder specific for the DLLs which would than be shared by all the softwares?


    Thanks!


    Momergil

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt in Windows: Dinamic building, DLLs and size

    179 MB - this is a size of debug DLL's.
    Of course You can put DLL's in another directory, but this directory must be in PATH or DLL's must be registered in system. This applies to any DLL, not just Qt.

  3. #3
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Qt in Windows: Dinamic building, DLLs and size

    The 5 DLLs required for the .exe to work take the size together of 179 Mb.
    Why do you want to deploy debug version ? Do you expect the users to work on your app with debugger ?

Similar Threads

  1. Building 64bit Shared Qt Dlls on 64bit Win7 for Visual Studio
    By HarrySatt in forum Installation and Deployment
    Replies: 1
    Last Post: 29th November 2011, 04:39
  2. Replot dinamic curve.
    By Zikoel in forum Qwt
    Replies: 2
    Last Post: 24th October 2011, 09:50
  3. Replies: 8
    Last Post: 23rd March 2011, 10:13
  4. Smaller dlls size.
    By menel in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 5th July 2010, 10:37
  5. How to deploy Qt-dlls for windows
    By niko in forum Installation and Deployment
    Replies: 5
    Last Post: 18th March 2007, 18:11

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.