wine64 can't run 32-bit app regardless WINEARCH=win32 and WINEPREFIX

Questions about Wine on Linux
Locked
ivanzinhoa
Newbie
Newbie
Posts: 2
Joined: Fri Feb 12, 2021 1:05 am

wine64 can't run 32-bit app regardless WINEARCH=win32 and WINEPREFIX

Post by ivanzinhoa »

I have successfully built 32-bit and 64-bit Helloworld Windows console applications using Mingw64 compiler, I tested them on WinXPx86 and Win7x86-64 respectively, now I tried out the 64-bit app using Wine64 which works perfect but the 32-bit version doesn't work regardless WINEARCH=win32 and WINEPREFIX=~/.wine32 variables are set, the error says:
wine: '' is a 32-bit installation, it cannot support 64-bit applications.
This error doesn't make sense, I triple-checked the app being 32-bit, I named the folders and files appropriately, as I said I tested the apps on Windows, it should work.

My system is Debian 3.16.56-1+deb8u1 (2018-05-08)

Wine is 1.6.2

how do I run this 32-bit Helloworld using Wine on my system? What am I doing wrong?
User avatar
dimesio
Moderator
Moderator
Posts: 13204
Joined: Tue Mar 25, 2008 10:30 pm

Re: wine64 can't run 32-bit app regardless WINEARCH=win32 and WINEPREFIX

Post by dimesio »

ivanzinhoa wrote: Fri Feb 12, 2021 1:09 am Wine is 1.6.2
Your Wine version is 7 years old and hasn't been supported in years. The current stable release is 6.0.
ivanzinhoa
Newbie
Newbie
Posts: 2
Joined: Fri Feb 12, 2021 1:05 am

Re: wine64 can't run 32-bit app regardless WINEARCH=win32 and WINEPREFIX

Post by ivanzinhoa »

dimesio wrote: Fri Feb 12, 2021 7:00 am
ivanzinhoa wrote: Fri Feb 12, 2021 1:09 am Wine is 1.6.2
Your Wine version is 7 years old and hasn't been supported in years. The current stable release is 6.0.
So, because it's old then does that mean I should not use it???

I just had to add Multiarch Binaries installation... now it runs as expected...

Code: Select all

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install wine32
wine32 hello32.exe
User avatar
dimesio
Moderator
Moderator
Posts: 13204
Joined: Tue Mar 25, 2008 10:30 pm

Re: wine64 can't run 32-bit app regardless WINEARCH=win32 and WINEPREFIX

Post by dimesio »

ivanzinhoa wrote: Fri Feb 12, 2021 2:45 pm So, because it's old then does that mean I should not use it???
You can use whatever version you want. You can't get support or file bugs for anything older than 6.0.
I just had to add Multiarch Binaries installation... now it runs as expected...

Code: Select all

sudo dpkg --add-architecture i386
sudo apt-get update
That is exactly what our instructions say to do. https://wiki.winehq.org/Debian
Locked