简体   繁体   English

我的 .exe 在 Qt Creator 中运行后立即崩溃

[英]My .exe crashes as soon as I run it in Qt Creator

In Qt creator, I have an .exe that crashes as soon as I run the program.在 Qt Creator 中,我有一个 .exe,它在我运行程序时立即崩溃。 Debugging mode starts and stops immediately, displaying "Debugger started" and "Debugger stopped".调试模式立即启动和停止,显示“调试器已启动”和“调试器已停止”。

It is because of missing the right dll s in the exe folder.这是因为在exe文件夹中缺少正确的dll

Add the respective debug or release dlls on the exe folder (ie debug/release folder where the .exe is created) and run the debug/run in Qt Creator.在 exe 文件夹(即创建 .exe 的调试/发布文件夹)中添加相应的调试或发布 dll,并在 Qt Creator 中运行调试/运行。

To check what are the dll s missing, double click the .exe which is created by QtCreator.要检查缺少哪些dll ,请双击由 QtCreator 创建的 .exe。

Please verify whether it is a debug or release dll before adding it in the .exe path.请在将其添加到 .exe 路径之前验证它是调试还是发布 dll。

You need to make sure that all depending dlls of your executable are inside your PATH-variable or in the same folder of your executable.您需要确保可执行文件的所有依赖 dll 都在 PATH 变量中或在可执行文件的同一文件夹中。 You can easily check which dlls are missing by opening your executable with depends ( you can get the tool here: dependency walker .您可以通过使用depends打开可执行文件来轻松检查缺少哪些dll(您可以在此处获取该工具: dependency walker

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM