[SOLVED] qt3d executable error "Qt5Cored.dll is missing from your computer"
I am building application cube4 of qt3d tutorials. It runs perfectly and I see the executable in the Debug folder. But, when i try to run the executable, it says: The program can't start because Qt5Cored.dll is missing from your computer.Try reinstalling the program to fix this program.
I am using MinGW compiler. There is no qt5Cored.dll in my computer. However, I can find qt5Core.dll? What should I do?
You have to copy all necessary qt dll into your build directory.
With Debug builds all Dlls are suffixed with a "d" (for Debug).
For a release compile you have to copy the release dll (in your case Qt5Core.dll).
All Qt Dll are located in your Qt install directory.
@[Path of yout Qt installation]/5.3/[platform]/bin@
The best way for me to automate this process is to call a simple batch script that's called by build process.
For example like that :
@QMAKE_POST_LINK += $$PWD/build_win.cmd $$[QT_INSTALL_BINS]@
With $$[QT_INSTALL_BINS] variable in your pro file you get the path where the dlls are located. (You can add message($$[QT_INSTALL_BINS]) for displaying that path).
Pradeep P N
You cannot directly run the executable either in the Debug folder or the Release folder.
It requires few of the .dll to be added such as Qt5Gui.dll, icudt51.dll, libstdc++-6.dll etc.. with it to run it.
It will not only ask for Qt5Core.dll it also takes other few of the .dll to run it.
You can find these .dll in your Qt installed directory Ex: C:\Qt\Qt5.2.1\5.2.1\mingw48_32\bin as in Windows. In Bin folder you can get all the .dll files which the executable file requires.
Just copy and paste these .dll in folder where the executable is. Then this will work.
See the "Deploy and Application on Windows":http://qt-project.org/wiki/Deploy_an_Application_on_Windows article
Also, if you want to distribute your application, make a release build instead of a debug build. Release builds have higher performance and consume less resources.
Thak you. my issue is resolved. I have another question.
How can I change the icon on executable application being displayed?
[quote author="sunil.nair" date="1422609361"]Thak you. my issue is resolved.[/quote]You're welcome.
Please edit your original post and add "[SOLVED"] to the title.
[quote author="sunil.nair" date="1422609361"]Thak you. my issue is resolved. I have another question.
How can I change the icon on executable application being displayed? [/quote]See the "documentation":http://doc.qt.io/qt-5/appicon.html
In the future, please start a new thread for new questions.