简体   繁体   English

Qt 视觉工作室大楼

[英]Qt visual studio building

I have ms visual studio solution with qt project.我有带有 qt 项目的 ms Visual Studio 解决方案。 When I working from visual studio all works fine.当我在视觉工作室工作时,一切正常。 When I try to run *.exe file from building folder I see message that say Qt5Guid.dll(and other dll's) is not found.当我尝试从构建文件夹运行 *.exe 文件时,我看到消息说找不到 Qt5Guid.dll(和其他 dll)。 What settings need to be changed that QT dll's moves to general building folder? QT dll 移动到通用建筑文件夹需要更改哪些设置?

You can find in Qt installation dir application windeployqt .您可以在 Qt 安装目录应用程序windeployqt中找到。

Run it like this:像这样运行它:

windeployqt --debug <path-to-app-binary>

It will deploy all needed Qt files to your application's folder.它将所有需要的 Qt 文件部署到应用程序的文件夹中。 You can read more about deploying here: https://doc.qt.io/qt-5/windows-deployment.html您可以在此处阅读有关部署的更多信息: https://doc.qt.io/qt-5/windows-deployment.html

Also you can try to add directory of Qt to PATH variable您也可以尝试将 Qt 的目录添加到PATH变量

(Thanks king_nak and drescherjm) (感谢 king_nak 和 drescherjm)

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

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