简体   繁体   English

Qt + VS2010:程序无法启动,因为 <xyz> 您的计算机缺少.dll

[英]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.

相关问题 由于您的计算机上缺少freeglut.dll,因此无法启动该程序 - This program can't start because freeglut.dll is missing from your computer 该程序无法启动,因为您的计算机中缺少MSVCP90D.dll - The program can't start because MSVCP90D.dll is missing from your computer 程序无法启动,因为您的计算机缺少mfc120ud.dll - The program can't start because mfc120ud.dll is missing from your computer Visual Studio c ++ LoadLibary错误:无法启动程序,因为计算机中缺少dll - Visual Studio c++ LoadLibary error: The program can't start because dll is missing from your computer 该程序无法启动,因为您的计算机缺少libgcc_s_dw2-1.dll。 简单的控制台 - The program can't start because libgcc_s_dw2-1.dll is missing from your computer. Simple console “程序无法启动,因为您的计算机中缺少 opencv_world300.dll”错误 C++ - "The program can't start because opencv_world300.dll is missing from your computer" error in C++ 无法启动程序,因为缺少 Qt5Cored.dll - Can't start a Program because Qt5Cored.dll is missing VS:程序无法启动,因为缺少libfftw3-3.dll - VS: Program can't start because missing libfftw3-3.dll QT 程序无法启动,因为缺少 libgcc_s_dw2-1.dll - QT The program can't start because libgcc_s_dw2-1.dll is missing VS2012:程序无法启动,因为缺少“ libvorbisfile.dll” - VS2012: Program can't start because “libvorbisfile.dll” is missing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM