Possible to run 32-bit applications in 64-bit wineprefix?

Questions about Wine on Linux
Locked
elvemo
Newbie
Newbie
Posts: 2
Joined: Tue Apr 04, 2017 1:18 pm

Possible to run 32-bit applications in 64-bit wineprefix?

Post by elvemo »

I've created a 64-bit wineprefix, and I want to run a 32-bit application inside it. There are 2 examples where this is absolutely necessary, that I know of:
Uplay and Steam. Both are 32-bit applications, and some games are 64-bit. When I do try to run a 32-bit application inside a 64-bit wineprefix I get this error:
"wine: Bad EXE format for <exe file>."

When I create a 64-bit wineprefix, a directory named "Program Files (x86)" is created. Now, if running 32-bit applications in a 64-bit wineprefix does not work, why is this directory created in the first place?
User avatar
dimesio
Moderator
Moderator
Posts: 13368
Joined: Tue Mar 25, 2008 10:30 pm

Re: Possible to run 32-bit applications in 64-bit wineprefix

Post by dimesio »

Of course it's possible to run 32 bit applications in a 64 bit wineprefix; that's how it's supposed to work. The problem is that there are specific applications for which Wine's WoW64 isn't working properly, and the workaround in those cases is to install the app to a 32 bit wineprefix.
elvemo
Newbie
Newbie
Posts: 2
Joined: Tue Apr 04, 2017 1:18 pm

Re: Possible to run 32-bit applications in 64-bit wineprefix

Post by elvemo »

It looks like I have to start compiling wine myself. Seems like I can either run wine 32-bit or wine 64-bit (Fedora), and I think that goes for some other distributions aswell..
User avatar
dimesio
Moderator
Moderator
Posts: 13368
Joined: Tue Mar 25, 2008 10:30 pm

Re: Possible to run 32-bit applications in 64-bit wineprefix

Post by dimesio »

elvemo wrote:It looks like I have to start compiling wine myself. Seems like I can either run wine 32-bit or wine 64-bit (Fedora), and I think that goes for some other distributions aswell..
You shouldn't need to. Both the distro and WineHQ Fedora packages install a proper WoW64 setup. If you are using packages from someone else, try one of those. If you are using a distro or WineHQ package and still have problems, then either you are doing something wrong or have an app that doesn't yet work in 64 bit wineprefixes.
Locked