Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
Go to file
2024-11-22 12:06:55 +01:00
.github [CI] Generate and upload .wcp file for Winlator (#2045) 2024-11-19 13:49:35 +01:00
debian
docs [ARM64_DYNAREC] More optimizations on strongmem emulation (#2051) 2024-11-20 18:59:20 +01:00
pkgbuilds
src Reworked on mmap address alignments for a performance regression (#2057) 2024-11-22 12:06:55 +01:00
system [RCFILE] More adjustments with new strongmem 2024-11-20 21:02:08 +01:00
tests [WRAPPER] Fixed myStackAlignGVariantNew and refined the test too (#2038) 2024-11-15 21:37:36 +01:00
tests32
wrapperhelper
x64lib
x86lib
.clang-format
.gitignore
.travis.yml
cmake_uninstall.cmake.in
CMakeLists.txt [WRAPPER] Added wrapped libzstd.so.1 support, with new wrapperhelper 2024-11-17 11:30:30 +01:00
LICENSE
postinst
README_CN.md
README_UK.md
README.md
rebuild_wrappers_32.py
rebuild_wrappers.py
runTest.cmake

Official logo

Box64: Linux Userspace x86-64 Emulator with a Twist

Changelog | 中文 | Українська | Report an Error

Build Status Stars Forks Contributors Pull Requests Issues


Box64 enables running x86_64 Linux programs, including games, on non-x86_64 Linux systems such as Arm (64-bit little-endian host system required).

Check out Box64 in action on YouTube:

Box64 leverages native system libraries (libc, libm, SDL, OpenGL), offering ease of integration and surprising performance in many applications. For performance benchmarks, check this analysis.

With DynaRec for ARM64, RV64 and LA64 platforms, Box64 achieves a speed boost 5-10x faster than the interpreter alone. For a deeper look at DynaRec, see Inner workings.

Box64 Icon

Logo and icon by @grayduck - Thank you!


📖 Usage

Box64 offers environment variables to control its behavior. For details, see Usage Documentation.


🚀 Compiling and Installation


🔄 Version History

See the Changelog for version updates.


🖥️ Platform Compatibility Notes

Box64 requires 64-bit libraries on the host system, as it directly translates x86_64 function calls. For 32-bit binaries, use Box86.

Notes

  1. Box32 mode is in the making, which aims to support 32-bit binaries on Box64, stay tuned!
  2. Some installers may default to x86 on 64-bit host OSes, causing compatibility issues. Workaround: Use a fake uname that returns "x86_64" for -m.

⚙️ Configuration

Box64 has configuration files located in /etc/box64.box64rc and ~/.box64rc, both formatted as .ini files. If you dont want to use the default /etc/box64.box64rc file, copy it to ~/.box64rc to ensure compatibility.

Settings priority: ~/.box64rc > /etc/box64.box64rc > Command line.


📄 Additional Platform-Specific Notes

Unity Game Emulation

  • Many Unity games require OpenGL 3+, which may be challenging on ARM/RISC-V SBCs.
  • Tip for Pi4 and Pi5 Users: Set MESA_GL_VERSION_OVERRIDE=3.2 with BOX64_DYNAREC_STRONGMEM=1 to prevent freezes and enable strong memory mode.
  • Using Panfrost: For better compatibility on ARM, enable PAN_MESA_DEBUG=gl3 to force higher OpenGL profiles. This can help if a game starts but quits unexpectedly before showing any content.

GTK Programs

Box64 wraps GTK libraries, supporting both gtk2 and gtk3.

Steam

Steam requires Box86 due to its 32-bit client app, but uses 64-bit local server binaries. Systems with less than 6GB RAM may need a swap file for optimal performance.

Wine

Box64 supports Wine64 and Proton. For 32-bit components, Box86 is required. Systems with both Box64 and Box86 can run 32- and 64-bit Windows programs.

Note: You can use Wine WOW64 build to run x86 Windows programs in Box64-only environments, this is still experimental, but it works in most cases.

Vulkan

Box64 wraps Vulkan libraries.


Final word

I want to thank everyone who has contributed to box64 development. There are many ways to contribute: code contribution, financial, hardware and advertisement! So, in no particular order, I want to thank:

And I also thank the many other people who participated even once in this project.

(If you use Box64 in your project, please don't forget to mention it!)