• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1642
  • Last Modified:

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?
0
NewtonianB
Asked:
NewtonianB
  • 4
  • 2
2 Solutions
 
CSecurityCommented:
Put gcc_lib, gcc bin folder includes into system32 too, what was exactly gcc_lib message?
0
 
cupCommented:
Get a copy of depends from http://dependencywalker.com/

Use it to find out what your program needs and whether it has found them.

Normally all the dlls should be either in the directory where the executable resides or somewhere on the %PATH%
0
 
CSecurityCommented:
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
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
NewtonianBAuthor Commented:
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?
0
 
CSecurityCommented:
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
0
 
NewtonianBAuthor Commented:
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
0
 
CSecurityCommented:
You are welcome, glad it's fixed
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now