Qt + VS2010:程序无法启动,因为< xyz> .dll从您的计算机中丢失 [英] Qt + VS2010: The program can't start because <xyz>.dll is missing from your computer

查看:189
本文介绍了Qt + VS2010:程序无法启动,因为< xyz> .dll从您的计算机中丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从以下.pro文件创建了一个visual studio 2010解决方案:

I have created a visual studio 2010 solution from the following .pro file:

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

}

它替代了那里的一些关键词。它引用yyy.lib,它有一个相应的DLL:yyy.dll。

Of course, I've replaced some key words in there. It references yyy.lib, which has a corresponding DLL: yyy.dll.

我可以编译XYZdepth在发布模式,但是当我运行它说: >

I can compile XYZdepth in release mode, but when I run it it says:

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中的一个文件夹中。

You likely need to copy the DLLs in question to the folder your executable is in, or ensure that the DLLs are located in a folder in the system's PATH.

这篇关于Qt + VS2010:程序无法启动,因为< xyz> .dll从您的计算机中丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆