• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login

Box86 and Wine on RPi4

Scheduled Pinned Locked Moved Ideas and Development
box86wineqemux86windows
475 Posts 40 Posters 237.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z
    zennit
    last edited by 14 Feb 2021, 09:42

    Has anyone set this up with twisteros? Essentially my understanding is it has all the box86 wine etc in place so I’ve just created a simple script in the ports folder “wine game.exe” but I’m getting errors that seem the relate to x server and looking at @George scripts he’s got some dependencies and references in the ports script to handle that. I believe twister uses xfce, so my question is what additional dependencies do I need and what do I need to add to my ports script to resolve the x server issues? Really great work here thanks for creating this thread!

    1 Reply Last reply Reply Quote 0
    • T
      TedMaul
      last edited by 14 Feb 2021, 13:18

      Would anyone perhaps be willing to post (brief) steps on how to get this working? I've tried compiling / installing scripts from git before and have a roughly 15% success rate, probably due to my own ineptitude. Any pointers would be gratefully received! Thanks in advance.

      M F 2 Replies Last reply 14 Feb 2021, 14:24 Reply Quote 0
      • M
        mth75 @TedMaul
        last edited by mth75 14 Feb 2021, 14:24

        @tedmaul said in Box86 and Wine on RPi4:

        Would anyone perhaps be willing to post (brief) steps on how to get this working? I've tried compiling / installing scripts from git before and have a roughly 15% success rate, probably due to my own ineptitude. Any pointers would be gratefully received! Thanks in advance.

        Scroll back in this topic ... it's all explained.

        https://retropie.org.uk/forum/post/247936

        1 Reply Last reply Reply Quote 0
        • F
          Folly @TedMaul
          last edited by Folly 14 Feb 2021, 15:57

          @tedmaul said in Box86 and Wine on RPi4:

          Would anyone perhaps be willing to post (brief) steps on how to get this working? I've tried compiling / installing scripts from git before and have a roughly 15% success rate, probably due to my own ineptitude. Any pointers would be gratefully received! Thanks in advance.

          You should be able to use the wget commands in this post :
          https://retropie.org.uk/forum/topic/28528/box86-and-wine-on-rpi4/109
          And then install in the RetroPie-setup the same order.

          If they don't work it's because of the RetroPie version.
          This is what we did to get around the checks and install it anyway :
          https://retropie.org.uk/forum/topic/28528/box86-and-wine-on-rpi4/129
          @George Is still busy with fixing this, I think.

          If above is working, then you can also install these games ( I just fixed these for RetroPie version 4.7.7) :

          wget -nv -O /home/pi/RetroPie-Setup/scriptmodules/ports/box86winegooniesremake.sh https://raw.githubusercontent.com/FollyMaddy/RetroPie-Share/main/00-scriptmodules-00/ports/box86winegooniesremake.sh
          wget -nv -O /home/pi/RetroPie-Setup/scriptmodules/ports/box86winemogremake.sh https://raw.githubusercontent.com/FollyMaddy/RetroPie-Share/main/00-scriptmodules-00/ports/box86winemogremake.sh
          wget -nv -O /home/pi/RetroPie-Setup/scriptmodules/ports/box86wineroadfighterremake.sh https://raw.githubusercontent.com/FollyMaddy/RetroPie-Share/main/00-scriptmodules-00/ports/box86wineroadfighterremake.sh
          S T 2 Replies Last reply 14 Feb 2021, 19:16 Reply Quote 0
          • S
            shavecat @Folly
            last edited by 14 Feb 2021, 19:16

            So i tried unistall and install box86andwine
            And run again Heroes Of Might And Magic 3
            but still crushes in diffrenet areas ...
            someones had luck with that ?

            F 1 Reply Last reply 14 Feb 2021, 19:33 Reply Quote 0
            • F
              Folly @shavecat
              last edited by 14 Feb 2021, 19:33

              @shavecat said in Box86 and Wine on RPi4:

              So i tried unistall and install box86andwine
              And run again Heroes Of Might And Magic 3
              but still crushes in diffrenet areas ...
              someones had luck with that ?

              To find out what is wrong you have to check your logs in :
              /home/pi/RetroPie-Setup/logs
              Unzip your latest logs and read the logs with a texteditor.

              S 1 Reply Last reply 14 Feb 2021, 19:40 Reply Quote 0
              • S
                shavecat @Folly
                last edited by 14 Feb 2021, 19:40

                @folly
                It just geting forzen ...
                but i will check it thanks :)

                F 1 Reply Last reply 14 Feb 2021, 20:44 Reply Quote 0
                • T
                  TedMaul @Folly
                  last edited by 14 Feb 2021, 19:49

                  @folly @mth75 thanks both, I'll give it a go!

                  1 Reply Last reply Reply Quote 0
                  • F
                    Folly @shavecat
                    last edited by 14 Feb 2021, 20:44

                    @shavecat said in Box86 and Wine on RPi4:

                    @folly
                    It just geting forzen ...
                    but i will check it thanks :)

                    Do you have a good internet connection and is your pi cool enough ?

                    S 1 Reply Last reply 15 Feb 2021, 09:07 Reply Quote 0
                    • S
                      shavecat @Folly
                      last edited by 15 Feb 2021, 09:07

                      @folly
                      Yes
                      The Temp' are fine...
                      and its just this game getting frozen , but i can still putty the pi .

                      F 1 Reply Last reply 15 Feb 2021, 09:42 Reply Quote 0
                      • F
                        Folly @shavecat
                        last edited by Folly 15 Feb 2021, 09:42

                        @shavecat said in Box86 and Wine on RPi4:

                        @folly
                        Yes
                        The Temp' are fine...
                        and its just this game getting frozen , but i can still putty the pi .

                        So your box86wine install seems ok, but your game doesn't work.
                        It could be due to the updated versions of box86 and wine.
                        I think you will have to wait untill it is all updated to newer versions and try again.

                        S 1 Reply Last reply 15 Feb 2021, 10:06 Reply Quote 1
                        • S
                          shavecat @Folly
                          last edited by 15 Feb 2021, 10:06

                          @folly
                          Yes like commandos 1/2 runs pretty good ;)
                          Thanks <3

                          M 1 Reply Last reply 15 Feb 2021, 13:10 Reply Quote 0
                          • M
                            mth75 @shavecat
                            last edited by 15 Feb 2021, 13:10

                            @shavecat said in Box86 and Wine on RPi4:

                            Yes like commandos 1/2 runs pretty good ;)
                            Thanks <3

                            and with wine 6.1/6.2-devel and Mesa 20.3.4 they would run even better:-). A lot of games will not work (or without problems) ... but i'm fairly sure this is a matter of time. Determining which ones work is the nice thing!

                            1 Reply Last reply Reply Quote 1
                            • M
                              mitu Global Moderator
                              last edited by mitu 15 Feb 2021, 13:17

                              Wine maintains an application compatibility database at https://appdb.winehq.org/, might be worth looking there first to see if a game/application has been reported as working. I think Box86 has a similar list.

                              1 Reply Last reply Reply Quote 0
                              • G
                                George
                                last edited by 15 Feb 2021, 16:17

                                Hi all,

                                I've updated my pull request to include the changes required for RetroPie 4.7.7.

                                I have not switched Timidity to FluidSynth yet. I'm still experimenting with that. Some notes:

                                • Timidity seems to sound a bit better than FluidSynth on the games I've tried.
                                • DOSbox and a couple of other things seem to use Timidity vs. FluidSynth, but they don't use Timidity in daemon mode.
                                • I tried some optimization flags with Timidity. I didn't see much of a change in performance, thought I'd really have to check to see if any buffer underruns were occurring.
                                • Even with the optimization flags for Timidity, the daemon still messed up the audio after about 24 hours. To test this, just play a game like Space Cadet 3D Pinball, with music enabled. Then exit the game and leave your Raspberry Pi on. A day or so later, come back and try Space Cadet again. Sometimes no sound will come out, other times choppy sound effects will play, but the MIDI music will not play at all.
                                • So running Timidity in Daemon mode is going to go out for sure. But that will mean that launch scripts will have to start / stop a MIDI synth themselves. This requires a bit more investigation.

                                In other news, I created a new repo that can be used with RetroPie's new external repo capabilities. That way, you can get the latest scripts without worry of messing with your RetroPie directory. It's located at: https://github.com/GeorgeMcMullen/rp-box86wine and in order to use it, just to the following:

                                git clone https://github.com/GeorgeMcMullen/rp-box86wine.git /home/pi/RetroPie-Setup/ext/rp-box86wine/
                                

                                Additional instructions are in the repo. I'll be keeping this repo in sync with the pull request. The main branch just uses the most recent stable releases, as the three different packages are all under very active development. The versions are currently as follows:

                                • Mesa: 20.3.4
                                • Box86: 0.2.0
                                • Wine: 6.0

                                I may create a separate branch that uses the absolute latest from each. Not sure yet though.

                                Hope this helps some folks.

                                - George

                                1 Reply Last reply Reply Quote 5
                                • G
                                  George
                                  last edited by George 19 Feb 2021, 03:00

                                  I've been thinking about putting together a script that would facilitate the creation of ports. It would work by scanning for Wine Prefixes (Bottles) in a directory (like /home/pi/RetroPie/roms/Wine/) and then configuring ports using a single master Wine ports script with parameters for the Wine Prefix. It might make management of Wine based games a little easier, and it could also make managing MIDI a little easier (DOSbox starts/stops the Timidity when launching/exiting).

                                  Would be interested in some feedback on the following challenges.

                                  • If I'm not mistaken, even with a Wine Prefix set, there doesn't seem to be a way to automatically launch a specific program unless you specify it on the command line.
                                  • Wine doesn't seem to respect anything in the "Startup" folder in the start menu. Even if you launch Wine Desktop, the items in Programs / Startup will not get launched.
                                  • There doesn't seem to be a way in the RetroPie-Setup helpers to remove a port. It might be helpful if you are experimenting with different Wine Prefixes and continually add/remove folders.

                                  An alternative would be to use "conf" files, which is something that DOSbox seems to do. That way, any time you wanted to add a new app, you just create a simple conf file in /home/pi/RetroPie/roms/wine/ that would set some variables like the Wine Prefix, launch folder, Windows executable file, and even whether or not to launch MIDI.

                                  The benefit of the alternative is that you wouldn't necessarily need multiple Wine prefixes for each game, but you'd have the flexibility to use them if you want. Also, you'd be able to add/remove conf files like you manage your roms. Of course, you'd still have your Wine prefixes to deal with though.

                                  I guess another benefit to the alternative would be that Wine (and all Wine based apps) could show up as an emulator vs. a port. The downside might be that people would have to create their own conf files.

                                  Would love to hear people's thoughts.

                                  Thanks!

                                  - George

                                  F M E 3 Replies Last reply 19 Feb 2021, 07:31 Reply Quote 1
                                  • F
                                    Folly @George
                                    last edited by Folly 19 Feb 2021, 07:31

                                    Great idea @George ,

                                    Then you will be doing somewhat the same as wat I am doing here :
                                    https://retropie.org.uk/forum/topic/29682/development-of-module-script-generator-for-lr-mess-and-mame-standalone
                                    Perhaps you can borrow some code / ideas ;-)

                                    Good luck, curious on what you will be making.

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      mth75 @George
                                      last edited by 19 Feb 2021, 12:45

                                      @george said in Box86 and Wine on RPi4:

                                      An alternative would be to use "conf" files, which is something that DOSbox seems to do. That way, any time you wanted to add a new app, you just create a simple conf file in /home/pi/RetroPie/roms/wine/ that would set some variables like the Wine Prefix, launch folder, Windows executable file, and even whether or not to launch MIDI.

                                      I believe this is the only solution (hence I already instaledl all prefixes in /rom/box86/box86data ....)

                                      1 Reply Last reply Reply Quote 0
                                      • E
                                        ExarKunIv @George
                                        last edited by 19 Feb 2021, 13:49

                                        @george im open with both really. since i already did a bunch of "conf" files on my dosbox that way is not that different,
                                        granted i have not messed with box86 yet.
                                        and with being said your script way is nice too for the people who have not messed with it yet. like me :)

                                        RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                        RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                        Maintainer of RetroPie-Extra .

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          TedMaul
                                          last edited by TedMaul 20 Feb 2021, 11:58

                                          I've been working my way through this topic very slowly and am so impressed at the progress that has been made in such a short space of time!

                                          Personally, thanks to the pointers last week, I've managed to install all the relevant applications and can now run Wine from the ES Ports menu (but weirdly, Winetricks just hangs with a black screen and mouse pointer, but that's another matter!)

                                          Through Wine Explorer I have managed to get Captain Claw to work, albeit in a small window in the top-left quarter of the screen. Any attempts to launch from ES have failed though - is there an outline for a script that would work for this? I've attempted a few examples from further up in the topic (amending for my own folder setup naturally) for example:

                                          #!/bin/bash
                                          xset -dpms s off s noblank
                                          cd "/home/pi/.wine/drive_c/Program Files/claw"
                                          matchbox-window-manager &
                                          WINDEBUG=-all LD_LIBRARY_PATH="/opt/retropie/supplementary/mesa/lib/" setarch linux32 -L /opt/retropie/ports/wine/bin/wine '/home/pi/.wine/drive_c/Program Files/claw/claw.exe' -fullscreen
                                          $

                                          I'm now at a dead-end again though and any help would be gratefully received.

                                          Thanks in advance again - this has some exciting potential and it is now my new RetroPie obsession!

                                          F S M 3 Replies Last reply 20 Feb 2021, 12:15 Reply Quote 1
                                          182 out of 475
                                          • First post
                                            182/475
                                            Last post

                                          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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received