ChaoSXDemon
ChaoSXDemon

Reputation: 910

Qt Release build unable to open DLL

While my application runs fine and nice in Debug mode of Qt 4.8.1 using QtCreator 2.4.1, it fails to start up in Release mode. Double clicking the generated .exe returns:

"The application was unable to start correctly (0XC000007B). Click okay to close the application."

Running in QtCreator simply stalls (the application window does not appear) and it will eventually returns with error code: -1073741819

Running Dependency Walker will show that:

enter image description here

I have tried to search the location of msvcr90.dll and it appears in multiple directories under C:/Windows/winsxd/...

What should I do to fix this problem at this point? My machine is 64x Windows 7.

Upvotes: 1

Views: 1262

Answers (1)

Daniel Castro
Daniel Castro

Reputation: 1290

You should deploy the Qt (and some other) libraries in order to run your application by that way.

The dll files are in the bin folder of your library installation path. For example, in my machine it is:

C:\QtSDK\Desktop\Qt\4.8.0\msvc2010\bin

Because I'm using the MSVC2010 version (instead of the MinGW version) of Qt. Dependency Walker will tell you what files do you have to copy.

Qt Creator should run your application fine. What version of Qt are you using? (4.8, MinGW or VC2010)

Upvotes: 2

Related Questions