无法加载库qt5widgets.dll

发布于 2025-01-20 18:56:00 字数 121 浏览 3 评论 0原文

当运行fbltool_02224.exe

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夏见 2025-01-27 18:56:00

我猜你双击了在发布模式下构建后提供的 exe 文件:
对于在 Windows 中使用 QT 部署和创建 Exe 输出,您应该遵循以下方式:

  1. 将编译器路径放入系统路径中。现在你使用 mingw81_64 你应该设置它。类似Qt/tools/mingw81_64/bin

  2. 复制在一个文件夹中以发布模式构建后提供的exe文件并运行mingw81_64 cmd(它有单独的cmd)
    并 cd 到该文件夹​​路径

  3. windeployqt app.exe

此命令将获取您的应用程序所需的所有 dll,并且您的 exe 将运行。

如果您使用 qml

windeployqt --qmldir (the path of its directory ) app.exe

并且还可以查看这些 YouTube 视频以获取更多信息:

https://www.youtube.com/watch?v=LdSTgR0xJco

https://www.youtube.com/watch?v=hCXAgB6y8eA

I guess you double-clicked in exe file that provides after building in release mode :
For Deploy and create Exe output with QT in windows you should follow this way:

  1. put your compiler path in your system path. now you use mingw81_64 you should set it. something like Qt/tools/mingw81_64/bin

  2. copy exe file that provides after building in release mode in one folder and run mingw81_64 cmd (it has separate cmd)
    and cd to that folder path

  3. windeployqt app.exe

This command will get all dll needs for your app and your exe will work .

if you use qml

windeployqt --qmldir (the path of its directory ) app.exe

and also see these youtube videos for more info:

https://www.youtube.com/watch?v=LdSTgR0xJco

https://www.youtube.com/watch?v=hCXAgB6y8eA

棒棒糖 2025-01-27 18:56:00

安装 Visual C++ 2010 运行时 x86 解决了问题

installing visual C++ 2010 runtime x86 solved problem

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文