Dependency Walker

本文推荐使用Dependency Walker来查找Windows平台上部署Qt应用程序所需的dll文件。通过它,可以清晰地看到应用程序依赖的层级结构,并发现缺少的dll文件,对于部署工作非常有用。需要注意的是,它无法检测到缺失的Qt插件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://www.johanpaul.com/blog/2011/07/deploying-qt-and-qt-quick-applications-on-windows/

http://www.dependencywalker.com/


I first recommend you to install a great tool for figuring out the required .dll files that you need to include in your package: Windows Dependency Walker. It's a neat free utility that will create a hierarchical tree of the .dll dependencies that an application uses. When you run your application, in the machine that has Qt installed on it, through Dependency Walker you can easily see which Qt .dll files it uses and you need to package with your application.If  you are curious, you'll find that Dependency Walker will show you a lot more information about what  methods the application used and from which .dll file, which methods are available in the .dll but were not used and a lot more detailed information about each .dll that the application loaded.

When you run your application through Dependency Walker on the machine that does not have Qt installed on it and when it did not run as expected, you can then see which .dll files your app failed to find. This is really a life saver when it comes to application deployment for Windows.

A word on warning, though. Dependency Walker is really good at finding libraries that your application is dynamically linked against. But it will not spot issues when it comes to Qt plugins. If a plugin is not found, there will not be any trace of it in Dependency Walker since Qt will just inform the app that this plugin is not available. So it is important to understand which plugins Qt will need and Dependency Walker cannot help you here.

Windows dependency walker
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值