Results 1 to 8 of 8

Thread: mingwm10.dll

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation mingwm10.dll

    i have just installed Qt 4.4.1 on windows and I started creating some program in debug mode. but When i try to run the program after it was compiled it says "The application has failed to start because mingwm10.dll was not found. Re-installing the application may fix this problem"
    can someone help me plz

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: mingwm10.dll

    Copy that DLL to the directory where your executable is. You should be able to find it in MinGW's bin directory.

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: mingwm10.dll

    Add "C:\MinGW\bin" (or corresponding) to the PATH environment variable.
    J-P Nurmi

  4. #4
    Join Date
    Mar 2010
    Posts
    2
    Qt products
    Qt/Embedded

    Default Re: mingwm10.dll

    Is there a better way ?
    I wouldn't like to take extra manual interventions as long as I don't need to do it in case a Visual Studio Project.

  5. #5
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: mingwm10.dll

    For your developing machine you can add this to the "Path" in "Environment Variables":
    Qt Code:
    1. ;C:\Qt\2010.04\mingw\bin;C:\Qt\2010.04\qt\bin
    To copy to clipboard, switch view to plain text mode 
    //notice the ; between the different Path's
    //check the path to where did you installed Qt and Qt version

    And for your clients use an installer to copy the application.exe and all the needed .dll files
    You need at least two from MingW: libgcc_s_dw2-1.dll and mingwm10.dll
    you find these in the Qt_Install_dir\mingw\bin

    and what you use from Qt it depends...
    find in: Qt_Install_dir\qt\bin
    Do not copy the ones from Qt_Install_dir\bin

    Extra check if you copy the dll's, because if you build the Debug version of of your QtCore application it will use QtCored4.dll not QtCore4.dll (that will be used by the release version of your app) and so on... so careful what dll's you ship to client

  6. #6
    Join Date
    Apr 2010
    Posts
    34
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: mingwm10.dll

    I had the same problem, I use NetBeans with Qt.
    There's no problem with the PATH variables, otherwise you couldn't compile.
    I solved the problem by switching a Console Type property in Run properties tab to Output Window. I've no idea what's the problem, but now it works.

  7. #7
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: mingwm10.dll

    @Vit Stepanek, i think you had a different problem

    I don't know about NetBeans (i never used it)
    But with Qt Creator you can compile without the dll's in PATH, and you can even run the application from the IDE (Qt Creator)

    Only when you start your application by double-click the .exe from Windows Explorer you need the dll's in Path or in the same folder with the .exe file.

  8. #8
    Join Date
    Apr 2010
    Posts
    34
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: mingwm10.dll

    Yes, you're right. Sorry for a confusion.

Similar Threads

  1. Build static on windows without deps on mingwm10.dll
    By ucomesdag in forum Qt Programming
    Replies: 2
    Last Post: 9th July 2007, 05:46

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.