qt - 过程入口点...renderSynchronous@QRenderAspectPrivate@Qt3DRender ...在动态链接库中找不到... *.dll
问题描述
我windeployqt.exe
用来部署我的应用程序是这样的:
PS C:\Users\me\Documents\deploy-win10-milestone-5-stripped-trytofix> C:\Qt\Qt5.11.2\5.11.2\msvc2017_64\bin\windeployqt.exe .\qt3dsceneeditor.dll
C:\Users\me\Documents\deploy-win10-milestone-5-stripped-trytofix\qt3dsceneeditor.dll 64 bit, release executable [QML]
Adding Qt5Svg for qsvgicon.dll
Adding Qt53DAnimation for assimpsceneimport.dll
Direct dependencies: Qt5Core Qt5Gui Qt5Qml Qt5Quick Qt5Widgets Qt53DCore Qt53DRender Qt53DInput Qt53DExtras
All dependencies : Qt5Concurrent Qt5Core Qt5Gamepad Qt5Gui Qt5Network Qt5Qml Qt5Quick Qt5Widgets Qt53DCore Qt53DRender Qt53DInput Qt53DExtras
To be deployed : Qt5Concurrent Qt5Core Qt5Gamepad Qt5Gui Qt5Network Qt5Qml Qt5Quick Qt5Svg Qt5Widgets Qt53DCore Qt53DRender Qt53DInput Qt53DAnimation Qt53DExtras
Warning: Cannot find Visual Studio installation directory, VCINSTALLDIR is not set.
Updating Qt53DLogic.dll.
Updating Qt5Concurrent.dll.
Updating Qt5Core.dll.
Updating Qt5Gamepad.dll.
Updating Qt5Gui.dll.
Updating Qt5Network.dll.
Updating Qt5Qml.dll.
Updating Qt5Quick.dll.
Updating Qt5Svg.dll.
Updating Qt5Widgets.dll.
Updating Qt53DCore.dll.
Updating Qt53DRender.dll.
Updating Qt53DInput.dll.
Updating Qt53DAnimation.dll.
Updating Qt53DExtras.dll.
Updating libGLESV2.dll.
Updating libEGL.dll.
Updating D3Dcompiler_47.dll.
Updating opengl32sw.dll.
Patching Qt5Core.dll...
Creating directory C:/Users/me/Documents/deploy-win10-milestone-5-stripped-trytofix/bearer.
Updating qgenericbearer.dll.
Creating directory C:/Users/me/Documents/deploy-win10-milestone-5-stripped-trytofix/gamepads.
Updating xinputgamepad.dll.
Creating directory C:/Users/me/Documents/deploy-win10-milestone-5-stripped-trytofix/geometryloaders.
Updating defaultgeometryloader.dll.
Updating gltfgeometryloader.dll.
Creating directory C:/Users/me/Documents/deploy-win10-milestone-5-stripped-trytofix/iconengines.
Updating qsvgicon.dll.
Creating directory C:/Users/me/Documents/deploy-win10-milestone-5-stripped-trytofix/imageformats.
Updating qgif.dll.
Updating qicns.dll.
Updating qico.dll.
Updating qjpeg.dll.
Updating qsvg.dll.
Updating qtga.dll.
Updating qtiff.dll.
Updating qwbmp.dll.
Updating qwebp.dll.
Creating directory C:/Users/me/Documents/deploy-win10-milestone-5-stripped-trytofix/platforminputcontexts.
Updating qtvirtualkeyboardplugin.dll.
Creating directory C:/Users/me/Documents/deploy-win10-milestone-5-stripped-trytofix/platforms.
Updating qwindows.dll.
Creating directory C:/Users/me/Documents/deploy-win10-milestone-5-stripped-trytofix/qmltooling.
Updating qmldbg_debugger.dll.
Updating qmldbg_inspector.dll.
Updating qmldbg_local.dll.
Updating qmldbg_messages.dll.
Updating qmldbg_native.dll.
Updating qmldbg_nativedebugger.dll.
Updating qmldbg_profiler.dll.
Updating qmldbg_quickprofiler.dll.
Updating qmldbg_server.dll.
Updating qmldbg_tcp.dll.
Creating directory C:/Users/me/Documents/deploy-win10-milestone-5-stripped-trytofix/renderplugins.
Updating scene2d.dll.
Creating directory C:/Users/me/Documents/deploy-win10-milestone-5-stripped-trytofix/scenegraph.
Updating qsgd3d12backend.dll.
Creating directory C:/Users/me/Documents/deploy-win10-milestone-5-stripped-trytofix/sceneparsers.
Updating assimpsceneimport.dll.
Updating gltfsceneexport.dll.
Updating gltfsceneimport.dll.
Creating C:\Users\me\Documents\deploy-win10-milestone-5-stripped-trytofix\translations...
Creating qt_ar.qm...
Creating qt_bg.qm...
Creating qt_ca.qm...
Creating qt_cs.qm...
Creating qt_da.qm...
Creating qt_de.qm...
Creating qt_en.qm...
Creating qt_es.qm...
Creating qt_fi.qm...
Creating qt_fr.qm...
Creating qt_gd.qm...
Creating qt_he.qm...
Creating qt_hu.qm...
Creating qt_it.qm...
Creating qt_ja.qm...
Creating qt_ko.qm...
Creating qt_lv.qm...
Creating qt_pl.qm...
Creating qt_ru.qm...
Creating qt_sk.qm...
Creating qt_uk.qm...
PS C:\Users\me\Documents\deploy-win10-milestone-5-stripped-trytofix>
但是当我运行我的应用程序时,我收到以下错误:
过程入口点...renderSynchronous@QRenderAspectPrivate@Qt3DRender ...在动态链接库中找不到... qt3dsceneeditor.dll
为什么会收到此错误?不windeployqt.exe
应该检测和复制所有依赖项吗?
解决方案
该错误是由于版本不匹配造成的。我正在运行这样的命令:
> C:\Qt\Qt5.11.2\5.11.2\msvc2017_64\bin\windeployqt.exe .\qt3dsceneeditor.dll
我的应用程序是使用 Qt 5.11.2 构建的,但由于某种原因,C:\Qt\Qt5.11.2\5.11.2\msvc2017_64\bin\windeployqt.exe
可执行文件正在从 Qt 5.9.4 目录复制 DLL!我重命名了 Qt 5.9.4 文件夹并再次运行命令,错误得到解决。
推荐阅读
- deployment - 部署到 Websphere (WAS) - 应用程序在启动后状态为“未知”
- laravel - 在 PHP 数组中搜索,类似于 MySQL Like %var% search with livewire
- python - 使用 python 抓取 Instagram 帖子下的所有评论
- xml - 我在本地服务器上运行的 wordpress 上导入 xml 博客文件时遇到问题
- firebase - 使用 Firebase 云存储的权限已被拒绝。此操作无法完成。获取 downloadURL 时,使用 firebase
- flutter - 在背景中创建一个带有图像的按钮
- php - 如何显示具有相关标题的背景图像
- java - JPA 表映射的自动列名生成
- reactjs - React 表单验证库
- javascript - 在 ODOO14 我想在 javascript 函数中获取当前模型