Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1638
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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