My wine cannot run a x86 exe currently!

Questions about Wine on Linux
Locked
LittFlower
Newbie
Newbie
Posts: 1
Joined: Mon Aug 14, 2023 10:55 pm

My wine cannot run a x86 exe currently!

Post by LittFlower »

Hello everyone! When I tried to run a x86 exe in my wine, I got these errors which were about dlls:

Code: Select all

0024:err:module:import_dll Loading library ucrtbased.dll (which is needed by L"Z:\\home\\flower\\Downloads\\RE\\VCRUNTIME140D.dll") failed (error c000007b).
0024:err:module:import_dll Library VCRUNTIME140D.dll (which is needed by L"Z:\\home\\flower\\Downloads\\RE\\INTRORE.exe") not found
0024:err:module:import_dll Loading library ucrtbased.dll (which is needed by L"Z:\\home\\flower\\Downloads\\RE\\INTRORE.exe") failed (error c000007b).
0024:err:module:LdrInitializeThunk Importing dlls for L"Z:\\home\\flower\\Downloads\\RE\\INTRORE.exe" failed, status c0000135
I have tried to install the ucrtbased.dll and VCRUNTIME140D.dll, and I have tried to do something as follow:

1. Moved the dlls to the same folder of the exe which I wanted to run;
2. Run the regsvr32 to register the dlls which were in the C://windows//system32;
3. Reboot my computer;

As you can see, after the second step, the error has changed from "ucrtbased.dll not found" to "loading ucrtbased.dll failed". And I didn't do these steps to the VCRUNTIME140D.dll so the error was still "VCRUNTIME140D.dll not found".

I have no idea about these problems. If everyone who could help me, I will exactly appreciate it.

You can get the exe from https://raw.githubusercontent.com/LittF ... NTRORE.exe, get the dlls from https://raw.githubusercontent.com/LittF ... ME140D.dll and https://raw.githubusercontent.com/LittF ... tbased.dll
qwertymnb
Level 5
Level 5
Posts: 272
Joined: Sun Jan 17, 2016 4:36 pm

Re: My wine cannot run a x86 exe currently!

Post by qwertymnb »

Hi,

The ucrtbased.dll is 64-bit, so you should find yourself somewhere a 32-bit version.

A few easier other options you might try that might work around

- Just copy the mentioned non-debug dlls to the debug dlls:
cp -rf ~/.wine/drive_c/windows/syswow64/ucrtbase.dll ~/.wine/drive_c/windows/syswow64/ucrtbased.dll
cp -rf ~/.wine/drive_c/windows/syswow64/vcruntime140.dll ~/.wine/drive_c/windows/syswow64/vcruntime140d.dll

That allows me to start the program as well

- Compile your program in non-debug (Release) mode
Locked