Compiling Box64 on a Raspberry Pi 4 with Box32 support!

Kippykip

CEO of cancelled
THE ONE
So Box64 and Box86 are normally emulators that allow you to run x86 and x64 software on Arm devices such as a Raspberry pi.
You can run desktop apps such as steam and mostly importantly to me, WINE (Windows software)
Normally you've had to compile both Box86/Box64 separately in the past, however since Box64 0.3.2, it just supports 32-bit stuff in the same project now, as long as you use the right compiler flag!
So I don't have a Pi 5, only a Pi 4 and Pi 400
But here's how I got it to work

I'm on debian trixie which the latest as of me writing this right now.
(In the terminal, type lsb_release -a and it'll show what version if you don't know)

Anyhow, to get started open the terminal update everything if you haven't already done so:
Code:
sudo apt update
sudo apt upgrade

Now we gotta install the dependencies to build and download Box64
Code:
sudo apt install -y git build-essential cmake

Okay finally, time to clone the Box64 repository from github to say, somewhere in the home folder. Then navigate to the folder:
Code:
git clone https://github.com/ptitSeb/box64
cd box64

Now we're gonna make a subfolder called "build", and navigate to it:
Code:
mkdir build
cd build

Once inside, we're gonna build it with the following flags:
Code:
cmake .. -DRPI4ARM64=1 -DBOX32=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
So the -DRPI4ARM64=1, makes it for the Raspberry pi 4 specifically, and the -DBOX32=1 enable 32-bit emulation (negating the need for the old Box86)

Then to compile it, use:
Code:
make -j$(nproc)
The $(nproc) is just the amount of CPU cores you wanna use to compile. If it screws up, you could also just do make -j4 to compile with all four

Once it's done, you can install it via:
Code:
sudo make install

Then reboot and test it out with this!:
Code:
box64 -v
1761323195868.png
 
Top