Box86 and Wine on RPi4
-
Indeed, it would be nice if you could add winetricks.
I will have a look at those channels you mentioned.
-
So with all the posts I kind of got lost on the actual instructions to set this up. I need to update Retropie, then update Retropie setup script, then install Box86, Wine, and Mesa?
And where do I put the games after that?
-
Are you willing to experiment ?
Can you copy and paste commands in the terminal and do you have some knowledge of terminal commands ?
If you want to add your own software, then you are basically on your own to install.
Because everything is quite experimental up till now.
So you have to know a lot about :- The terminal
- How retropie works
- How wine works
- How scriptmodules work
- ....
-
@george said in Box86 and Wine on RPi4:
It seems that Wine Tricks is a valuable part of the Wine experience, even on desktop computers. I'm thinking of adding it as part of the Wine install script. What does everyone think about that?
Hi George, for those who will make installs on their RetroPie's, Winetricks would be mandatory. But like @Folly says, you really a need kind of staging or development install (in essence to make wine-prefixes).
-
Heroes of Might and Magic 3 *
Not playable always freeze in different places :( -
Some updates. I've updated my repo with the latest scripts for Mesa, Box86, Wine, and Space Cadet. I've removed Space Cadet from the branch that I'm doing my pull request with, but as I mentioned before, I have a new branch that it is available on.
https://github.com/GeorgeMcMullen/RetroPie-Setup/tree/spacecadet
Everything has been updated on that branch as well, and I will continue to sync the branches as development continues.
So what is new:
- Mesa is updated to v20.3.3
- Box86 is updated to v0.2.0
- Wine is updated to v6.0 Stable (also side note - for some reason their platform code changed from "buster" to "buster-1". I have no idea why, but I added some code to make that easier to change).
- Winetricks is now installed as part of installing Wine. Because of the simple window manager being used though, the Winetricks GUI only shows up on the bottom half of my screen. I'm not sure if there is any way to change that. It seems to work well though and can access my default Wine Prefix.
- Space Cadet 3D Pinball now has a patch in it to enable MIDI music correctly!
I should note that while I've tested everything out with my current install, I have yet to do a test with a completely fresh install. So, as always, be careful.
If you don't want to fiddle with moving your RetroPie-Setup directory in order to test these, you could do the following instead.
wget -nv -O /home/pi/RetroPie-Setup/scriptmodules/supplementary/mesa.sh https://raw.githubusercontent.com/GeorgeMcMullen/RetroPie-Setup/spacecadet/scriptmodules/supplementary/mesa.sh wget -nv -O /home/pi/RetroPie-Setup/scriptmodules/emulators/box86.sh https://raw.githubusercontent.com/GeorgeMcMullen/RetroPie-Setup/spacecadet/scriptmodules/emulators/box86.sh wget -nv -O /home/pi/RetroPie-Setup/scriptmodules/ports/wine.sh https://raw.githubusercontent.com/GeorgeMcMullen/RetroPie-Setup/spacecadet/scriptmodules/ports/wine.sh wget -nv -O /home/pi/RetroPie-Setup/scriptmodules/ports/spacecadet3dpinball.sh https://raw.githubusercontent.com/GeorgeMcMullen/RetroPie-Setup/spacecadet/scriptmodules/ports/spacecadet3dpinball.sh
This basically just uses wget to retrieve the 4 files and then puts them directly where they need to go. Hope that helps.
Enjoy!
- George
-
*Solved
-
@george , Great work again !
I installed your scripts on a fresh OS.
Everything installed faster now.
Wine configuration was ok :- I also could install mono and gecko while configurating.
- Now the explorer works like it should
- Now the desktop works like it should, install/add programs works too now
Installed spacecadet, music was ok, but there were no sounds.
Tested both :- music and sound on
- music off, sound on
Then tested the Remakes, F1Spirit doesn't work, the others had no sound.
I was able to fix all sound issues by selecting hdmi-1 or headphone-0 again, in raspi-config.
Seems my audio suffers from updates :
https://retropie.org.uk/forum/topic/26628/audio-issues-after-latest-raspbian-updates-june-2020Will try some more stuff.
-
@folly
Could It be possible to play on Pi4 games like Delta Force and Commando 1 and 2 with Box86 and Wine? I started to read this post and It's very interesting! -
@dteam said in Box86 and Wine on RPi4:
@folly
Could It be possible to play on Pi4 games like Delta Force and Commando 1 and 2 with Box86 and Wine? I started to read this post and It's very interesting!Screenshots also in this topic :-). Commando's 2 also works but with sound (wine) issues.
-
@shavecat said in Box86 and Wine on RPi4:
Heroes of Might and Magic 3 *
Not playable always freeze in different places :(If you have something working, would you be so kind to post a reply (with screenshot if possible :-) in:
-
Can i install a DirectX or somting like that ?
That will maybe fix my age of emperies 2
and heroes 3 ? -
@shavecat you might be able to do it using Winetricks. Alternatively, you could take a look at one of these guides.
- https://www.dedoimedo.com/games/wine-directx.html
- https://web.archive.org/web/20100417001826/http://www.wine-reviews.net/wine-reviews/microsoft/directx-90c-march-2008-redistributable-on-linux-with-wine.html
This is also a link to the redistributable file from Microsoft.
https://www.microsoft.com/en-us/download/confirmation.aspx?id=8109
I did it a while back, but found it wasn't needed for my purposes. Your results may vary.
- George
-
-
I have a file Winetricks.sh
but i dosent work just give my back to the emulation station :|
ideas ? :) -
@shavecat It's most likely because it either needs to be run from the command line (for just commands) or from within an X-Windows environment (for a full GUI). My updated Wine script module installs Winetricks as well as a ports script which will show up in Ports and launch the Winetricks GUI within X-Windows.
-
I installed your box86/wine multiple times on an updated fresh Raspberry pi OS with Desktop.
After the install everything works, but somehow the OS becomes slow and everytime HDMI audio breaks after a few days.
Could this have something to do with the box86/wine install ?
-
Hi @folly , thanks for letting me know. I've also experienced an audio issue after a few days, but haven't had the chance to experiment with it yet. I'll test out what happens when I reboot and then don't launch Wine and see if the audio issues persist after a few days.
As for the system slowing down, how are you seeing this? Is it from playing a game or something else?
From what I can tell, wine isn't running in the background, the graphics drivers are separate, and box86 is not running either. It could be something with binfmt, since that will intercept what you're trying to execute and then send it to the appropriate place, but that is a standard package anyone can install themselves. Maybe it's Timidity (for midi), which could also explain audio issues.
If I find anything out, I'll let you know.
- George
-
@george said in Box86 and Wine on RPi4:
Hi @folly , thanks for letting me know. I've also experienced an audio issue after a few days, but haven't had the chance to experiment with it yet. I'll test out what happens when I reboot and then don't launch Wine and see if the audio issues persist after a few days.
As for the system slowing down, how are you seeing this? Is it from playing a game or something else?
Just the normal use, opening text files and using the webbrowser.
Also experiencing freezes.
I had the issues with booting from an sd card and from an usb stick.
Now I use an usb harddrive for booting, without box86/wine and it's working fine.
If I have time I will try it on another usb harddrive to see what will happen.From what I can tell, wine isn't running in the background, the graphics drivers are separate, and box86 is not running either. It could be something with binfmt, since that will intercept what you're trying to execute and then send it to the appropriate place, but that is a standard package anyone can install themselves. Maybe it's Timidity (for midi), which could also explain audio issues.
I tried beebem. Beebem works but the sound has an echo.
This can be related to beebem though.
But it could also be an indication of the problem.
First time I ran Beebem I had audio from hdmi.
After reboot I had no sound when I ran Beebem, noticed later that AVjack was selected and hdmi was gone in the volume settings.
I had a similar problem when I tried pinball, only music from hdmi and no sounds.
After reboot hdmi gone.
I don't know how I can detect where it's going wrong.
But indeed. it could be Timidity, as you said.Seems there have been similar problems with hdmi audio last december when updating the OS.
Because there have been changes in the OS for that matter.
But since mine is working good after the latest updates and after a reboot.
It seems not related to the OS update.Also switched raspberry pi's to see if it was the raspberry pi.
Same result.Nevertheless it would be great if Beebem could run.
Seems many people want this in retropie.
There is a good chance we can build a module script for that emulator.If I find anything out, I'll let you know.
Thanks, curious what you will find/experience ;-)
- George
-
@george said in Box86 and Wine on RPi4:
As for the system slowing down, how are you seeing this? Is it from playing a game or something else?
Could it be caused by cpu throttling?
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.