我试图让酒运行我在Windows中编写的程序的exe文件。每当执行该程序时,它就会返回一堆丢失的dll文件。问题在于,当打开dll时,wine会显示缺少所有要运行的dll文件,但随后会继续打开之前所说的缺少的下一个dll。
为了说明我的观点,这是一个比喻:
Peanutbutter.dll
(Sandwich.dll需要)
Knife.dll
(Peanutbutter.dll需要)
它只是说找不到花生酱,但随后找到了它,并告诉我花生酱缺少了什么。一切都在同一个文件夹中,并且可以清楚地找到它们,那么为什么不链接呢?
这是我得到的确切错误代码:
tester@LubuntuTester:~$ wine /home/tester/Desktop/release/GUI-1.exe
err:module:import_dll Library MSVCP140.dll (which is needed by L"Z:\\home\\tester\\Desktop\\release\\Qt5Core.dll") not found
err:module:import_dll Library VCRUNTIME140.dll (which is needed by L"Z:\\home\\tester\\Desktop\\release\\Qt5Core.dll") not found
err:module:import_dll Library api-ms-win-crt-runtime-l1-1-0.dll (which is needed by L"Z:\\home\\tester\\Desktop\\release\\Qt5Core.dll") not found
err:module:import_dll Library api-ms-win-crt-heap-l1-1-0.dll (which is needed by L"Z:\\home\\tester\\Desktop\\release\\Qt5Core.dll") not found
err:module:import_dll Library api-ms-win-crt-environment-l1-1-0.dll (which is needed by L"Z:\\home\\tester\\Desktop\\release\\Qt5Core.dll") not found
err:module:import_dll Library api-ms-win-crt-stdio-l1-1-0.dll (which is needed by L"Z:\\home\\tester\\Desktop\\release\\Qt5Core.dll") not found
err:module:import_dll Library api-ms-win-crt-math-l1-1-0.dll (which is needed by L"Z:\\home\\tester\\Desktop\\release\\Qt5Core.dll") not found
err:module:import_dll Library api-ms-win-crt-string-l1-1-0.dll (which is needed by L"Z:\\home\\tester\\Desktop\\release\\Qt5Core.dll") not found
err:module:import_dll Library api-ms-win-crt-utility-l1-1-0.dll (which is needed by L"Z:\\home\\tester\\Desktop\\release\\Qt5Core.dll") not found
err:module:import_dll Library api-ms-win-crt-time-l1-1-0.dll (which is needed by L"Z:\\home\\tester\\Desktop\\release\\Qt5Core.dll") not found
err:module:import_dll Library api-ms-win-crt-convert-l1-1-0.dll (which is needed by L"Z:\\home\\tester\\Desktop\\release\\Qt5Core.dll") not found
.
.
.
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\home\\tester\\Desktop\\release\\GUI-1.exe" failed, status c0000135
这是针对我在Windows中编写的Qt gui程序的,并试图在Linux上运行。 linuxdeployqt工具的问题在于它适用于64位操作系统,而我的设备具有32位处理器。我的解决方案是仅使用Wine在Linux上的Windows中使用已部署的exe,但出现上述错误。