PDA

View Full Version : Qt5 Microsoft Visual C++ Runtime Library error



sipahi
9th February 2013, 12:29
I use Windows 7 32bit and I installed Qt 5.0.1 for Windows 32-bit (MinGW 4.7, 823 MB) from qt-project.org.
I write a gui application and there is no problem when I run app in my computer.
But another computer which does not have Qt, app is not run.
I added Qt libraries to folder which exe is in but I get Microsoft Visual C++ Runtime Library error

Files I added:

D3DCompiler_43.dll
icudt49.dll
icuin49.dll
icuuc49.dll
libEGL.dll
libgcc_s_sjlj-1.dll
libGLESv2.dll
libstdc++-6.dll
libwinpthread-1.dll
qminimal.dll
Qt5Core.dll
Qt5Guid.dll
Qt5PrintSupport.dll
Qt5Sql.dll
Qt5Wisgets.dll
qwindows.dll

And error:

http://i45.tinypic.com/dzb138.png

Sorry for my English

Lesiok
9th February 2013, 12:54
Your application and Qt are compiled by MinGW. The message indicates if your program uses some libraries compiled for Microsoft Visual C + +. This is not a good idea. Is this the second computer was installed Microsoft Visual Runtime?

sipahi
9th February 2013, 13:04
Actually I do not know.
But if I install Qt 5.0.1 for Windows 32-bit (VS 2010, 481 MB), does it prevent this error?

Lesiok
9th February 2013, 13:14
And you have Microsoft Visual C++ 2010?

sipahi
9th February 2013, 13:16
And you have Microsoft Visual C++ 2010?
Yes I have

Lesiok
9th February 2013, 13:47
Well, I think the decision to use Qt for MinGW does not make sense. Remove completely Qt for MinGW and install versions for MSVC 2010.

sipahi
10th February 2013, 12:38
I reinstalled Windows 7 and then I installed Qt with MinGW.
Qt worked for me but again exe file did not work another computer.
Then I remove Qt with mingw and I installed Qt with MSVC 2010.
But now Qt send error message ":-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options".
Then I read this http://qt-project.org/forums/viewthread/23013
I downloaded .NET Framework 4 (http://www.microsoft.com/en-us/download/details.aspx?id=17851) and Windows SDK 7.1 (http://www.microsoft.com/en-us/download/details.aspx?id=8279).
I installed .net framework 4 successfully, but Windows SDK 7.1 gives error. There is a log file but it is too long.

sipahi
10th February 2013, 21:18
at last I installed Windows SDK 7.1. I compiled my program with Qt (MSVC 2010).
Again I copied necessary dll files to folder which exe file is in.
But now when I double click my exe, nothings happen.?
Can somebody tell me which dll files I have to put in folder?
I just want to run a simple gui application.

ChrisW67
10th February 2013, 21:39
The original MingW deployment is missing the MingW runtime library; mingwm10.dll (or something like that).

Now you have switched to VS 2010 the deployed machine must have the VS C++ runtime matching your build environment installed.

Once the basic C++ runtime is present you'll probably find you need to deploy Qt platform, image and other plugins.

sipahi
10th February 2013, 21:42
I solved.
I found this bug : https://bugreports.qt-project.org/browse/QTBUG-28766
After I added libEGL.dll app works