问题描述
尝试通过在另一个系统上复制它直接从调试文件夹运行我的应用程序(.exe),但它显示以下错误:
程序无法启动,因为您的计算机缺少Qt5 Widgets.dll。尝试重新安装程序来解决这个问题。
我搜索给定的.dll但无法在任何地方找到它。在每个.dll下载站点都没有这样的文件存在正在显示。任何想法或建议。
'm trying to run my application(.exe) directly from debug folder by copying it on another system,but it is showing the following errors:
The program can't start because Qt5 Widgets.dll is missing from your computer. Try reinstalling the program to fix this problem.
I searches for the given .dll but couldn't find it anywhere.On every .dll download sites no such file exists is showing. Any Idea or suggestions.
推荐答案
- 在开发中下载并安装Qt 机器.Qt可以从下载[]
- 从上的< QtDir> / bin复制所需的DLL开发机器到客户端机器上的安装文件夹(存储可执行文件的文件夹)
- 如果可执行文件是构建的u唱一个Microsoft编译器,您可能还需要在客户端机器上安装该编译器的可再发行文件(对于32位Windows运行vcredist_x86.exe或对64位Windows运行vcredist_x64.exe)
- 如果使用MinGW编译器构建可执行文件,则必须在开发机器上安装MinGW(可以使用Qt在线安装程序完成),然后从< MinGWDir>中复制所需的DLL。 / bin到客户端机器上的安装文件夹。
- Download and install Qt on your development machine. Qt can be downloaded from http://qt-project.org/downloads[^]
- Copy the required DLLs from <QtDir>/bin on your development machine to the installation folder on the client machine (the folder where the executable is stored)
- If the executable is build using a Microsoft compiler you might also need to install the redistributable files for that compiler on the client machine (run vcredist_x86.exe for 32-bit Windows or vcredist_x64.exe for 64-bit Windows)
- If the executable is build using the MinGW compiler you must install MinGW on your development machine (can be done using the Qt online installers), then you copy the required DLLs from <MinGWDir>/bin to the installation folder on the client machine.
注意:分发可执行文件时,建议分发发行版本而不是调试版本。
Note: When distributing executables, it is recommended to distribute the release version and not the debug version.
这篇关于没有Qt,Qt应用程序没有运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!