Results 1 to 7 of 7

Thread: QtGuid4.dll

  1. #1
    Join Date
    Feb 2009
    Posts
    143
    Thanks
    8

    Default QtGuid4.dll

    I have built a app that needs to run in non Qt installed systems.

    When ever i try to run this app, it asks for 4 dlls and 1 of this is QtGuid4.dll.

    This QtGuid4.dll is about 65mb. My apps installer goes from 0.8mb to 10mb only because i need to add this file in my installer.

    I want to app to be less than 1 or 2 mb.

    How can i solve this problem?

    thanks.

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QtGuid4.dll

    build your app in release mode, so it will use nodebug dlls
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  3. #3
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    131
    Thanks
    11
    Thanked 16 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QtGuid4.dll

    First you should compile in release mode (than the program wants QtGui4.dll, etc...) The release-dlls should be much smaller, since they dont include debugging information. I cant lookup now how big the are, but maybe that is enough for you.

    The next step could be to compile static, but I don't know how to archieve this under Windows. We always distribute the Qt-dlls with our program.

    Do you use Visual C++? Then the target system needs to install this or you have to distribute the included dlls (If somebody knows how to get arround this, please tell me)

  4. #4
    Join Date
    Feb 2009
    Posts
    143
    Thanks
    8

    Default Re: QtGuid4.dll

    i am trying to build the app in release mode but i am not succesful so far.

    i am using QtCreator RC1 to build my app. it build the app only in debug mode for me.

    I have added

    CONFIG += release

    still it builds the debug one.

  5. #5
    Join Date
    Mar 2009
    Posts
    98
    Thanks
    3
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QtGuid4.dll

    Menu->Build->Set build configuration->Release

    But in my machines the variable in the project takes precedence.

  6. #6
    Join Date
    Feb 2009
    Posts
    143
    Thanks
    8

    Default Re: QtGuid4.dll

    thanks it worked.

    I was building it in debug mode.

  7. #7
    Join Date
    May 2008
    Posts
    61
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QtGuid4.dll

    you can compile the static qt libraries with

    Qt Code:
    1. configure -static -<other flags>
    To copy to clipboard, switch view to plain text mode 

    after compiling static libraries, you should add the following to your pro file. the resulting file will be a stand-alone executable and you will not need any dll files while running the application. and of course the executable's size will be slightly larger, but not as large as the library size.

    Qt Code:
    1. CONFIG += static
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Ask for help: exception at 0x6549960a (QtGuid4.dll)
    By richardander in forum Qt Programming
    Replies: 3
    Last Post: 11th March 2009, 12:47
  2. exception at 0x65100c40 (QtGuid4.dll)
    By sabeesh in forum Qt Programming
    Replies: 11
    Last Post: 21st December 2007, 17:10

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.