Box64 Box86 Gaming General

Box86/Box64 are easy to use

Discover how box86 & box64 are easy to use and install, and how they can be integrated in the system.

I think the ease of use and how simple both box86 and box64 are to install is often forgotten. So let me detail a bit what is needed to have either box running:
For box86, you need the box86 binary, and a 32bits subsystem.
For box64, you need the box64 binary, and a 64bits subsystem.

And that it. Everything else is “quality of life” addons.
The installation to the system, using systemd-binfmt integration, allows box86/box64 to be used automatically by the system when an i386/x86_64 binary is launched. But that’s not mandatory.
If it is not installed (or if systemd-binfmt is not available), box can still be used. For example, once built (that part is covered in the doc from each repo) on the Pandora (no systemd there), world of goo can be launched using

box86 ./WorldOfGoo.bin32

A first graphical program (SDLgears) working on the Pandora using a very early build of box86

The other things that come with both box and are installed are a small set of libraries. There is libstdc++ and its companion libgcc_s. There is also libpng12 now. That last one is here because quite a lot of games are still using it, while it’s deprecated and removed from modern OS version. It’s here so games can still be run.
For the C++ library, well, box86 and box64 don’t wrap C++ library (for technical reasons). So those libs need to be the i386/x86_64 version to run C++ software (so, a lot of softwares!). Those libs are copied in a fixed path on the system so box can find and use them. But again, it’s not mandatory. C++ games can still be launched if the libraries are copied somewhere box can find them, like in the game folder itself.

For all libraries used by a game or software, box will try to load the native version if that libs is wrapped (32bits for box86 or 64bits for box64). If the lib is not loaded (not wrapped or not found), box will try to load an emulated version of that lib (in the current folder, a few subfolders, or in a folder indicated by either LD_LIBRARY_PATH or BOXxx_LD_LIBRARY_PATH environment variable). If the lib is still not loaded, an error will occur…

To use Windows software, you will need an i386 or x86_64 version of wine. It is easier to use pre-built binary. You can find some in the PlayOnLinux build machine, or in the TwisterOS FAQ page for example. Once you have a tgz of the binary, simply extract it in your home folder (so ~/wine), then create a few shortcuts to launch it with
sudo ln -s ~/wine/bin/wine /usr/local/bin/wine
sudo ln -s ~/wine/bin/wineserver /usr/local/bin/wineserver
sudo ln -s ~/wine/bine/wineboot /usr/local/bin/wineboot
If you grabbed an 64bits built, you also have to add
sudo ln -s ~/wine/bin/wine64 /usr/local/bin/wine64

You can also install winetricks, just follow the procedure on its GitHub page, and it should just work out-of-the-box with the latest versions of box86 and box64.

Now, just launch your Windows games with wine, as if you were on an x86 pc…

Here is a collection of games running with Box86 & Box64

Because the wrapping is an integral part of box, there is no specific file or configuration to define what/how libs are wrapped. And there is more than a hundred libs that are actually wrapped. That means that, in most cases, when a lib is missing, you just need to install the native one for your system.

When using box86 on an Aarch64 OS, it can be a bit tricky. For the Debian family, you can use multiarch, for a seamless system integration. Start with
sudo dpkg --add-architecture armhf
sudo apt update

to add the architecture. Then, to kickstart your library collection, you can use
sudo apt install libgtk2.0-0:armhf libsdl2-image-2.0-0:armhf
To install gtk2 (which also installs many X11 libs) and some SDL2 libs for armhf. That should allow a good set of 32bits program to start.

To conclude, I’ll show here the list of library wrapped by box86 and box64.         => empty wrapping        => box86 only (that's gallium9) / / / /      => emulated is prefered /  => box64 only / /    => box64 only      => box64 only       => box86 only        => box86 only       => box86 only /     => box64 only       => box86 only    => can be disable with BOXxx_NOPULSE=1           => can be disable with BOXxx_NOPULSE=1 / / / / / => box64 only         => emulated is prefered    => empty wrapping       => box86 only
libusb-1.0      => box86 only    => box86 only /        => box86 only       => box86 only
//Those are GTK one and can be disabled with BOXxx_NOGTK=1        => box86 only       => box64 only     => box86 only      => box86 only     => box86 only
libgstinterfaces-0.10       => box86 only
libgstreamer-0.10       => box86 only     => box86 only
libgudev-1.0        => box86 only       => box86 only          => box86 only       => box86 only       => box86 only

15 replies on “Box86/Box64 are easy to use”

Another small typo (or not exactly a typo): “box86 ./WorldOfGoo.bin32” (the first letter does not have bold font)

Otherwise great blog post and a video. Thanks for your work on this amazing project!

I am completely bewildered on how to ACTIVATE this software while using wine. I got some games working on wine but I am pretty unsure how to change the architecture on t he pi. I’ve seen someone get Unreal tournament 2004 to work on box86 pi4. Problem is I am trying to figure it out and one hurdle is probably not being able to find any information how to activate the box86 software. Hope I find a guide one day or stumble up on the solution. Anyways keep the good work.

What do you mean by activate? If you haad some games already, that means box86 already works and is “activated”. box86 is disagned to be “transparent”, you don’t really see when it’s working, but if you run x86 software, that means it runs.

It’s not in my short-term plan. But you can use Termux with chroot to run box86. A proot can also be used, but not everything will work, there are many limitation there.

I don’t really understand what you are trying to do here. Running winetricks I guess, but I don’t know what is your system, how eveyrhting installed, what wine version this is, if you have box86 and/or box64 and if binfmt system integration is present.

Leave a Reply

Your email address will not be published.