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.
    • F
      Folly @roslof
      last edited by

      @roslof said in Box86 and Wine on RPi4:

      "Emperor of the Fading Suns".

      Nice pictures, looks very good !

      1 Reply Last reply Reply Quote 0
      • roslofR
        roslof @George
        last edited by

        @george said in Box86 and Wine on RPi4:

        I rechecked the logs and found that DSound was being used for PCM audio. I used Winetricks to install the Windows DSound DLL and so far the audio issues no longer occur.

        Had to dig to find this little nugget. Several of my games played audio, but some SFX were missing. This solved the problem. Folks who want to try this will have to be patient. Wintricks will show "Running..." as it downloads a 100MB file. Took about 20 minutes for me. Be patient.

        1 Reply Last reply Reply Quote 1
        • G
          George @roslof
          last edited by

          @roslof wow that is really cool! Congrats on getting it to run! Looks like an interesting game, I'll have to check it out.

          As you've found out, there's a lot of little nuggets that you need to get through in order to get a game working sometimes. The info on WineDB (https://appdb.winehq.org/objectManager.php?sClass=version&iId=7324) doesn't include any reference to DSound, but it's possible that it works just fine on an x86 machine with Wine.

          I'm trying to document all the issues I've seen getting games to run with this thread, so at least they will reside somewhere. Hopefully they will be searchable with Google and help someone out.

          Which reminds me... not sure if I mentioned the following:

          • The issues I saw with Wine not terminating properly have been resolved by some recent commits in Box86. Sweet!
          • Other folks have seen issues with Mesa 21 and there are a couple of tickets with some more information on it:
            • https://gitlab.freedesktop.org/mesa/mesa/-/issues/3969
            • https://bugs.winehq.org/show_bug.cgi?id=50859
          • I have a branch on my external repository (https://github.com/GeorgeMcMullen/rp-box86wine/tree/emulator) called "emulator" which installed Wine as an emulator instead of a port. I'll have to add some documentation on how to add "roms", which can be either shell scripts or conf files. Works pretty well, except for the fact that there are no themes for Wine so it's a bit hard to navigate unless you make the changes yourself. My favorite theme is the Pixel theme, so I've forked it and made my own changes. (https://github.com/GeorgeMcMullen/es-theme-pixel/tree/rp-box86wine)

          I'm glad folks are getting some use out of this!

          - George

          C 1 Reply Last reply Reply Quote 1
          • C
            chado21 @George
            last edited by

            @george so i have a casino slot game im trying to setup. been following along and am now stuck on the box86 install. its asking for ver 4.7.7... where do i find that? cant seem to locate it or find any resource on obtaining it....

            love this idea!!

            G 1 Reply Last reply Reply Quote 0
            • G
              George @chado21
              last edited by

              @chado21 That may mean that you need a more recent version of the RetroPie Setup scripts, but I can't be sure without more details. Can you share a screenshot?

              C 1 Reply Last reply Reply Quote 0
              • C
                chado21 @George
                last edited by

                @george i will today when i get home. I have 4.7.2, and did the uprade like the forum said. i even went to retroipe website and looked for 4.7.7. I have the scripts in retropie setup...even did the first part. but when i get to box86 it just says need 4.7.7

                G 1 Reply Last reply Reply Quote 0
                • G
                  George @chado21
                  last edited by

                  @chado21 probably what you'll need to do is run RetroPie Setup and then hit S for Update RetroPie-Setup script.

                  8984e53e-9746-40d7-b325-535785fd2658-image.png

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    chado21 @George
                    last edited by

                    @george did that just now, it shows 4.7.2 . then says script up to date. just clicked the "update" now its running an update... not sure if its for 4.7.7 or just updating the OS...

                    C G 2 Replies Last reply Reply Quote 0
                    • C
                      chado21 @chado21
                      last edited by

                      @chado21 c77dc7f4-5456-4512-8f81-64b12994ebce-image.png same song and dance.... 4.7.2

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        George @chado21
                        last edited by

                        @chado21 That's odd. Perhaps there's an error while it tries to perform the git update?

                        If you SSH into the Pi, try the following:

                        cd ~/Retropie-Setup
                        git fetch origin
                        git pull origin
                        sudo ./retropie-setup.sh
                        

                        Also, can you send us the output of uname -a as well.

                        - George

                        1 Reply Last reply Reply Quote 0
                        • G
                          George @chado21
                          last edited by

                          @chado21 The box86 script does check to make sure that RetroPie is on version 4.7.7 or later. This is because 4.7.7 introduced some new function calls for dependency checks, which is used by the Box86 script.

                          C 1 Reply Last reply Reply Quote 0
                          • C
                            chado21 @George
                            last edited by

                            @george 0eab2038-678d-4167-9d06-c07a321b5a68-image.png

                            still seems to be the same. i wish i knew what to fix....

                            G 1 Reply Last reply Reply Quote 0
                            • G
                              George @chado21
                              last edited by

                              @chado21 Ok, you're on the right kernel version, which is a good sign. But what about the output of the other commands I mentioned? Can you send that as well?

                              - George

                              1 Reply Last reply Reply Quote 0
                              • T
                                TedMaul
                                last edited by TedMaul

                                Hello, I've been persevering with trying to run through Wine explorer (still can't see how to make shortcuts for ES to run directly...). I've got Sonic SMS 1 Remake working (great fun btw!) and audio is fine but gameplay is very laggy. Are there any options for speeding up, if that isn't a silly question? Cheers.

                                M G 2 Replies Last reply Reply Quote 0
                                • M
                                  mth75 @TedMaul
                                  last edited by

                                  @tedmaul

                                  Overclocking is your best bet.

                                  1 Reply Last reply Reply Quote 1
                                  • G
                                    George @TedMaul
                                    last edited by

                                    @tedmaul If there are any options in the game to change the screen resolution, that would be something to try as well, though if I remember correctly, you might have an issue doing that through Wine Desktop.

                                    Are you using Wine through the ES Ports menu, or did you update to the branch where I added Wine as an emulator?

                                    T 1 Reply Last reply Reply Quote 0
                                    • T
                                      TedMaul @George
                                      last edited by

                                      I don't have any active cooling so not sure if I'll go for overclocking just yet... it already feels too hot half the time in my standard Pi case...

                                      @george I'm using it through the Ports menu at the moment - if I want to update should I get rid of what I've already got, or will the setup take care of it?

                                      Thanks both for replying btw!

                                      G 1 Reply Last reply Reply Quote 0
                                      • G
                                        George @TedMaul
                                        last edited by George

                                        @tedmaul The only major change is that Wine is listed as an emulator instead of as a port. That said, you'd probably need to update your themes for it to be usable also. I've made an entry for the Pixel theme (which is my favorite) on my own fork. You should be able to get it with the following:

                                        git clone --branch rp-box86wine https://github.com/GeorgeMcMullen/es-theme-pixel /home/pi/.emulationstation/themes/es-theme-pixel 
                                        

                                        The benefit to using Wine as an Emulator in EmulationStation is that you don't need a script that would essentially install another script that would run your game.

                                        I also did update the Box86 script so that it pulls from Box86's master branch. There are several performance improvements that are quite amazing.

                                        Hope that helps!

                                        T 2 Replies Last reply Reply Quote 0
                                        • V
                                          VictimRLSH
                                          last edited by

                                          The biggest problem I have trying to get things to run on Box86 (or even compile if that is needed) is I can't install i386 architecture libraries because apt-get and all the package managers won't allow them because the current architecture doesn't support them (but box86 will if you point them out to it)

                                          Is there an install script to install x86 architecture libraries so box86 can use them?

                                          System Config: Retropie 4.4 with full desktop, RPi 3B, 256gb SD, 5v 2.1A 5,200 mAH USB battery. EasyMSX controller mounted with Pimoroni Hyperpixel 4 (non touch). Also running 4.6 on a 4gb Pi 4 serving as my primary desktop computer now.

                                          G 1 Reply Last reply Reply Quote 0
                                          • G
                                            George @VictimRLSH
                                            last edited by

                                            @victimrlsh You shouldn't need i386 architecture to compile box86. You might want to try the Box86 Discord though if you're seeing a particular issue compiling Box86. https://discord.gg/Fh8sjmu

                                            V 1 Reply Last reply Reply Quote 0
                                            • First post
                                              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.