由于缺少Qt5Cored.dll,因此无法启动程序 [英] Can't start a Program because Qt5Cored.dll is missing
问题描述
我在Qt Creator中成功编译了一个简单的Qt 5项目.从Qt Creator中运行时,它可以工作.但是当我将可执行文件转移到另一个位置时,在cmd控制台上会产生以下错误消息;
I compiled a simple Qt 5 project successful in Qt Creator. When run from within Qt Creator it works. But when i transferred the executable into another location is produces the following error message on the cmd console;
The program can't start because Qt5Cored.dll is missing from your computer.
Try reinstalling the program to fix this program.
我试图在Qt5目录中找不到Qt5Cored.dll.但是奇怪的是该程序是从Qt Creator运行的.请帮忙.我在Windows 7 64位上使用Qt5和MinGW
I tried to find Qt5Cored.dll in the Qt5 directory could not find. But strange thing is the program runs from Qt Creator. Any help please. I'm on windows 7 64 bit using Qt5 with MinGW
推荐答案
文件 Qt5Cored.dll
将存在于您的系统上,否则也无法在Qt Creator中使用.我认为只是Windows搜索让您失望.打开一个cmd提示符并执行 dir c:\ Qt5Cored.dll/s
The file Qt5Cored.dll
will exist on your system, otherwise it would not work from Qt Creator either. I think it's just Windows search that lets you down. Open a cmd prompt and do a dir c:\Qt5Cored.dll /s
另一个要注意的是,这些 * d.dll
是调试DLL的,这意味着您正在分发应用程序的调试版本.您可能需要构建发行版本以供分发.(在这种情况下,您将需要 Qt5Core.dll
)
Another note is that those *d.dll
are debug DLL's, which means you are distributing a debug version of your application. You might want to build a release version for distribution instead. (In which case you'll need Qt5Core.dll
)
这篇关于由于缺少Qt5Cored.dll,因此无法启动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!