我很难将Windows应用程序部署到其他计算机。
使用windeployqt,程序可以在我的机器上完美独立运行。即使在重命名Qt根目录和项目根目录后,也要确保.exe使用捆绑的.dll。
尽管如此,应用程序在任何其他PC / VM上启动后立即崩溃。我已经尝试将整个bin / plugins / qml / platforms文件夹手动复制到.exe邻居,但是没有用。这是x96dbg的日志转储:
DLL Loaded: 6F240000 C:\Users\iryd\Desktop\data\sceneparsers\gltfsceneimport.dll
INT3 breakpoint "TLS Callback 1 (gltfsceneimport.dll)" at gltfsceneimport.6F251B20 (6F251B20)!
INT3 breakpoint "TLS Callback 2 (gltfsceneimport.dll)" at gltfsceneimport.6F251AD0 (6F251AD0)!
Thread D50 created, Entry: qt5core.68AA9E40
EXCEPTION_DEBUG_INFO:
dwFirstChance: 1
ExceptionCode: C0000005 (EXCEPTION_ACCESS_VIOLATION)
ExceptionFlags: 00000000
ExceptionAddress: 00000000
NumberParameters: 2
ExceptionInformation[00]: 00000008 DEP Violation
ExceptionInformation[01]: 00000000 Inaccessible Address
First chance exception on 00000000 (C0000005, EXCEPTION_ACCESS_VIOLATION)!
EXCEPTION_DEBUG_INFO:
dwFirstChance: 0
ExceptionCode: C0000005 (EXCEPTION_ACCESS_VIOLATION)
ExceptionFlags: 00000000
ExceptionAddress: 5BFCD9C1
NumberParameters: 2
ExceptionInformation[00]: 00000000 Read
ExceptionInformation[01]: 00000000 Inaccessible Address
Last chance exception on 5BFCD9C1 (C0000005, EXCEPTION_ACCESS_VIOLATION)!
在哪里寻找错误?