简体   繁体   English

我的Qt5可执行文件不在Visual Studio 2010之外运行

[英]My Qt5 executable does not run outside of Visual Studio 2010

I have done a big project with Qt5 and visual Studio 2010. Everything is well inside of visual studio using the run button. 我用Qt5和visual Studio 2010完成了一个大项目。使用运行按钮,一切都在visual studio里面。

But my goal is of course to release it to other persons, without visual studio. 但我的目标当然是在没有视觉工作室的情况下将其发布给其他人。

My problem is: I can't get the .exe run outside of visual studio. 我的问题是:我无法在Visual Studio之外运行.exe。 I was asked for several dll's at first, I found them all in the Qt5 bin folder. 起初我被问过几个dll,我发现它们都在Qt5 bin文件夹中。

But know I got rid of those messages, when I wan't to open my exe, nothing happens. 但是知道我摆脱了那些消息,当我不打开我的exe时,没有任何反应。 Just nothing..... 没什么.....

I cannot even find my exe in the windows task manager. 我甚至无法在Windows任务管理器中找到我的exe。

Does someone here know an answer to that issue? 这里有人知道这个问题的答案吗?

There are dll files that are loaded during runtime and don't give you any error, warning or whatsoever when not present (also totally transparent to dependency walker). 在运行时期间加载了dll文件,并且在不存在时不会给出任何错误,警告或任何内容(对依赖性walker也完全透明)。 Such is the platforms\\qwindows.dll - note that it must be in a platforms\\ subfolder relative to the executable. 这就是platforms\\qwindows.dll - 请注意它必须位于相对于可执行文件的platforms\\子文件夹中。 You might also be missing libEGL.dll and libGLESv2.dll . 您可能还缺少libEGL.dlllibGLESv2.dll

Dependency Walker is not very useful in this case as it shows very strange dll files missing: API-MS-WIN-CORE-PRIVATEPROFILE-L1-1-1.DLL etc. Dependency Walker在这种情况下不是很有用,因为它显示了非常奇怪的dll文件丢失:API-MS-WIN-CORE-PRIVATEPROFILE-L1-1-1.DLL等。

You can use Qt5.x cmd prompt ( 5.x is the version that you are using) and run windeployqt.exe from your build directory. 您可以使用Qt5.x cmd提示符(5.x是您正在使用的版本)并从您的构建目录运行windeployqt.exe。 It will automatically find and copy all necessary dll files to your output directory. 它将自动查找并将所有必需的dll文件复制到输出目录。

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

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