[Resolved] Qt 5.0.0 Building projects, *.exe always ask for Qt5Cored.dll and other components when launching
-
Shame upon me. I've found out that I've made a little mistake (I've edited the original post). Sorry me please.
Also, the objects you've added:the first object (C:\Qt\Qt5.0.0\5.0.0\msvc2010\bin) is the same as @%QTDIR%/bin@
the second object (C:\Qt\Qt5.0.0\5.0.0\msvc2010\lib) is the same as @%QTDIR%/lib@
-
Hey,
I have exactly the same problem. However, I don't want to resolve it by using dlls. Is it possible to instead statically link everything so that all dependencies are linked in to begin with?
Thanks,
-
[quote author="Geometrian" date="1357497246"]Hey,
I have exactly the same problem. However, I don't want to resolve it by using dlls. Is it possible to instead statically link everything so that all dependencies are linked in to begin with?
Thanks,[/quote]
Hello there! Geometrian,
Indeed I happened to be in the same tracks as you could see, and yes you can build Qt statically so you can embed those libraries in the executable so when you deploy your exe you just need to give the standalone executable, So yeah you can find more information on how Static Compile Qt "here":http://www.qtcentre.org/wiki/index.php?title=Building_static_Qt_on_Windows
As the steps requires you first need to have your mkspecs configured.. like so describes "here":http://www.qtcentre.org/wiki/index.php?title=Building_static_Qt_on_Windows_with_MinGW
After that keep following instructions on the first link I sent you. Hope you find it useful.
Special Note: Another good source of Static Building Qt is "This Source":http://qt-project.org/wiki/How_to_build_a_static_Qt_version_for_Windows_with_gcc but the only thing is that it uses MinGW with GCC 4.4
-
[quote author="AxDSan" date="1357498338"]Indeed I happened to be in the same tracks as you could see, and yes you can build Qt statically so you can embed those libraries in the executable so when you deploy your exe you just need to give the standalone executable, So yeah you can find more information on how Static Compile Qt "here":http://www.qtcentre.org/wiki/index.php?title=Building_static_Qt_on_Windows[/quote]I followed the directions here, and after some modifications, I was able to get the thing built in static mode. There are some problems using it, but I think that's left for another thread.
For people of the future, my complete documentation on making a successful build for both x86 and x86-64 with or without static compilation may be found "here":http://www.geometrian.com/programming/tutorials/setup_Qt.txt.
Thanks!
-
Thanx Wilk. I have also faced this problem and solved by your solution.
-
I understand the solution of problem. (I am facing it too) but if this is the solution then it means all apps that we create from Qt can only be run on PCs with this modification. Let say, if I build an app and want to give it to my friends so that thy can also enjoy or I upload it to internet so others can use my app then they wont be able to do so due to this error. Then it will not be for public use. Isn't there any other solution of this prob?
-
I understand the solution of problem. (I am facing it too) but if this is the solution then it means all apps that we create from Qt can only be run on PCs with this modification. Let say, if I build an app and want to give it to my friends so that thy can also enjoy or I upload it to internet so others can use my app then they wont be able to do so due to this error. Then it will not be for public use. Isn't there any other solution of this prob?
-
Hi,
Thanks for your answers but all your solution concern the issue when the compiler is msvc. I am using a minGW compiler and I am facing the error
"can't find qt5Cored.dll."What should I do now?
-
Hi,
Thanks for your answers but all your solution concern the issue when the compiler is msvc. I am using a minGW compiler and I am facing the error
"can't find qt5Cored.dll."What should I do now?
-
You don't have to add qt install dir to your environment variable !
The only thing you have to do is to copy all the necessary dlls into your build dir.Look at this thread :
https://qt-project.org/forums/viewthread/52630/I've explained what to do.
-
You don't have to add qt install dir to your environment variable !
The only thing you have to do is to copy all the necessary dlls into your build dir.Look at this thread :
https://qt-project.org/forums/viewthread/52630/I've explained what to do.
-
And what if I don't want to copy all the dlls ?
Is there another way to specify the dll location only to my program ?