Run 32-bit.exe on Raspberry Pi OS 12 (Bookworm)

Questions about Wine on Linux
Locked
Ant302cc
Newbie
Newbie
Posts: 3
Joined: Wed Nov 29, 2023 6:18 am

Run 32-bit.exe on Raspberry Pi OS 12 (Bookworm)

Post by Ant302cc »

Hello

I'm trying to workout what is needed in order to use Wine to run a 32-bit Windows .exe on a Raspberry Pi 5 running the latest Raspberry Pi OS (v12 / Bookworm).

Through initial Google searches, some guides mention installing box86 alongside Wine as part of the solution for running a 32-bit exe. Others I have come across don't mention box86 and say to install the below to add 32-bit support and install wine32 version:

sudo dpkg --add-architecture i386
sudo apt install wine64 wine32

I'd be grateful if someone can put me right on what is needed at a bare minimum or what people have found has been a working solution for them.
Thanks in advance.
invisible kid
Level 5
Level 5
Posts: 359
Joined: Tue Dec 24, 2019 3:23 pm

Re: Run 32-bit.exe on Raspberry Pi OS 12 (Bookworm)

Post by invisible kid »

Hi, fellow user here. For me, on a debian-based distro, I would go the sudo dpkg --add-architecture route, but I don't know if it being a rpi would change my course. Also, I'm not familiar with box86, so not really a fair opinion from me : D
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Run 32-bit.exe on Raspberry Pi OS 12 (Bookworm)

Post by jkfloris »

The Raspberry Pi 5 has an ARM processor and cannot run i386 programs. However, you can install the armel or armhf wine32 Debian packages.
Note: Wine is not an emulator, so i386/amd64 Windows programs will not run on ARM. You will need an emulator, such as Box86/64, for this.
Ant302cc
Newbie
Newbie
Posts: 3
Joined: Wed Nov 29, 2023 6:18 am

Re: Run 32-bit.exe on Raspberry Pi OS 12 (Bookworm)

Post by Ant302cc »

Thanks very much for the replies @invisible kid and @jkfloris.
I was unable to get wine installed successfully running any of the above, but believe this was down to Raspberry Pi requiring specific packages.
For anyone else that's struggled with this, I was able to get wine successfully installed via Pi-App:
1. Install Pi-Apps:
wget -qO- https://raw.githubusercontent.com/Botsp ... er/install | bash
2. Launch Pi-Apps (from terminal ,enter: pi-apps)
3. In Pi-Apps, go to : Tools > Emulation. Select "Wine (x64)" and click Install (will take some considerable time to fully install - took around 5-10 mins on a Pi5 for me)

From doing the above I was able to launch a Windows .exe successfully by entering below terminal:
wine <executable>
invisible kid
Level 5
Level 5
Posts: 359
Joined: Tue Dec 24, 2019 3:23 pm

Re: Run 32-bit.exe on Raspberry Pi OS 12 (Bookworm)

Post by invisible kid »

Awesome!
Guandi303
Newbie
Newbie
Posts: 1
Joined: Wed Jan 17, 2024 5:41 pm

Re: Run 32-bit.exe on Raspberry Pi OS 12 (Bookworm)

Post by Guandi303 »

@jkfloris
So no Windows Programms will run with Wine on an RPi5?
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Run 32-bit.exe on Raspberry Pi OS 12 (Bookworm)

Post by jkfloris »

Pi-Apps installs Box64 when you install Wine.
So your Windows programs should work!
Locked