Box86 and Wine on RPi4
-
@george So it seems in the proper location it's this:-
pi@retropie:~ $ dpkg -l | grep libgl1-mesa ii libgl1-mesa-dev:armhf 19.3.2-1~bpo10+1~rpt3 armhf transitional dummy package ii libgl1-mesa-dri:armhf 19.3.2-1~bpo10+1~rpt3 armhf free implementation of the OpenGL API -- DRI modules
So that's 19.3.2 right?
-
@wodak those are cool videos! Thanks for making them!
- George
-
@retropieuser555 Yes, that seems to be the default install. I'll need to check things out again.
-
@george hello . So I have been playing with Box86 as well. Killing my head trying to launch MUGEN from retropie. Have you seen lutris? A frontend for box86 games, steam and Linux games . It handles alot 9f script for you as launch games with lutris=lutris game id =1.
I tried to install your packages on twister os with no success.I was able to get your packages in retropie packages menu. But when install its says install box86 first go to install box86 script says install wine and so on.
Could the fact that twister os has box86 already be causing issues ?
Gonna try from fresh raspi os and retropie .
But no success with twister as of now.
Trying to build a mugen image this is my last step launching from retropie .
Have been testing mugens and other games. I am very impressed with current box86 and wine . -
Thanks @troopaking I've played a bit with Lutris and Twister OS, but not as much as I would probably like to. They are both great. My main interest with Raspberry PI's is emulation, so usually for me RetroPie is the way to go.
With regards to the problems you are seeing, it might be a conflict of sorts with Twister OS, as it will have a more recent version of Mesa and Box86 already installed. Perhaps there is a way that I can detect whether someone has already installed those separately, as they typically get installed in a system location, vs. the typical RetroPie location of
/opt/retropie/
. I've put them in/opt/retropie
because that's where everything else with RetroPie goes. I might have to double check that though.Hopefully the Raspberry Pi Foundation will update Mesa in their standard builds. If that happens, doing the special install of Mesa in the future won't be necessary. That's one of the deal breakers from getting this into the official RetroPie distribution. It's too much too support and too many moving pieces.
There's a very slim chance there might be another issue with RetroPie on TwisterOS if your RetroPie Setup script isn't updated to the most recent versions, or if you are updated to the most recent versions, but the scripts are old. It's a pretty slim chance though. You can check by running RetroPie setup and making sure that the version says at least 4.7.7.
I've never played with MUGEN, but it looks pretty cool. Closed source and possibly abandonware though? Might be difficult to get running. Have you tried it on an X86 Linux PC with Wine? If that works, next step would be to try with TwisterOS via Box86 and Wine (no RetroPie).
- George
-
Fixed issues see below.
-
UPDATE launched skifree just fine with following "how to" for easy reference.
All taken from above thread and Georges Github. ALL CREDIT TO HIM AND OTHERS IN THREAD.
UPDATE. INSTALL PIXEL DESKTOP FIRST THEN WILL WORK FINE WITH DESKTOP INSTALLED
1.Download retropie os burn to sd card put in pi
2.update with
sudo apt-get update
3.Install Georges retropi setup extras
git clone --branch emulator https://github.com/GeorgeMcMullen/rp-box86wine /home/pi/RetroPie-Setup/ext/rp-box86wineemu/
4.Run and Update RetroPie-Setup
Run retropie setup update. After update you should see a new subsection in "dependencies" and "experimental" with the scripts in them. They must be run in order and will produce an error if you try to install them out of order. Launch RetroPie Setup, go to "Manage Packages" (P) and then run the scripts as follows:
dependencies/mesa
experimental/box86
experimental/wine
5.Move game fies to /home/RetroPie/roms/wine/Files
This can be done many ways . SSH, midnight commanderto name a few.
6.Two options for making game script (I used .conf)
Option 1.
Create a file /home/pi/RetroPie/roms/wine/yourgame.conf containing the following:
DIRECTORY=/home/pi/RetroPie/roms/wine/Files/yourgame/
PROGRAM=/home/pi/RetroPie/roms/wine/Files/yourgame/gamelaunch.EXE
OPTIONS=
Option 2.
Use the shell script method. Create a file called: /home/pi/RetroPie/roms/wine/yourgame.sh containing the following:
#!/bin/bash
xset -dpms s off s noblank
cd "/home/pi/RetroPie/roms/wine/Files/yourgame/"
matchbox-window-manager &
WINEDEBUG=-all LD_LIBRARY_PATH="/opt/retropie/supplementary/mesa/lib/" setarch linux32 -L /opt/retropie/emulators/wine/bin/wine '/home/pi/RetroPie/roms/wine/Files/yourgame/gamelaunch.EXE'After you've created either of these files, you'll have to restart Emulation Station in order for them to be picked up.
7.Launch game as normal retropie game.8.Enjoy
-
@george hello again.
Have you been able to install directx in wine ?
I am trying to install it today.
So far most MUGENS 1.1 run good, only a few I've tested have issues.
I am trying to install directx to use winmugen which using directx for video drivers .
Could see directx majorly affecting the compatibility game list .-Any load time difference in running .sh vs .conf?
Seems .sh has "winedebug=....." which is great but .conf file does not.
I've read using winedebug stops wine debug reports and can increase speed.
I just tested with Mugen Super fighter and DC vs marvelous noticeable differenceAny luck launching two programs this way ?
So mugen uses esc key alot Lol. Its the back key and exit. I need to map escape key to controller of course can use joy2key. But can i start this before or in junction with mugen ? -
@troopaking great to hear that you're progress with getting games to run! Well done!
-
Have you been able to install directx in wine ?
I've installed a couple of components via winetricks, like d3drm.dll. I think later versions of DirectX might still have problems. Best bet would be to try the Box86 Discord server. -
Any load time difference in running .sh vs .conf?
There really shouldn't be a big difference in running .sh vs. .conf though I haven't done any performance testing. The .conf is really just a convenience. But that does assume the variableWINEDEBUG=-all
is set. You can always add that to your .sh files by prepending it to the line with the Wine command on it. -
Any luck launching two programs this way?
The .sh files are probably your best bet for running multiple programs. Perhaps by adding joy2key as the first line in your script? Maybe with & at the end to make sure it runs in the background? I've never used it before.
Hope that helps!
- George
-
-
@george
Thanks for response .
Good to know knowledge on .sh vs .conf . I have had really good performance with most expected games using .conf method.I have yet to try and install directx will today . Have installed a few through winetricks as well was worried about directx compatibility.
Will also try to open qjoypad before/in junction with 2nd program in this example mugen .
I'm also still gonna try and have a desktop environment installed while using your scripts Hopefully. I was trying for a long time and failing I think cause desktop. I desktop would launch and then nothing or just fails and nothing .
Currently will not work with a desktop installed. Tested on Ubuntu, raspberry pi os, twister os and a few custom retropie builds with desktops.
None of them worked . Used retropie without desktop worked great . -
@troopaking I'm not sure what could cause the problem when a desktop is installed, except for when installing the Pixel desktop, a package called fbturbo getting installed, which is a software based renderer that overrides the hardware based rendering. Everything should still work, but it's slow. You'd be able to see it by doing a glxinfo and it will say something about LLVM Pipe based rendering. I posted on this somewhere in this forum (or this thread).
Something that might cause a problem is if RetroPie is being run from within an existing desktop environment. I don't think the system would respond very well to running X twice. I would try using the .sh method and removing the startx/matchbox line.
- George
-
@george
Thanks ill trying remove matchbox line .
Imo if it effects speed noticeably its not worth it .Also I think its just a desktop at all . For example twister has retropie as a app correct . But if you hit f4 in retropie it brings up a command line . Not a desktop so to my knowledge the desktop environment isn't open when retropie is open. So shouldn't have an effect cause not running twice.
Same result when I exited to command line in raspi os and executed retropie then file and just file script .
-
@troopaking You might also consider trying to change the matchbox line to just be:
startx &
Perhaps there is a conflict between the regular window manager and matchbox. Or maybe matchbox didn't install correctly.
- George
-
Ok i will try . I don't think it'll work though. If use startx it basically ignores second line.
I had tried it with many a script before finding this forum thread. -
Hello again ,
So i update the box86 & wine
thought it will help running CLAW (i dont wanna the openclaw but it does works prefect i wanna the movies and the music too)
/ AOE2 / jazz 2 / couple more i guess.
some games in the wine desktop with wine give me like a new screen and goes back to the wine desktop ( like claw & jazz 2).
Heroes of might and magic 3 still getting stuck after a few min' playing .
Still no luck :(((
I do have the pinball working and commandos 1 + 2 so something is good :) -
Hi fellow gamers!
Upfront I must admit, that I haven't dived into the whole "Windows emulation" so far, but I have been reading this topic on and of just out of curiosity.Now with the whole Sega Model 3 emulation on RPi4 I came up with an idea and wanted to ask you if it might work:
There is only one Sega Model 2 emulator (besides MAME, which is too demanding). It is closed source, hasn't goten an update since 2014 and only runs on windows.
Do you think it would be possible to get it to run on RPi4 with Wine or Box86? The emulator is supposed to be not too demanding (don't know, I haven't tried it yet). If that would work, the number of unplayable games on Retropie would be so much smaller!Thanks for hearing me!
-
@ecto I don't understand question.
Mame is in retropie already why not use it ?
In theory it could run in wine/box86 .I am working on getting wine to launch with a desktop installed. Currently no desktop can be installed with this script.
-
@troopaking Let me try to explain: It is true, that MAME can emulate some (not all by far) Model 2 games. But it only can so that in the latest releases, which are not feasible to run even on a Raspberry Pi 4.
The Model 2 Emulator OTOH can emulate almost the whole Library of Model 2 games but is restricted to Windows and is not in active development since 2014.I was just asking myself (and hereby you guys) if it's possible to run the (Windows only) Model 2 Emulator using Box68 or Wine and if the RPi4 might be powerful enough to pull that off in any way? By that, a lot of previously unplayable games would become playable on a (ARM) Retropie.
-
@ecto It might be possible to run Model 2 Emulator, but since it's a relatively recent WIndows program, it might not run fast enough to be playable.
With regards to MAME, I found that the more recent versions of SDL show a major performance increase making some games that were not previously playable in the latest versions of MAME play quite nicely. Here's a post I did about that.
https://retropie.org.uk/forum/topic/28362/enhanced-performance-of-mamedev-mame-in-x11
Hope that helps.
- George
-
@george Thanks for your input. That's a very interesting topic! I have Dosbox (and Dosbox-Staging) run with
XINIT
and have definitely performance gain from that, but I don't know the cause.
I will definitely look into Mame-dev at some point.What equivalent of an Intel or AMD processor would you think the RPi4 can run using Wine or Box86?
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.