I've attempted to run box86 on Debian chroot, both sid and bullseye. I've been able to run explorer/winecfg, but no success with Torchlight II that runs on native Debian.
At this point, I give up - one day when the ecosystem matures I'll switch to Debian on PBP and probably tinker with box86 again, but trying to do it through Docker/chroot is way much more hassle than simply running a Debian on SD card: ).
Not a tutorial per se, but better than nothing:
1. Make a SD card with Debian through https://github.com/daniel-thompson/pineb...-installer. Contrary to the README, it works on Manjaro. You want armhf debian with bullseye release. Buster has old graphics driver.
2. Put the SD card into PBP and reboot to boot into Debian.
TIP: For steps 2&3 you can use attached script*
2. Install i386:wine and prequisites for box86
3. Compile box86
4. To run something through wine&box86, type "box86 wine EXECUTABLE" in the console. Examples:
- box86 wine winecfg
- box86 wine explorer
5. To run Torchlight II, run "box86 path_to_x86_executable". It's not start.sh, it's the one located in /game subfolder.
*
At this point, I give up - one day when the ecosystem matures I'll switch to Debian on PBP and probably tinker with box86 again, but trying to do it through Docker/chroot is way much more hassle than simply running a Debian on SD card: ).
(10-12-2020, 11:43 AM)Idaho Wrote:(10-12-2020, 03:54 AM)brzegorz Wrote: I'm happy to report that x86 Linux Torchlight 2 works on 32-bit Debian with box86. It's possible that you can do it in a chroot or a Docker container, but I haven't tested that yet
Hey if you make this work on docker, it'd be cool if you share a tutorial in here
I'm eager to test box86 but I'm on manjaro and box86 seems to be already a bit complex to build on its own + I've never touched Docker in my life yet...
Not a tutorial per se, but better than nothing:
1. Make a SD card with Debian through https://github.com/daniel-thompson/pineb...-installer. Contrary to the README, it works on Manjaro. You want armhf debian with bullseye release. Buster has old graphics driver.
2. Put the SD card into PBP and reboot to boot into Debian.
TIP: For steps 2&3 you can use attached script*
2. Install i386:wine and prequisites for box86
3. Compile box86
4. To run something through wine&box86, type "box86 wine EXECUTABLE" in the console. Examples:
- box86 wine winecfg
- box86 wine explorer
5. To run Torchlight II, run "box86 path_to_x86_executable". It's not start.sh, it's the one located in /game subfolder.
*
Code:
#!/bin/bash
dpkg --add-architecture i386
apt-get update
apt-get -y upgrade
apt-get -y dist-upgrade
apt install -y git cmake g++ python3 gnupg wget libstb0:i386 \
libavcodec58:i386 libavutil56:i386 libsdl2-2.0-0:i386 libxxf86vm1 \
libfaudio0:i386 libxcb-randr0 libwine libgl1 mesa-utils \
libxinerama1 libxrandr2 libxcomposite1 libxi6 libxfixes3 libxcursor1
##### Get wine
wget -nc https://dl.winehq.org/wine-builds/winehq.key
apt-key add winehq.key
echo "deb https://dl.winehq.org/wine-builds/debian/ bullseye main" >> /etc/apt/sources.list.d/wine.list
apt update
apt install -y --install-recommends winehq-stable:i386 wine-stable:i386 \
wine-stable-i386:i386
##### Get box86
git clone https://github.com/ptitSeb/box86
cd box86
mkdir build && cd build
cmake .. -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo && \
make -j4 install
export PAN_MESA_DEBUG=gl3