Djennick
Posts: 11
Joined: Mon Sep 28, 2020 10:42 am

How to run Box86 on Raspberry pi 4

Mon Sep 28, 2020 10:47 am

Hello friends,

I'm trying to run a x86 windows program using wine and box86 but because I'm new to raspberry pi os, I'm getting stuck quite quickly. I downloaded box86 through the github link and the git command. I think the next step would be to compile a build? But I am getting stuck here. Using the command in the build text file for raspberry pi 4 doesnt work.

Any help here would be appreciated.

Thank you

fruitoftheloom
Posts: 25219
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: How to run Box86 on Raspberry pi 4

Mon Sep 28, 2020 12:06 pm

Djennick wrote:
Mon Sep 28, 2020 10:47 am
Hello friends,

I'm trying to run a x86 windows program using wine and box86 but because I'm new to raspberry pi os, I'm getting stuck quite quickly. I downloaded box86 through the github link and the git command. I think the next step would be to compile a build? But I am getting stuck here. Using the command in the build text file for raspberry pi 4 doesnt work.

Any help here would be appreciated.

Thank you

The developers have an Operating System:

https://twisteros.com/about.html
The information is out there....you just have to let it in.

My other Linux machine is a ChromeBox

GlowInTheDark
Posts: 1239
Joined: Sat Nov 09, 2019 12:14 pm

Re: How to run Box86 on Raspberry pi 4

Mon Sep 28, 2020 1:32 pm

The developers have an Operating System:
You know, there's times I really wish I still had a reason to want to run Windows software.

I looked at the TwisterOS page - very interesting. Almost makes me want to try it, but then I realize there's nothing on Windows that I still need. I often tell the story about how there was, several years ago, one particular piece of software that I really, really wanted to get running on a Pi, but then they (the makers of the software) broke it (So that it no longer runs under Windows), so out the window went any desire on my part to run Windows on a Pi.

But TwisterOS looks interesting, although the incredibly bad English on the page makes you wonder what exactly it does and doesn't do. When you first start reading it, it sounds like it is just a bunch of themes and icons to make Raspbian look like Windows. Then you read further, and it almost, but not quite sounds like something more than that.
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth

Loves Linux; loves to dance.

hippy
Posts: 8902
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: How to run Box86 on Raspberry pi 4

Mon Sep 28, 2020 1:54 pm

GlowInTheDark wrote:
Mon Sep 28, 2020 1:32 pm
But TwisterOS looks interesting, although the incredibly bad English on the page makes you wonder what exactly it does and doesn't do. When you first start reading it, it sounds like it is just a bunch of themes and icons to make Raspbian look like Windows. Then you read further, and it almost, but not quite sounds like something more than that.
It's not clear to me what TwisterOS is now, if it is anything more than a desktop customisation with Box86 and some other applications and things pre-isntalled.

What TwisterOS was seems to be different to what it is now, but I don't know exactly what the original provided which the current doesn't.

Box86 has worked great for running the X86 Linux apps I need to run but I can't figure out library dependencies for others. I have not tied with WINE or using it for running X86 Windows programs.

User avatar
davidcoton
Posts: 5672
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK
Contact: Website

Re: How to run Box86 on Raspberry pi 4

Mon Sep 28, 2020 2:00 pm

hippy wrote:
Mon Sep 28, 2020 1:54 pm
What TwisterOS was seems to be different to what it is now, but I don't know exactly what the original provided which the current doesn't.
IIRC, the first release of TwisterOS included unauthorized proprietary images from Microsoft. It was withdrawn very rapidly, leaving the rather strange collection it is now and badly dented credibility for the authors.

I think the original announcement thread is still here, search and you might find.
Location: 345th cell on the right of the 210th row of L2 cache

hippy
Posts: 8902
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: How to run Box86 on Raspberry pi 4

Mon Sep 28, 2020 2:18 pm

Djennick wrote:
Mon Sep 28, 2020 10:47 am
I think the next step would be to compile a build? But I am getting stuck here. Using the command in the build text file for raspberry pi 4 doesnt work.
What command ? What error messages do you get ?

If it's related to the 'cmake' you may need to install that. This worked for me on my Pi 4B -

Code: Select all

cd ~
sudo apt-get install cmake
git clone https://github.com/ptitSeb/box86.git
cd box86
mkdir build
cd build
cmake .. -DRPI4=1
make

Code: Select all

pi@Pi4B:~/box86/build $ ./box86 --version
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Box86 with Dynarec v0.1.3 0eb575b4 built on Sep 28 2020 15:10:06

Djennick
Posts: 11
Joined: Mon Sep 28, 2020 10:42 am

Re: How to run Box86 on Raspberry pi 4

Mon Sep 28, 2020 3:31 pm

Thanks a lot for the replies guys.
Twisteros sounds interesting. I'll definitely try that if box86 doesn't work
hippy wrote: If it's related to the 'cmake' you may need to install that.
This was actually where I got stuck, thanks.

Now that i compiled the build, I don't know how to actually run the .exe file. How do I do that?

Djennick
Posts: 11
Joined: Mon Sep 28, 2020 10:42 am

Re: How to run Box86 on Raspberry pi 4

Mon Sep 28, 2020 3:58 pm

Allright when i try to run it using wine I get the following

Code: Select all

$ box86 wine ndp48-web.exe
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
BOX86: Wine detected, WINEPRELOADRESERVE=""
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 46 Env var
Looking for wine
argv[1]="ndp48-web.exe"
Not an ELF file (sign=#!/b)
Error: reading elf header of /usr/bin/wine-stable

What does it mean?

hippy
Posts: 8902
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: How to run Box86 on Raspberry pi 4

Mon Sep 28, 2020 5:53 pm

Djennick wrote:
Mon Sep 28, 2020 3:58 pm
Looking for wine
argv[1]="ndp48-web.exe"
Not an ELF file (sign=#!/b)
Error: reading elf header of /usr/bin/wine-stable
I am not familiar with wine but would try a "file /usr/bin/wine-stable" command and report back.

hippy
Posts: 8902
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: How to run Box86 on Raspberry pi 4

Tue Sep 29, 2020 9:11 am

Another OP with a similar issue here - viewtopic.php?f=78&t=286933

I suspect it's not the correct WINE installed but, as said, I have no experience with WINE on ARM or using it with Box86.

Update : Probably exactly that. The author of Box86, 'ptitSeb', has kindly provided a source and installation instructions for a WINE which will run on a Pi in the above thread and I now have Windows 'notepad.exe' running on my Pi 4B 1GB. YMMV when it comes to other Windows executables but that should help get you in your way.

Djennick
Posts: 11
Joined: Mon Sep 28, 2020 10:42 am

Re: How to run Box86 on Raspberry pi 4

Tue Sep 29, 2020 10:47 pm

Thanks a lot for thinking with me mate. Looks like I'm getting one step further.

Now I am getting stuck here though:

Code: Select all

box86 /home/pi/wine/bin/wine ndp48-web.exe
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
BOX86: Wine detected, WINEPRELOADRESERVE=""
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 46 Env var
Looking for /home/pi/wine/bin/wine
argv[1]="ndp48-web.exe"
Using emulated /home/pi/wine/bin/../lib/libwine.so.1
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using emulated /home/pi/wine/bin/../lib/wine/ntdll.so
Using native(wrapped) libm.so.6
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
BOX86: Wine detected, WINEPRELOADRESERVE=""
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 47 Env var
Looking for /home/pi/wine/bin/wine
argv[1]="ndp48-web.exe"
Using emulated /home/pi/wine/bin/../lib/libwine.so.1
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using emulated /home/pi/wine/bin/../lib/wine/ntdll.so
Using native(wrapped) libm.so.6
Using emulated /home/pi/wine/lib/wine/ntdll.dll.so
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 47 Env var
Looking for /home/pi/wine/bin/wineserver
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
0024:err:environ:run_wineboot failed to start wineboot c000007b
Using emulated /home/pi/wine/lib/wine/kernel32.dll.so
0024:err:module:import_dll Loading library kernelbase.dll (which is needed by L"C:\\windows\\system32\\kernel32.dll") failed (error c000007b).
wine: could not load kernel32.dll, status c0000135

Djennick
Posts: 11
Joined: Mon Sep 28, 2020 10:42 am

Re: How to run Box86 on Raspberry pi 4

Tue Sep 29, 2020 11:20 pm

I actually managed to fix it by deleting .wine, the old wine build was apparently interfering.


Now I have to deal with the next error:

Code: Select all

$ box86 /home/pi/wine/bin/wine /home/pi/Downloads/hamster-bot_release/hamster-bot.exe
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
BOX86: Wine detected, WINEPRELOADRESERVE=""
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 45 Env var
Looking for /home/pi/wine/bin/wine
argv[1]="/home/pi/Downloads/hamster-bot_release/hamster-bot.exe"
Using emulated /home/pi/wine/bin/../lib/libwine.so.1
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using emulated /home/pi/wine/bin/../lib/wine/ntdll.so
Using native(wrapped) libm.so.6
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
BOX86: Wine detected, WINEPRELOADRESERVE=""
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 46 Env var
Looking for /home/pi/wine/bin/wine
argv[1]="/home/pi/Downloads/hamster-bot_release/hamster-bot.exe"
Using emulated /home/pi/wine/bin/../lib/libwine.so.1
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using emulated /home/pi/wine/bin/../lib/wine/ntdll.so
Using native(wrapped) libm.so.6
Using emulated /home/pi/wine/lib/wine/ntdll.dll.so
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 46 Env var
Looking for /home/pi/wine/bin/wineserver
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
0050:err:vulkan:wine_vk_init Failed to load libvulkan.so.1.
Using emulated /home/pi/wine/lib/wine/kernel32.dll.so
Using emulated /home/pi/wine/lib/wine/kernelbase.dll.so
Using emulated /home/pi/wine/lib/wine/mscoree.dll.so
Using emulated /home/pi/wine/lib/wine/dbghelp.dll.so
Using emulated /home/pi/wine/lib/wine/ucrtbase.dll.so
Using emulated /home/pi/wine/lib/wine/shell32.dll.so
Using emulated /home/pi/wine/lib/wine/shlwapi.dll.so
Using emulated /home/pi/wine/lib/wine/shcore.dll.so
Using emulated /home/pi/wine/lib/wine/user32.dll.so
Using emulated /home/pi/wine/lib/wine/setupapi.dll.so
Using emulated /home/pi/wine/lib/wine/version.dll.so
Using emulated /home/pi/wine/lib/wine/advapi32.dll.so
Using emulated /home/pi/wine/lib/wine/sechost.dll.so
Using emulated /home/pi/wine/lib/wine/rpcrt4.dll.so
Using emulated /home/pi/wine/lib/wine/gdi32.dll.so
Using emulated /home/pi/wine/lib/wine/ole32.dll.so
Using native(wrapped) libncurses.so.6
Using native(wrapped) libtinfo.so.6
Using native(wrapped) libfreetype.so.6
Using native(wrapped) libfontconfig.so.1
Using emulated /home/pi/wine/lib/wine/imm32.dll.so
Using emulated /home/pi/wine/lib/wine/bcrypt.dll.so
Using emulated /home/pi/wine/lib/wine/ws2_32.dll.so
Using emulated /home/pi/wine/lib/wine/winmm.dll.so
Using emulated /home/pi/wine/lib/wine/msacm32.dll.so
Using emulated /home/pi/wine/lib/wine/oleaut32.dll.so
Using emulated /home/pi/wine/lib/wine/api-ms-win-crt-conio-l1-1-0.dll.so
Using emulated /home/pi/wine/lib/wine/api-ms-win-crt-convert-l1-1-0.dll.so
Using emulated /home/pi/wine/lib/wine/api-ms-win-crt-filesystem-l1-1-0.dll.so
Using emulated /home/pi/wine/lib/wine/api-ms-win-crt-heap-l1-1-0.dll.so
Using emulated /home/pi/wine/lib/wine/api-ms-win-crt-locale-l1-1-0.dll.so
Using emulated /home/pi/wine/lib/wine/api-ms-win-crt-math-l1-1-0.dll.so
Using emulated /home/pi/wine/lib/wine/api-ms-win-crt-private-l1-1-0.dll.so
Using emulated /home/pi/wine/lib/wine/api-ms-win-crt-runtime-l1-1-0.dll.so
Using emulated /home/pi/wine/lib/wine/api-ms-win-crt-stdio-l1-1-0.dll.so
Using emulated /home/pi/wine/lib/wine/api-ms-win-crt-string-l1-1-0.dll.so
Using emulated /home/pi/wine/lib/wine/api-ms-win-crt-time-l1-1-0.dll.so
Using emulated /home/pi/wine/lib/wine/api-ms-win-crt-utility-l1-1-0.dll.so
Using emulated /home/pi/wine/lib/wine/api-ms-win-crt-process-l1-1-0.dll.so
Using emulated /home/pi/wine/lib/wine/api-ms-win-crt-environment-l1-1-0.dll.so
Using native(wrapped) libgnutls.so.30
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
Using emulated /home/pi/wine/lib/wine/fusion.dll.so
Using emulated /home/pi/wine/lib/wine/winex11.drv.so
Using native(wrapped) libXext.so.6
Using native(wrapped) libX11.so.6
Using native(wrapped) libxcb.so.1
Using native(wrapped) libXau.so.6
Using native(wrapped) libXdmcp.so.6
Using native(wrapped) libXinerama.so.1
Using native(wrapped) libXxf86vm.so.1
Using native(wrapped) libXrender.so.1
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libXi.so.6
Using native(wrapped) libXcursor.so.1

Unhandled Exception:
System.NotImplementedException: The method or operation is not implemented.
  at <Module>.Main (System.String[] ) [0x0003b] in <793c07f6b421409994e4dd9c2c49ec92>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NotImplementedException: The method or operation is not implemented.
  at <Module>.Main (System.String[] ) [0x0003b] in <793c07f6b421409994e4dd9c2c49ec92>:0 

hippy
Posts: 8902
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: How to run Box86 on Raspberry pi 4

Wed Sep 30, 2020 2:24 pm

Probably best to keep to one thread. My comments are on the other thread.

Return to “General discussion”