RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Problems installing dolphin on raspberry pi 4

    Scheduled Pinned Locked Moved Help and Support
    install errordolphinpi4 8gb
    11 Posts 2 Posters 2.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.
    • UnknownU
      Unknown
      last edited by

      Hello, I'm trying to install the emulator dolphin on a raspberry pi4 8 gig model to run gamecube games. Iknow this is not recommended, but I'm curious to see if overclocking will give me decent preformance.
      Here is the slightly modified install script I'm using:

      #!/usr/bin/env bash
      
      # This file is part of The RetroPie Project
      #
      # The RetroPie Project is the legal property of its developers, whose names are
      # too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
      #
      # See the LICENSE.md file at the top-level directory of this distribution and
      # at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
      #
      
      rp_module_id="lr-dolphin"
      rp_module_desc="Gamecube/Wii emulator - Dolphin port for libretro"
      rp_module_help="ROM Extensions: .gcm .iso .wbfs .ciso .gcz\n\nCopy your gamecube roms to $romdir/gc and Wii roms to $romdir/wii"
      rp_module_licence="GPL2 https://raw.githubusercontent.com/libretro/dolphin/master/license.txt"
      rp_module_section="exp"
      #rp_module_flags="!all 64bit"
      
      function depends_lr-dolphin() {
          depends_dolphin
      }
      
      function sources_lr-dolphin() {
          gitPullOrClone "$md_build" https://github.com/libretro/dolphin
      }
      
      function build_lr-dolphin() {
          mkdir build
          cd build
          cmake .. -DLIBRETRO=ON -DLIBRETRO_STATIC=1
          make clean
          make
          md_ret_require="$md_build/build/dolphin_libretro.so"
      }
      
      function install_lr-dolphin() {
          md_ret_files=(
              'build/dolphin_libretro.so'
          )
      }
      
      function configure_lr-dolphin() {
          mkRomDir "gc"
          mkRomDir "wii"
      
          ensureSystemretroconfig "gc"
          ensureSystemretroconfig "wii"
      
          addEmulator 1 "$md_id" "gc" "$md_inst/dolphin_libretro.so"
          addEmulator 1 "$md_id" "wii" "$md_inst/dolphin_libretro.so"
      
          addSystem "gc"
          addSystem "wii"
      }
      

      It runs fine until it tries to find "dolphin_libretro.so" Which apparently doesn't exist in"/home/pi/RetroPie-Setup/tmp/build/lr-dolphin/build "

      Here is the error:

      
      /home/pi
      Could not successfully build lr-dolphin - Gamecube/Wii emulator - Dolphin port for libretro (/home/pi/RetroPie-Setup/tmp/build/lr-dolphin/build/dolphin_libretro.so not found).
      
      Log ended at: Sun Dec 27 13:34:20 EST 2020
      Total running time: 0 hours, 6 mins, 40 secs
      

      I'm don't know how to fix this error. I'm using the stranded retropie raspberry pi 4 image 7.2 with an overclock and 64 bit processing enabled. Otherwise nothing else has been done to this image. Can any one help?

      You can't beat the classics(unless you copy them).

      dankcushionsD 1 Reply Last reply Reply Quote 0
      • dankcushionsD
        dankcushions Global Moderator @Unknown
        last edited by

        @unknown build errors will appear before that in the log. you should post the full build log. but of course we will not be supporting modified build scripts on unsupported configurations (aarch64) :)

        does the libretro build even support pi4? you should establish that first.

        UnknownU 1 Reply Last reply Reply Quote 0
        • UnknownU
          Unknown @dankcushions
          last edited by

          @dankcushions said in Problems installing dolphin on raspberry pi 4:

          @unknown build errors will appear before that in the log. you should post the full build log. but of course we will not be supporting modified build scripts on unsupported configurations (aarch64) :)

          does the libretro build even support pi4? you should establish that first.

          I'm pretty sure libretro does support pi 4 since I've installed other emulators like lr-dseumme without a modified script.
          Why isn't aarch64 supported? I was unable to post the entire log file because the forum said it was to long. However here is a link

          You can't beat the classics(unless you copy them).

          dankcushionsD 1 Reply Last reply Reply Quote 0
          • dankcushionsD
            dankcushions Global Moderator @Unknown
            last edited by

            @unknown said in Problems installing dolphin on raspberry pi 4:

            @dankcushions said in Problems installing dolphin on raspberry pi 4:

            @unknown build errors will appear before that in the log. you should post the full build log. but of course we will not be supporting modified build scripts on unsupported configurations (aarch64) :)

            does the libretro build even support pi4? you should establish that first.

            I'm pretty sure libretro does support pi 4 since I've installed other emulators like lr-dseumme without a modified script.

            support for different architectures is not automatic. does it support gles 3.1 on libretro? apparently it doesn't support pi4 + vulkan: https://github.com/libretro/dolphin/issues/180

            Why isn't aarch64 supported?

            because raspberry pi OS 64-bit is still in beta, and because it's still largely untested in retropie.

            I was unable to post the entire log file because the forum said it was to long. However here is a link

            that's not a link to your file.

            UnknownU 1 Reply Last reply Reply Quote 0
            • UnknownU
              Unknown @dankcushions
              last edited by

              @dankcushions The address I'm using is: https://github.com/Python-retropie-raspberry-pi-hobby/1/blob/main/README.md
              It takes me right to my file. Where is that link taking you?

              You can't beat the classics(unless you copy them).

              dankcushionsD 2 Replies Last reply Reply Quote 0
              • dankcushionsD
                dankcushions Global Moderator @Unknown
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • dankcushionsD
                  dankcushions Global Moderator @Unknown
                  last edited by

                  @unknown my mistake, that's just a baffling way of hosting a build log :P https://pastebin.com/ not enough?

                  anyway, you can see plenty of errors in that log:

                  CMake Error at Source/Core/Core/CMakeLists.txt:1 (add_library):
                    Target "core" links to target "LibLZMA::LibLZMA" but the target was not
                    found.  Perhaps a find_package() call is missing for an IMPORTED target, or
                    an ALIAS target is missing?
                  

                  so i would guess you're missing a dependency for LibLZMA?

                  and stuff like

                  [ 40%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/GL/GLContext.cpp.o
                  /home/pi/RetroPie-Setup/tmp/build/lr-dolphin/Source/Core/Common/ArmCPUDetect.cpp: In member function 'void CPUInfo::Detect()':
                  /home/pi/RetroPie-Setup/tmp/build/lr-dolphin/Source/Core/Common/ArmCPUDetect.cpp:91:18: error: 'HWCAP_FP' was not declared in this scope
                     bFP = hwcaps & HWCAP_FP;
                                    ^~~~~~~~
                  

                  which makes me think you're not building with the correct arguments for aarch64, but who knows.

                  UnknownU 1 Reply Last reply Reply Quote 0
                  • UnknownU
                    Unknown @dankcushions
                    last edited by

                    @dankcushions said in Problems installing dolphin on raspberry pi 4:

                    @unknown my mistake, that's just a baffling way of hosting a build log :P https://pastebin.com/ not enough?

                    anyway, you can see plenty of errors in that log:

                    CMake Error at Source/Core/Core/CMakeLists.txt:1 (add_library):
                      Target "core" links to target "LibLZMA::LibLZMA" but the target was not
                      found.  Perhaps a find_package() call is missing for an IMPORTED target, or
                      an ALIAS target is missing?
                    

                    so i would guess you're missing a dependency for LibLZMA?

                    and stuff like

                    [ 40%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/GL/GLContext.cpp.o
                    /home/pi/RetroPie-Setup/tmp/build/lr-dolphin/Source/Core/Common/ArmCPUDetect.cpp: In member function 'void CPUInfo::Detect()':
                    /home/pi/RetroPie-Setup/tmp/build/lr-dolphin/Source/Core/Common/ArmCPUDetect.cpp:91:18: error: 'HWCAP_FP' was not declared in this scope
                       bFP = hwcaps & HWCAP_FP;
                                      ^~~~~~~~
                    

                    which makes me think you're not building with the correct arguments for aarch64, but who knows.

                    After changing :

                    function depends_lr-dolphin() {
                        depends_dolphin
                    }
                    

                    to

                    function depends_lr-dolphin() {
                        local depends=(cmake pkg-config libao-dev libasound2-dev libavcodec-dev libavformat-dev libbluetooth-dev libenet-dev liblzo2-dev libminiupnpc-dev libopenal-dev libpulse-dev libreadline-dev libsfml-dev libsoil-dev libsoundtouch-dev libswscale-dev libusb-1.0-0-dev libxext-dev libxi-dev libxrandr-dev portaudio19-dev zlib1g-dev libudev-dev libevdev-dev libmbedtls-dev libcurl4-openssl-dev libegl1-mesa-dev qtbase5-private-dev)
                        # current HEAD of dolphin doesn't build gtk2 UI anymore
                        compareVersions $__gcc_version lt 6 && depends+=(libgtk2.0-dev libwxbase3.0-dev libwxgtk3.0-dev)
                        getDepends "${depends[@]}"
                    }
                    

                    I did not see any dependency errors.

                    which makes me think you're not building with the correct arguments for aarch64, but who knows.

                    How would you suggest I fix that?

                    You can't beat the classics(unless you copy them).

                    dankcushionsD 1 Reply Last reply Reply Quote 0
                    • dankcushionsD
                      dankcushions Global Moderator @Unknown
                      last edited by

                      @unknown no idea. would have to dig into the cmake rules.

                      UnknownU 1 Reply Last reply Reply Quote 0
                      • UnknownU
                        Unknown @dankcushions
                        last edited by

                        @dankcushions I had been running the 32bit image with 64bit enabled. When I built an image off the 64bit beta, It installed and worked. I didn't even need the custom script.

                        You can't beat the classics(unless you copy them).

                        dankcushionsD 1 Reply Last reply Reply Quote 0
                        • dankcushionsD
                          dankcushions Global Moderator @Unknown
                          last edited by

                          @unknown that makes sense. you would have had the 64-bit kernel with the 32-bit userland, confusing things.

                          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.