Missing mfc140u.dll when trying to run windows application using Wine in Ubuntu

时间:2018-10-24 11:24:23

标签: linux ubuntu ubuntu-16.04 wine

I want to run a c++ application written in vs2017 in Ubuntu 16.04. I've installed Wine version 3.0.3 as well as Winetricks version 20140817. When trying to run the application using 'wine app_name.exe' command, i get an error saying

002e:err:module:import_dll Library mfc140u.dll (which is needed by L"path_to_my_application_library") not found

I tried to install mfc140u via Winetrichs GUI using 'Install a Windows DLL or component' option but it seems not to be listed anywhere on the list of the available packages. Does anyone know how to make it available?

2 个答案:

答案 0 :(得分:0)

我不使用Wine,因此可以采取其他步骤,但是为了帮助您:

我相信您需要VC++ redistributable (Visual Studio C++ runtime)的适当版本。您需要安装尝试运行的应用程序的编译版本。只需从最新版本开始,然后安装,然后根据需要安装旧版本。 MSDN Forums

答案 1 :(得分:0)

确保您使用的是Wine的最新版本(当前是Wine 4)。您可以通过运行以下命令进行检查:

wine --version

如果您需要升级Wine,请查看说明here

该dll是Visual C ++可再发行组件的一部分。您需要安装它,这样应用程序才能运行。 Instructions are here

相关问题