Link to home
Start Free TrialLog in
Avatar of NewtonianB
NewtonianB

asked on

can't run compiled QT apps on windows


I am using QT Creator 1.3.0 Based on QT 4.6 on Windows XP
My application compiles but when I try to run it from the command prompt I get
"The application has failed to start because mingwm10.dll wasn ot found. Re-installing the application may fix this problem"

Things I've tried:
1. reinstalling MinGW and adding C:\MinGW\Bin to my environment variables. RESULT: same thing
2. looked for mingwm10.dll on the internet and tried to place it in C:\WINNT\System32 RESULT: this solves this error but then another comes up saying theres a missing gcc_lib or something which made me beleive this is not the right way to fix this.
3. Tried to follow these instructions but couldn't because I could not find the file mkspecs they are talking about. http://blog.lugru.com/2009/03/qt-static-mingwm10dll-and-deployment-under-windows-environment/

How do I fix this?
ASKER CERTIFIED SOLUTION
Avatar of CSecurity
CSecurity
Flag of Iran, Islamic Republic of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can also run dependecy walker on mingwm10.dll to find out what that DLL needs and put them also on %PATH% or as I said simply in Windows or system32 folder near mingwm10.dll
Avatar of NewtonianB
NewtonianB

ASKER

Thanks CSecurity, cup.

So i used dependency app and its telling me its now missing
LIBGCC_S_DW2-1.DLL
QTCORED4.DLL
QTGUID4.DLL

Where do I find these?
Should be in QT or GCC installation, do a search on C:\ driver to find them and then put them in C:\Windows\System32 or Windows folder itself
I looked for the files on my C Drive and found them to be all in C:\Qt\2009.05\qt\bin
I had added this to my environment variables but it still wouldnt worl because C:\WINNT\System32 was specified before C:\Qt\2009.05\qt\bin in the Environment path.
Fixed! Thanks alot
You are welcome, glad it's fixed