Problems installing dolphin on raspberry pi 4
-
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?
-
@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.
-
@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 -
@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.
-
@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? -
This post is deleted! -
@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.
-
@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?
-
@unknown no idea. would have to dig into the cmake rules.
-
@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.
-
@unknown that makes sense. you would have had the 64-bit kernel with the 32-bit userland, confusing things.
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.