Results 1 to 3 of 3

Thread: Application won't run - missing DLLs?

  1. #1
    Join Date
    Aug 2009
    Location
    United States
    Posts
    45
    Thanks
    20
    Qt products
    Qt4
    Platforms
    Windows

    Default Application won't run - missing DLLs?

    I can run my application from Qt Creator, but a problem arises when I try to run the application (release version) by browsing to the executable and opening it. I get this error:

    This application has failed to start because mingwm120.dll was not found. Re-installing the application may fix this problem.
    I searched my system and found that DLL, stuck it in the same folder as the executable, and then tried running again. Another error. Different, but it still says a DLL "was not found." I repeated this process a few times, but I'm planning on sometime distributing my program and it doesn't seem convenient to have who knows how many DLLs that go along with it.

    Any ideas why this is happening? Is there a way to build the DLLs into the executable or something?

    Appreciate any advice you might have, thanks!

  2. #2
    Join Date
    Nov 2006
    Location
    Saudi Arabia
    Posts
    18
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Application won't run - missing DLLs?

    Add the bin directory for Mingw and Qt to the PATH Environment Variable and it should work.

    Is there a way to build the DLLs into the executable or something?
    re-compile Qt in static version, so the dll is merged with the executable.

    read this articles on the wiki:
    http://wiki.qtcentre.org/index.php?t...c_applications
    http://wiki.qtcentre.org/index.php?t..._Qt_on_Windows

    and search the forum to find more info.

  3. The following user says thank you to SudaNix for this useful post:

    winnervt (9th September 2010)

  4. #3
    Join Date
    Mar 2009
    Location
    California, USA
    Posts
    31
    Thanks
    2
    Thanked 7 Times in 6 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Talking Re: Application won't run - missing DLLs?

    I highly recommend the BitRock installer. Checkout:

    http://bitrock.com/

    It has been mentioned on this forum several times, and everyone seemed happy with it. They provide open source (free) versions of their installer or all of the Qt supported platforms.

    Why use an installer? Well, first they give your application an even more professional look and fee. But more importantly, they allow you the opportunity to create a really perfect install for your application. You may not get your install to work perfectly the first time but you can play with the install until you have a perfect install. And all of this for free.

    The other suggestion give here plus the BitRock installer will give you that perfect professional install. Your users will love it.

    Happy coding...

    Gary

  5. The following user says thank you to Chisum for this useful post:

    SudaNix (21st September 2009)

Similar Threads

  1. Static application missing pcap functionality
    By remy06 in forum Installation and Deployment
    Replies: 3
    Last Post: 21st May 2012, 18:33
  2. Could not start Application ....missing qtcored4.dll......
    By donglebob in forum Qt Programming
    Replies: 10
    Last Post: 5th November 2011, 14:51
  3. Application icon and big dlls
    By kei in forum Qt Programming
    Replies: 2
    Last Post: 15th June 2009, 18:38
  4. Replies: 7
    Last Post: 29th January 2009, 19:47
  5. Replies: 2
    Last Post: 22nd February 2007, 08:08

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.