Games compilation howto on the Pinebook-pro (Manjaro Linux and Debian native)
(11-03-2020, 09:54 AM)brzegorz Wrote: 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: ).

(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 Big Grin
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
Nice script you got there, I tried running its commands on Docker but I'm a noob, wget doesn't seem to work also libfaudio0:i386 is nowhere to be found in the repos, does it require special repos? If anyone with better knowledge could help around I think we could wrap up a nice whole new layer of app compatiblity for the pinebook pro...
  Reply


Messages In This Thread
RE: Games compilation howto on the Pinebook-pro (Manjaro Linux and Debian native) - by Idaho - 12-02-2020, 02:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinebook Pro Initial Impressions kunger 443 590,635 04-16-2024, 07:29 PM
Last Post: KC9UDX
  looking to buy one pinebook pro (mainland China) duanduan 3 2,316 03-21-2024, 07:44 PM
Last Post: wangyukunshan
  Cellular module for Pinebook Pro Lotech 1 406 03-05-2024, 05:40 AM
Last Post: KC9UDX
  Screen on pinebook stays black but can ssh into machine tuxxpine 0 308 02-23-2024, 04:22 PM
Last Post: tuxxpine
  Sale my ANSI PineBook Pro cuthbertdavies 0 295 02-14-2024, 09:12 PM
Last Post: cuthbertdavies
  Compiling with -j6 on the Pinebook Pro (Overheat) KC9UDX 0 231 02-14-2024, 09:01 AM
Last Post: KC9UDX
  Manjaro versions bad and good gilwood 0 258 02-12-2024, 05:03 PM
Last Post: gilwood
  Pinebook Pro in EU for Sale - €90 jan_vdk 2 682 02-07-2024, 02:12 AM
Last Post: 23Ro
  Pinebook Pro for sale tomekdev 2 762 02-01-2024, 11:35 AM
Last Post: tomekdev
  Video Editing Is Possible On The PineBook Pro! ImmyChan 10 7,629 12-17-2023, 09:29 PM
Last Post: insideau786

Forum Jump:


Users browsing this thread: 2 Guest(s)