[英]Qt + VS2010: The program can't start because <xyz>.dll is missing from your computer
I have created a visual studio 2010 solution from the following .pro file: 我从以下.pro文件创建了visual studio 2010解决方案:
TEMPLATE = app
CONFIG += qt yyy zzz debug_and_release
TARGET = XYZdepth
INCLUDEPATH += .
#HEADERS =
SOURCES = main.cpp xyzMainWidget.cpp
yyy {
LIBS += $(YYY_DIR)/release/yyy.lib
INCLUDEPATH += $(YYY_DIR)
}
zzz {
LIBS += $(ZZZ_DIR)/lib/x86/ZZZ.lib
INCLUDEPATH += $(ZZZ_DIR)/inc
}
Of course, I've replaced some key words in there. 当然,我已经替换了那里的一些关键词。 It references yyy.lib, which has a corresponding DLL: yyy.dll.
它引用了yyy.lib,它有一个相应的DLL:yyy.dll。
I can compile XYZdepth in release mode, but when I run it it says: 我可以在发布模式下编译XYZdepth,但是当我运行它时它说:
The program can't start because yyy.dll is missing from your computer. Try reinstalling the program to fix this problem.
Can anyone help with this? 有人能帮忙吗? Many thanks in advance!
提前谢谢了!
您可能需要将有问题的DLL复制到可执行文件所在的文件夹中,或者确保DLL位于系统PATH中的文件夹中。
For future visitors, I fixed mine without copying over .dll
. 对于未来的访问者,我修复了我,而没有复制
.dll
。 In the main project, go to properties -> build events -> post-build events -> command line. 在主项目中,转到属性 - >构建事件 - >构建后事件 - >命令行。 Put everything (xcopy..) on different lines, with first line having
start xco...
at the front. 将所有内容(xcopy ..)放在不同的行上,第一行在前面
start xco...
:) :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.