Installing Box64 from source sounds intimidating, but the process is short and predictable. Building it yourself also guarantees that you run the latest code, compiled with the best options for your exact hardware. This guide covers the complete Box64 install on ARM64 Linux, from prerequisites to updating and removing it later.
Before you begin
You will need:
- A 64-bit ARM Linux system, such as Debian, Ubuntu, Raspberry Pi OS (64-bit), Fedora or Arch Linux ARM.
- An internet connection to fetch the source code.
- Around 500 MB of free storage and 2 GB of RAM or more.
- A user account with
sudorights for the final installation step.
Check that your system really is 64-bit by running uname -m. The output should be aarch64. If it shows armv7l, you are on a 32-bit system, and Box64 will not run; Box86 is the right tool there.
Step 1: Install the build tools
On Debian, Ubuntu and Raspberry Pi OS:
sudo apt update
sudo apt install git cmake build-essential python3
On Fedora:
sudo dnf install git cmake gcc gcc-c++ make python3
On Arch Linux ARM:
sudo pacman -S git cmake base-devel python
Step 2: Get the Box64 source
You can clone the repository with Git, which makes future updates easy:
git clone https://github.com/ptitSeb/box64
cd box64
Alternatively, download the main-branch ZIP from our homepage, extract it and open a terminal in the extracted folder. Git is preferable if you plan to update regularly.
Step 3: Choose your build options
Box64 uses CMake, and the most important decision is the platform option. Board-specific options enable tuned compiler flags and the Dynarec for that processor.
| Hardware | CMake option |
|---|---|
| Raspberry Pi 5 | -D RPI5ARM64=1 |
| Raspberry Pi 4 | -D RPI4ARM64=1 |
| Rockchip RK3588 boards | -D RK3588=1 |
| Snapdragon 845 class devices | -D SD845=1 |
| Apple silicon under Linux | -D M1=1 |
| Generic ARM64 | -D ARM_DYNAREC=ON |
| RISC-V 64 | -D RV64=1 |
| LoongArch64 | -D LARCH64=1 |
The project's documentation lists further profiles for other boards. If yours is not listed, the generic ARM64 option is a reliable choice.
Add -D CMAKE_BUILD_TYPE=RelWithDebInfo to produce an optimised build that still contains enough debugging information to make crash reports useful.
Step 4: Configure and compile
Create a separate build folder, configure and compile. Using all processor cores speeds things up.
mkdir build && cd build
cmake .. -D RPI5ARM64=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo
make -j$(nproc)
On a board with limited memory, such as a 2 GB model, compiling with every core can exhaust RAM. If the build stops with an "internal compiler error" or the system freezes, run make -j2 instead.
Step 5: Install and register Box64
sudo make install
sudo systemctl restart systemd-binfmt
The first command copies the box64 binary to /usr/local/bin and installs its supporting files. The second asks the system to reload its binfmt rules. Box64 installs a rule that tells the kernel to hand x86_64 executables to Box64 automatically. After this, you can often run an x86_64 program directly with ./program, and the kernel will invoke Box64 behind the scenes.
Step 6: Verify the installation
box64 --version
You should see the Box64 version together with the words "with Dynarec". If the Dynarec is missing, the build used the interpreter only, usually because no platform option was given. Delete the build folder, reconfigure with the correct option and rebuild.
Installing from packages instead
Some distributions and community repositories provide ready-made Box64 packages. Arch Linux users can find Box64 in the AUR, and several community repositories offer Debian packages for popular boards. Raspberry Pi users often install Box64 through Pi-Apps, which wraps the build or package process in a friendly interface.
Packages are convenient, but they may lag behind the GitHub source by days or weeks. If you need a fix that was merged recently, building from source is the dependable option.
Updating Box64
If you cloned with Git, updating is quick:
cd ~/box64
git pull
cd build
cmake .. -D RPI5ARM64=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo
make -j$(nproc)
sudo make install
sudo systemctl restart systemd-binfmt
To switch to a tagged release, such as the stable v0.4.4, use git checkout v0.4.4 before rebuilding. Running git checkout main returns you to the newest code.
Uninstalling Box64
From the build folder, run:
sudo make uninstall
sudo systemctl restart systemd-binfmt
You can then delete the source folder. Any ~/.box64rc file you created is left in place and can be removed by hand.
Common build problems
CMake cannot find a compiler. Install build-essential or your distribution's equivalent compiler package.
The build fails with "Python not found". Box64 uses Python during configuration; install python3.
"Exec format error" when running x86_64 programs directly. The binfmt rule is not active. Restart systemd-binfmt or run the program as box64 ./program.
Box64 refuses to start because of the page size. Check with getconf PAGESIZE. A value of 16384 indicates a 16K kernel; on a Raspberry Pi 5, switch to the 4K kernel by adding kernel=kernel8.img to /boot/firmware/config.txt and rebooting.
Box64 and Box86 conflict. Both register binfmt rules, but for different architectures. They can coexist; just ensure both are installed from compatible sources.
Understanding what make install puts on your system
It is useful to know which files the installation creates, so you can inspect or remove them confidently later.
- The
box64binary, usually in/usr/local/bin, is the program you run. - Configuration files, including the default rc file with per-program settings, are installed in a system location under
/etc. - A binfmt registration file tells the kernel to hand x86_64 executables to Box64 automatically.
- Some x86_64 support libraries may be installed in a dedicated folder for programs that need them.
None of these touch your existing ARM64 programs or libraries. Box64 sits alongside the rest of your system and only acts when an x86_64 program is launched.
Building more than one version
Advanced users sometimes keep two Box64 builds: a stable release for everyday use and the latest main branch for testing. Clone the repository into two folders, build each in its own build folder and install only the one you want as the system default. You can run the other directly from its build folder with ./box64 ./program. This makes it easy to check whether a problem is new in the latest code or has always existed.
Cross-compiling for slower devices
If your ARM device is slow or short of memory, you can compile Box64 on a faster x86_64 computer with a cross-compiler for ARM64, then copy the binary across. The Box64 compiling documentation describes this approach. For most users with a Raspberry Pi 4 or newer, building directly on the device is simpler and takes acceptable time.
Installing on less common distributions
Box64 builds on almost any 64-bit Linux distribution, because its requirements are modest: a C compiler, CMake, Python and Git. On distributions not covered above, install the equivalent packages with the native package manager and follow the same steps. A few points deserve attention.
On distributions that do not use systemd, the binfmt registration step differs. Box64 can still be run explicitly with box64 ./program, and you can register the binfmt rule manually through the binfmt_misc interface if you want automatic handling. Consult your distribution's documentation for how it manages binfmt entries.
On minimal or container images, you may need to install additional basics such as make or the C library development headers before CMake succeeds. If configuration fails, read the first error message carefully; it almost always names the missing tool.
On immutable or image-based distributions, where the root file system is read-only, install Box64 into your home folder by passing a different installation prefix to CMake, then add that folder's bin directory to your PATH. This keeps the system image untouched while still giving you a working box64 command.
Whichever distribution you use, finish by running box64 --version and a simple x86_64 program to confirm that everything works before moving on to larger software.
Confirming that binfmt works
After installation, test automatic handling directly. Place an x86_64 Linux program in a folder, make it executable with chmod +x, and run it with ./program rather than box64 ./program. If the Box64 banner appears, the binfmt rule is active and the kernel is handing x86_64 executables to Box64 automatically. If you see "Exec format error", restart the binfmt service again or check that another tool, such as QEMU, has not claimed the x86_64 rule first.
Frequently asked questions
Building Box64 usually takes ten to twenty minutes on a modern ARM board such as a Raspberry Pi 5, and longer on slower hardware or phones.
Use the profile that matches your board, such as RPI5ARM64 or RK3588. If none matches, the generic ARM_DYNAREC option is a safe choice.
A reboot is not required. Restarting systemd-binfmt is enough to activate automatic handling of x86_64 programs.
You can build and run Box64 from your home folder without sudo, but installing it system-wide and registering binfmt rules requires administrator rights.
Clone the repository, run git checkout with the version tag, for example v0.4.4, then build and install as usual.
Conclusion
A Box64 install from source comes down to a handful of commands: install the tools, fetch the code, pick the right board option, build and install. Doing it yourself gives you the newest fixes and a build tuned to your processor, and updating later takes only minutes. Once box64 --version confirms the Dynarec, your ARM64 system is ready to run x86_64 Linux software.

Box64 GitHub: Finding Your Way Around the Repository
Box64 0.4.4: What the Latest Release Brings
Box64 on Raspberry Pi 5 and Pi 4: Setup and Tuning