×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    May 2007
    Posts
    320

    How to reduce CAB size for Windows QT application

    Hello friends,
    I made a .cab file for my windows QT application but due to dependency files size has increased to 15MB. My application size is just 400KB. On Windows MarketPlace any application should not have more than 10MB size.
    Does anybody know how to make .cab file with QT dependency below 10MB.
    Please let me know if anybody know this.

    Thanks in advance.

    Regards,
    ash_21.
    Life is Short..... Live it with Positive Attitude...

  2. #2
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    430

    Re: How to reduce CAB size for Windows QT application

    If you do not want to use plugins in your application, use static linking to the Qt lib. Then give UPX a try.

  3. #3
    Regular Contributor
    Join Date
    May 2007
    Posts
    320

    Re: How to reduce CAB size for Windows QT application

    Quote Originally Posted by axeljaeger View Post
    If you do not want to use plugins in your application, use static linking to the Qt lib. Then give UPX a try.
    Thanks axeljaeger for your help. How to use static linking of Qt lib in an application?
    What is UPX?

    I have never done like this before if you could tell me then I will be very thankful of you..
    Waiting for your response.


    Regards,
    ash_21.
    Life is Short..... Live it with Positive Attitude...

  4. #4
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    430

    Re: How to reduce CAB size for Windows QT application

    Build Qt yourself and pass -static to the commandline of configure. Then use that Qt to link against.

    UPX is the "Ultimate Packer for eXecutables". I guess it is on sourceforge.

  5. #5
    Regular Contributor
    Join Date
    May 2007
    Posts
    320

    Re: How to reduce CAB size for Windows QT application

    Quote Originally Posted by axeljaeger View Post
    Build Qt yourself and pass -static to the commandline of configure. Then use that Qt to link against.

    UPX is the "Ultimate Packer for eXecutables". I guess it is on sourceforge.

    Hi axeljaeger,
    Thanks for your valuable help.
    I have successfully build QT with static option from the commandline at configure.
    I also successfully run the application on WinCE emulator but when I searched app.exe it not found in debug folder, it shows some objects files of application.
    I have also compile the application in Release mode & same files created in Release folder also..
    Can you please tell me how to create app.CAB file with the help of these files (created in release folder)? Do we need QtCore.dll & QtGui.dll to include in CAB file creation?
    Does we have to use only UPX to merge these files?

    Waiting for your reply.

    Regards,
    ash_21.
    Life is Short..... Live it with Positive Attitude...

  6. #6
    Regular Contributor
    Join Date
    May 2007
    Posts
    320

    Re: How to reduce CAB size for Windows QT application

    I have successfully build QT with static option from the commandline at configure.
    I also successfully debug & run the application on WinCE emulator.
    I have also compile the application in Release mode & I found app.exe file in Release folder of size 5.5MB(Static Mode).
    I have successfully made the .CAB file of 5.5MB without any dependencies & installed on the device but the application is not installed.

    Does we need to add prerequisite .dll for static build also? If no then where am I going wrong?
    What is the significance of UPX? What is the compression ratio?

    Waiting for your reply.

    Regards,
    ash_21.
    Life is Short..... Live it with Positive Attitude...

  7. #7
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    430

    Re: How to reduce CAB size for Windows QT application

    After linking agains the static Qt, you should no longer need the Qt dlls. Then run UPX on the executable. I have not clue about cab-files.

  8. #8
    Regular Contributor
    Join Date
    May 2007
    Posts
    320

    Re: How to reduce CAB size for Windows QT application

    Quote Originally Posted by axeljaeger View Post
    After linking agains the static Qt, you should no longer need the Qt dlls. Then run UPX on the executable. I have not clue about cab-files.
    ok axeljaeger.

    Does UPX get uncompressed when we install that application? I have never used UPX for compression of executable files.
    Kindly tell me procedure to install UPX (compressed exe) file on windows Mobile.

    Waiting for your reply..
    Regards,
    ash_21.
    Life is Short..... Live it with Positive Attitude...

  9. #9
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    430

    Re: How to reduce CAB size for Windows QT application

    I dont know whether it works on windows mobile at all. But on all the other systems, they get uncompressed during runtime.

  10. #10
    Regular Contributor
    Join Date
    May 2007
    Posts
    320

    Re: How to reduce CAB size for Windows QT application

    Quote Originally Posted by axeljaeger View Post
    I dont know whether it works on windows mobile at all. But on all the other systems, they get uncompressed during runtime.
    Thanks axeljaeger for your valuable help.
    I have successfully made a .CAB file & installed it on device & it's working perfectly fine with reduce file size.

    Regards,
    ash_21.
    Life is Short..... Live it with Positive Attitude...

Similar Threads

  1. Is it Possible display application size
    By pavan in forum Symbian
    Replies: 3
    Last Post: 2008-11-10, 21:02
  2. 7210 Application Size
    By cs8st in forum Mobile Java General
    Replies: 2
    Last Post: 2003-03-10, 11:05
  3. filtering application as a recipient?
    By aidj in forum General Messaging
    Replies: 1
    Last Post: 2002-11-12, 06:26
  4. Optimizing J2ME application size
    By jnassif in forum Mobile Java General
    Replies: 2
    Last Post: 2002-05-17, 09:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×