Windows下Qt发布报Runtime Error的解决办法

简介:

  在开发机器上正常运行。发布到客户机器上时,即使拷贝了“所有”依赖的动态链接库,还是报错。

1
2
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

   最直接的方法是将Qt的plugins目录拷贝到程序目录。可以参见这两篇文章:12

   上面的问题其实根本原因还是缺动态链接库。通常用VC6带的DEPENDS.EXE不能查找的所有运行时依赖的动态链接库,所以容易出现上面的问题。而DLL Show这款工具则可以查看程序所有依赖的动态链接库,并且可以导出到文件,个人十分推荐。

   Process Explorer也很不错,但是不提供导出功能。用法:

1
2
View -> Show Lower Pane
View -> Lower Pane View -> DLLs


***

本文转自walker snapshot博客51CTO博客,原文链接http://blog.51cto.com/walkerqt/1256745如需转载请自行联系原作者


RQSLT

相关文章
|
4月前
|
Windows
qt Error 20报错
这篇文章讨论了Qt开发中遇到的Error 20报错问题,并提供了将Windows服务中的NahimicService设置为手动运行或关闭的解决方案。
168 0
qt Error 20报错
|
4月前
|
资源调度 编译器 Linux
Windows10系统安装Truffle框架,安装失败,提示:error An unexpected error occurred: “https://xxxxx
Windows10系统安装Truffle框架,安装失败,提示:error An unexpected error occurred: “https://xxxxx
125 0
|
5月前
|
编译器 Windows
plugin cannot be loaded for module “QtQuick“ && Could not load the Qt platform plugin “windows“
本文讨论了在Qt应用程序中遇到的平台插件加载问题,包括具体的错误信息、解决方案和参考链接。问题表现为无法加载“QtQuick”模块的插件,并且无法找到“windows”平台插件。解决方案是修改环境变量`Qt5_DIR`以使用正确的Qt版本和编译器环境。
213 1
|
6月前
|
PHP Windows
【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误
【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误
|
6月前
|
Linux Python Windows
【Azure 环境】Windows中安装Python azure-eventhub-checkpointstoreblob-aio模块时出错 ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory:
【Azure 环境】Windows中安装Python azure-eventhub-checkpointstoreblob-aio模块时出错 ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory:
|
6月前
|
安全 C++ Windows
Windows下C++使用gRPC(Qt和VS,含文件包和使用方法)
Windows下C++使用gRPC(Qt和VS,含文件包和使用方法)
|
7月前
|
存储 算法 C++
【Qt应用开发】复刻经典:基于Qt实现Windows风格计算器(加减乘除、删除、归零功能全解析)
在Qt中,"栈"的概念主要体现在两个层面:一是程序设计中的数据结构——栈(Stack),二是用户界面管理中的QStackedWidget控件。下面我将分别简要介绍这两个方面:
209 4
|
8月前
|
Windows
windows端口冲突解决办法
windows端口冲突解决办法
210 1
windows端口冲突解决办法
|
8月前
|
Windows
Windows下对于Qt中带 / 的路径的处理
Windows下对于Qt中带 / 的路径的处理
65 9
|
8月前
|
Windows
qt中编译错误:error: C2001: 常量中有换行符的解决办法
qt中编译错误:error: C2001: 常量中有换行符的解决办法