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.7k 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.
    • G
      Good_Punk @honcoop91
      last edited by

      @honcoop91
      I've just added and empty LICENSE folder manually to the tmp folder... after that it worked. 😅

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

        @george
        Wine Desktop works and I can run all the game from the Startmenu->Run... they just don't work when I try to run then from the .conf files. I'll have a look at the runcommand.log later, thanks. :)

        1 Reply Last reply Reply Quote 0
        • H
          honcoop91 @Good_Punk
          last edited by

          @good_punk tried that, but for some reason the box86 owner is root instead of pi, and im having trouble logging into that/getting permissions

          G G 2 Replies Last reply Reply Quote 0
          • G
            Good_Punk @honcoop91
            last edited by

            @honcoop91
            Hm okay... I don't know much about Linux stuff. I've used the File Commander that came with RetroPie and that let me navigate to the tmp folder and create a new one.

            1 Reply Last reply Reply Quote 0
            • shavecatS
              shavecat @ecto
              last edited by

              @ecto
              hmm.... thanks ! :)
              I tried didnt not help :\

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

                @honcoop91 sounds like you might be running off the primary branch in the repository instead of the emulator branch, which is more up to date. The LICENSE file got moved in the Box86 repo, and the script in my emulator branch has the new location.

                I really should just update the main branch on my repo.

                Hope that helps.

                - George

                H 1 Reply Last reply Reply Quote 0
                • H
                  honcoop91 @George
                  last edited by

                  @george looks like i finally got it to work, now just gotta figure out how to install games and hopefully get pkhex to work lol

                  1 Reply Last reply Reply Quote 0
                  • E
                    EvilCreamsicle
                    last edited by EvilCreamsicle

                    Just posting here for some accountability so I actually do this:
                    I intend to try to use this to run a game I'm making in RPG Maker VX Ace on RetroPie. This is the only thing close to a solution I've been able to find... from what I can tell from reading most of this entire thread, I think it should work. I'll let you know what I find out.

                    I do IT/DevOps professionally and so am pretty familiar with Linux/Command Line and hardware, but I'm actually not super familiar with how RetroPie and Wine, specifically, work, so I may pop in with questions.

                    1 Reply Last reply Reply Quote 1
                    • hooperreH
                      hooperre
                      last edited by hooperre

                      Has the audio issue been sorted or any known fix? My audio isn't working on the pi outside of splash videos regardless of whether wine is opened.

                      cat /proc/asound/cards only shows headphones.

                      4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                      1 Reply Last reply Reply Quote 0
                      • dodonpachiD
                        dodonpachi @hooperre
                        last edited by

                        @hooperre how did you install DirectX9? I wonder if that's what I'm missing for Vanguard Princess and Freedom Planet...

                        hooperreH 1 Reply Last reply Reply Quote 0
                        • hooperreH
                          hooperre @dodonpachi
                          last edited by hooperre

                          @dodonpachi https://www.microsoft.com/en-us/download/details.aspx?id=8109

                          Then installed inside wine. I tried doing it through Winetricks but it failed. Also using winetricks to install the core fonts (From memory) helped compatibility.

                          4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                          dodonpachiD 1 Reply Last reply Reply Quote 0
                          • dodonpachiD
                            dodonpachi @hooperre
                            last edited by

                            @hooperre .... That link just takes me to a page to shop for Surface laptops. Did you copy the wrong one?

                            And when you say installed through Wine, what do you mean? You ran the .exe through a .conf or something like you would a game?

                            hooperreH 1 Reply Last reply Reply Quote 0
                            • hooperreH
                              hooperre @dodonpachi
                              last edited by hooperre

                              @dodonpachi Sorry, updated the link. Correct. IIRC you install and then run another installation after the first one from the .exe files within wine. I would try running winetricks > install dll > directx first but it didn’t work for me. Wine’s website says it doesn’t support directx but it worked for me. You can also install directx if it comes with the install cd for the game.

                              Adding snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_compat_alsa=1 to /boot/cmdline.txt does solve the audio issue I encountered as alluded to in a previous post where hdmi was missing.

                              Removing pulseaudio solved a separate audio issue.

                              4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                              1 Reply Last reply Reply Quote 0
                              • dodonpachiD
                                dodonpachi
                                last edited by dodonpachi

                                So I've now gotten Vanguard Princess to run through Wine Explorer (and it runs very well), but I still cannot get it to run from a .conf or .sh file on the Emulationstation menu.

                                Ugh, I'm so close. I must be missing something.

                                EDIT: I've gotten the demo for Freedom Planet (from the official site) to run through Wine Explorer. Performance isn't stellar, but it worked with my arcade stick right out of the box! Still can't get it to load through .conf or .sh though...

                                hooperreH G 2 Replies Last reply Reply Quote 1
                                • hooperreH
                                  hooperre @dodonpachi
                                  last edited by hooperre

                                  @dodonpachi Thats about as far as I’ve gone. I can’t believe what’s running on this thing lol. The .sh and .conf files have eluded me so far. Glad directx worked!

                                  4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                                  1 Reply Last reply Reply Quote 1
                                  • E
                                    EvilCreamsicle
                                    last edited by

                                    So as promised I went to try and get this set up, but I didn't even get far enough to try and launch the game.

                                    I set it up using the emulator branch, updated to, I think 4.7.19, and installed the packages via the scripts in order as described in the ReadMe

                                    EmulationStation launches, but when I try to select the new emulator to simply view the list (which would contain my one .conf file and the default Wine scripts that live in there) it crashes emulationstation.

                                    Says something about making sure the CPU/GPU split is set right... I never changed it from default, but I think that's just a generic error message so I wanted to check if anyone else has seen this before I go messing with it. Doesn't do this when I select any other of the default emulators.

                                    1 Reply Last reply Reply Quote 0
                                    • E
                                      EvilCreamsicle
                                      last edited by EvilCreamsicle

                                      Update, plugged this in in my office and... the crashing didn't happen.

                                      Then it occurred to me that the default resolution is 'monitor preferred resolution'... and my Pi was connected to a 75-inch 4k Samsung TV. That is probably why it got angry.

                                      So, I can confirm that RPG Maker VX games run using this solution!

                                      Don't have audio yet but I think that's me misconfiguring something. I'll update when I know if thats an issue or not.

                                      EDIT: Doesn't launch every time... crashes sometimes. Logs show:

                                      Box86 with Dynarec v0.2.3 8b887c7 built on Sep 23 2021 04:37:01
                                      0058:err:ole:start_rpcss Failed to start RpcSs service
                                      0060:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 4d004 (device=4 access=3 func=401 method=0)
                                      /home/pi/RetroPie/roms/wine/Wine Desktop.sh: line 86:  1165 Segmentation fault      setarch linux32 -L /opt/retropie/emulators/wine/bin/wine "${PROGRAM}" $OPTIONS
                                      xinit: connection to X server lost
                                      
                                      waiting for X server to shut down wm_set_cursor_visibility: visible using XCreateFontCursor
                                      (II) Server terminated successfully (0). Closing log file.
                                      code_text
                                      

                                      EDIT 2:
                                      This seems to have been all about resolution.
                                      DMT mode 16 allows RPG Maker VX Ace games (well, mine anyway) to launch reliably in Wine via Config file, and be played with a standard gamepad.

                                      E 1 Reply Last reply Reply Quote 0
                                      • E
                                        EvilCreamsicle @EvilCreamsicle
                                        last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • G
                                          George @dodonpachi
                                          last edited by

                                          @dodonpachi can you post the output of /dev/shm/runcommand.log? Maybe there is something in the output that could give us a hint.

                                          Also, I wonder whether or not the game requires desktop mode. I don't think I've seen that actually happen, but maybe it's not good at setting its own resolution and is trying to depend on the resolution from the desktop.

                                          - George

                                          E 1 Reply Last reply Reply Quote 0
                                          • E
                                            EvilCreamsicle @George
                                            last edited by EvilCreamsicle

                                            @george I've got it running now, but have run into issues where performance is reeeeally bad even though CPU is at 50% and memory still has ~2GB free. I'm suspecting something to do with GPU.

                                            I don't know if you've tried doing this on a display that is requesting a huge 4K image, but I suspect it was just too big of an ask for the hardware or EmulationStation. Is the Wine logo you use a vector image? Because it was so enormous that it just looked like my screen had a red gradient, and it looked like the WINE emulator had a blank image (and would crash if you selected it).

                                            G 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.