Can't install RetroArch from Source - orange pi 3 lts
-
hi I currently have an error, I had an old version of retropie on an orange pi 3 lts, all cores and plugins were updated, except retroarch:
Could not successfully build RetroArch - frontend to the libretro emulator cores - required by all lr- emulators (/home/pi/RetroPie-Setup/tmp/build/retroarch/retroarch not found) -
In order to find the issue, the full build log is necessary, from
$HOME/RetroPie-Setup/logs
, it should be a timestamped.gz
file with the compilation process and the actual error at the end. -
@mitu Log started at: Sat 11 May 2024 09:07:51 PM -04
RetroPie-Setup version: 4.8.7 (6d458aaf)
System: (aarch64) - Debian GNU/Linux 11 (bullseye) - Linux ReARMit 5.15.79-sunxi64 #22.11.0 SMP Sun Nov 27 12:29:30 CET 2022 aarch64 GNU/Linux
Update is available - updating ...= = = = = = = = = = = = = = = = = = = = =
Installing dependencies for 'retroarch' : RetroArch - frontend to the libretro emulator cores - required by all lr-* emulators
= = = = = = = = = = = = = = = = = = = = =/home/pi/RetroPie-Setup/tmp/build/retroarch /home/pi
= = = = = = = = = = = = = = = = = = = = =
Getting sources for 'retroarch' : RetroArch - frontend to the libretro emulator cores - required by all lr-* emulators
= = = = = = = = = = = = = = = = = = = = =git clone --recursive --depth 1 --shallow-submodules --branch retropie-v1.16.0 "https://github.com/retropie/RetroArch.git" "/home/pi/RetroPie-Setup/tmp/build/retroarch"
Cloning into '/home/pi/RetroPie-Setup/tmp/build/retroarch'...
Updating files: 50% (5473/10847)
Updating files: 51% (5532/10847)
Updating files: 52% (5641/10847)
Updating files: 53% (5749/10847)
Updating files: 54% (5858/10847)
Updating files: 55% (5966/10847)
Updating files: 56% (6075/10847)
Updating files: 57% (6183/10847)
Updating files: 58% (6292/10847)
Updating files: 59% (6400/10847)
Updating files: 60% (6509/10847)
Updating files: 61% (6617/10847)
Updating files: 62% (6726/10847)
Updating files: 63% (6834/10847)
Updating files: 64% (6943/10847)
Updating files: 65% (7051/10847)
Updating files: 66% (7160/10847)
Updating files: 67% (7268/10847)
Updating files: 68% (7376/10847)
Updating files: 69% (7485/10847)
Updating files: 70% (7593/10847)
Updating files: 71% (7702/10847)
Updating files: 72% (7810/10847)
Updating files: 73% (7919/10847)
Updating files: 74% (8027/10847)
Updating files: 75% (8136/10847)
Updating files: 76% (8244/10847)
Updating files: 77% (8353/10847)
Updating files: 78% (8461/10847)
Updating files: 79% (8570/10847)
Updating files: 80% (8678/10847)
Updating files: 81% (8787/10847)
Updating files: 81% (8876/10847)
Updating files: 82% (8895/10847)
Updating files: 83% (9004/10847)
Updating files: 84% (9112/10847)
Updating files: 85% (9220/10847)
Updating files: 86% (9329/10847)
Updating files: 87% (9437/10847)
Updating files: 88% (9546/10847)
Updating files: 89% (9654/10847)
Updating files: 90% (9763/10847)
Updating files: 91% (9871/10847)
Updating files: 91% (9962/10847)
Updating files: 92% (9980/10847)
Updating files: 93% (10088/10847)
Updating files: 94% (10197/10847)
Updating files: 95% (10305/10847)
Updating files: 96% (10414/10847)
Updating files: 97% (10522/10847)
Updating files: 98% (10631/10847)
Updating files: 99% (10739/10847)
Updating files: 100% (10847/10847)
Updating files: 100% (10847/10847), done.
HEAD is now in branch 'retropie-v1.16.0' at commit 'e89a7ce8e26335e09230286f7a00f3b056b3b3a2'
/home/pi
/home/pi/RetroPie-Setup/tmp/build/retroarch /home/pi= = = = = = = = = = = = = = = = = = = = =
Building 'retroarch' : RetroArch - frontend to the libretro emulator cores - required by all lr-* emulators
= = = = = = = = = = = = = = = = = = = = =Checking operating system ... Linux
Checking for suitable working C compiler ... /usr/bin/gcc works
Checking for suitable working C++ compiler ... /usr/bin/g++ works
Checking for pkg-config ... /usr/bin/pkg-config
Checking for availability of switch -std=gnu99 in /usr/bin/gcc ... yes
Checking for availability of switch -std=c++11 in /usr/bin/g++ ... yes
Checking for availability of switch -Wno-unused-result in /usr/bin/gcc ... yes
Checking for availability of switch -Wno-unused-variable in /usr/bin/gcc ... yes
Checking function sd_get_machine_names in -lsystemd ... no
Checking presence of package bcm_host ... no
Checking function bcm_host_init in -lbcm_host ... no
Checking presence of header file EGL/eglext.h ... yes
Checking presence of package egl ... 1.5
Checking function ass_library_init in -lfribidi -lass ... no
Checking function pthread_create in -lpthread ... yes
Checking function pthread_key_create in -lpthread ... yes
Checking presence of package check >= 0.15 ... no
Checking presence of header file scsi/sg.h ... yes
Checking function dlopen in -ldl ... yes
Checking function socket in -lc ... yes
Checking function getaddrinfo in -lc ... yes
Checking function fcntl in -lc ... yes
Checking function getopt_long in -lc ... yes
Checking presence of package alsa ... 1.2.4
Checking presence of package libsixel >= 1.6.0 ... no
Checking presence of predefined macro AUDIO_SETINFO in sys/audioio.h ... no
Checking presence of package rsound >= 1.1 ... no
Checking presence of package libroar >= 1.0.12 ... no
Checking presence of package libpulse ... 14.2
Checking presence of package sdl2 >= 2.0.0 ... 2.0.20
Checking presence of package flac ... 1.3.3
Checking existence of -lmbedtls -lmbedx509 -lmbedcrypto ... no
Notice: HID is disabled, libusb support will also be disabled.
Checking existence of -ldinput8 ... no
Checking existence of -ld3d9 ... no
Checking existence of -ldsound ... no
Checking existence of -ld3dx8 ... no
Checking existence of -ld3dx9 ... no
Checking presence of header file GL/gl.h ... yes
Checking existence of -lGL ... yes
Checking function cgCreateContext in -lCg -lCgGL ... no
Checking presence of package zlib ... 1.2.11
Checking presence of package libavcodec >= 57 ... 58.134.100
Checking presence of package libavformat >= 57 ... 58.76.100
Checking presence of package libavdevice >= 57 ... 58.13.100
Checking presence of package libswresample >= 2 ... 3.9.100
Checking presence of package libavutil >= 55 ... 56.70.100
Checking presence of package libswscale >= 4 ... 5.9.100
Checking presence of header file libavutil/channel_layout.h ... yes
Checking function dlopen in -ldl ... yes
Checking presence of package gbm >= 9.0 ... 23.3.6 - kisak-mesa PPA
Checking presence of package libdrm ... 2.4.110
Checking presence of package vg ... no
Checking presence of package libudev ... 247
Checking presence of package libv4l2 ... 1.20.0
Checking presence of package freetype2 ... 23.4.17
Checking presence of package fontconfig ... 2.13.1
Checking presence of package x11 ... 1.7.2
Checking presence of package xcb ... 1.14
Checking presence of package xext ... 1.3.3
Checking presence of package xxf86vm ... 1.1.4
Checking presence of package xinerama ... 1.1.4
Checking existence of -lXrandr ... yes
Checking presence of package xkbcommon >= 0.3.2 ... 1.0.3
Checking presence of package wayland-egl >= 10.1.0 ... no
Checking presence of package wayland-cursor >= 1.12 ... no
Checking presence of package wayland-protocols >= 1.15 ... no
Checking presence of package wayland-scanner >= 1.12 ... no
Notice: wayland libraries not found, disabling wayland support.
Checking presence of header file linux/parport.h ... yes
Checking presence of header file linux/ppdev.h ... yes
Checking function strcasestr in -lc ... yes
Checking function mmap in -lc ... yes
Checking function memfd_create in -lc ... yes
Checking function vkCreateInstance in -lvulkan ... yes
Checking presence of header file glslang/SPIRV/GlslangToSpv.h ... no
Checking existence of -lOSDependent ... no
Checking existence of -lOGLCompiler ... no
Checking existence of -lMachineIndependent ... no
Checking existence of -lGenericCodeGen ... no
Checking existence of -lHLSL ... no
Checking existence of -lSPIRV ... no
Checking existence of -lSPIRV-Tools-opt ... no
Checking existence of -lSPIRV-Tools ... no
Creating make config: config.mk
Creating config header: config.h
rm -rf obj-unix
rm -f retroarch
rm -f *.d
CC input/drivers/linuxraw_input.c
CC input/common/linux_common.c
CC input/drivers_joypad/linuxraw_joypad.c
CC frontend/drivers/platform_unix.c
CC version_git.c
CC frontend/frontend_driver.c
CC retroarch.c
CC runloop.c
CC ui/ui_companion_driver.c
CC camera/camera_driver.c
CC record/record_driver.c
CC command.c
CC msg_hash.c
CC midi_driver.c
CC location_driver.c
CC intl/msg_hash_us.c
CC libretro-common/queues/task_queue.c
CC tasks/task_content.c
CC tasks/task_patch.c
CC tasks/task_save.c
CC tasks/task_movie.c
CC tasks/task_file_transfer.c
CC tasks/task_image.c
CC tasks/task_playlist_manager.c
CC tasks/task_manual_content_scan.c
CC tasks/task_core_backup.c
CC libretro-common/encodings/encoding_utf.c
CC libretro-common/encodings/encoding_crc32.c
CC libretro-common/encodings/encoding_base64.c
CC tasks/task_translation.c
CC libretro-common/compat/fopen_utf8.c
CC libretro-common/compat/compat_strldup.c
CC libretro-common/lists/file_list.c
CC libretro-common/lists/dir_list.c
CC libretro-common/file/retro_dirent.c
CC libretro-common/streams/stdin_stream.c
CC libretro-common/streams/file_stream.c
CC libretro-common/streams/file_stream_transforms.c
CC libretro-common/streams/interface_stream.c
CC libretro-common/streams/memory_stream.c
CC libretro-common/streams/network_stream.c
CC libretro-common/vfs/vfs_implementation.c
CC libretro-common/lists/string_list.c
CC libretro-common/string/stdstring.c
CC libretro-common/memmap/memalign.c
CC libretro-common/file/nbio/nbio_stdio.c
CC libretro-common/lists/linked_list.c
CC libretro-common/lists/nested_list.c
CC libretro-common/queues/generic_queue.c
CC libretro-common/file/nbio/nbio_linux.c
CC libretro-common/file/nbio/nbio_intf.c
CC libretro-common/file/file_path.c
CC libretro-common/file/file_path_io.c
CC file_path_special.c
CC libretro-common/hash/lrc_hash.c
CC audio/audio_driver.c
CC input/input_driver.c
CC input/common/input_hid_common.c
CC led/led_driver.c
CC gfx/video_driver.c
CC gfx/gfx_display.c
CC gfx/gfx_animation.c
CC gfx/gfx_thumbnail_path.c
CC gfx/gfx_thumbnail.c
CC configuration.c
CC libretro-common/dynamic/dylib.c
CC cores/dynamic_dummy.c
CC libretro-common/queues/message_queue.c
CC audio/microphone_driver.c
CC state_manager.c
CC gfx/drivers_font_renderer/bitmapfont.c
CC gfx/drivers_font_renderer/bitmapfont_10x10.c
CC gfx/drivers_font_renderer/bitmapfont_6x10.c
CC tasks/task_autodetect.c
CC input/input_autodetect_builtin.c
CC input/input_keymaps.c
CC libretro-common/queues/fifo_queue.c
CC libretro-common/compat/compat_fnmatch.c
CC libretro-common/compat/compat_posix_string.c
CC cheat_manager.c
CC core_info.c
CC core_backup.c
CC core_option_manager.c
CC libretro-common/file/config_file.c
CC libretro-common/file/config_file_userdata.c
CC runtime_file.c
CC disk_index_file.c
CC tasks/task_screenshot.c
CC tasks/task_powerstate.c
CC libretro-common/gfx/scaler/scaler.c
CC libretro-common/gfx/scaler/pixconv.c
CC libretro-common/gfx/scaler/scaler_int.c
CC libretro-common/gfx/scaler/scaler_filter.c
CC gfx/font_driver.c
CC gfx/video_filter.c
CC libretro-common/audio/resampler/audio_resampler.c
CC libretro-common/audio/dsp_filter.c
CC libretro-common/audio/resampler/drivers/sinc_resampler.c
CC libretro-common/audio/resampler/drivers/nearest_resampler.c
CC libretro-common/utils/md5.c
CC playlist.c
CC libretro-common/features/features_cpu.c
CC verbosity.c
CC libretro-common/playlists/label_sanitization.c
CC libretro-common/time/rtime.c
CC manual_content_scan.c
CC disk_control_interface.c
CC tasks/task_audio_mixer.c
CC libretro-common/audio/audio_mix.c
CC libretro-common/audio/audio_mixer.c
CC runahead.c
CC audio/drivers_resampler/cc_resampler.c
CC libretro-common/compat/compat_strl.c
CC libretro-common/formats/image_texture.c
CC cores/libretro-imageviewer/image_core.c
CC libretro-db/bintree.c
CC libretro-db/libretrodb.c
CC libretro-db/query.c
CC libretro-db/rmsgpack.c
CC libretro-db/rmsgpack_dom.c
CC database_info.c
CC tasks/task_database.c
CC tasks/task_database_cue.c
CC menu/menu_explore.c
CC tasks/task_menu_explore.c
CC deps/mbedtls/aes.c
CC deps/mbedtls/aesni.c
CC deps/mbedtls/arc4.c
CC deps/mbedtls/asn1parse.c
CC deps/mbedtls/asn1write.c
CC deps/mbedtls/base64.c
CC deps/mbedtls/bignum.c
CC deps/mbedtls/blowfish.c
CC deps/mbedtls/camellia.c
CC deps/mbedtls/ccm.c
CC deps/mbedtls/cipher.c
CC deps/mbedtls/cipher_wrap.c
CC deps/mbedtls/ctr_drbg.c
CC deps/mbedtls/des.c
CC deps/mbedtls/dhm.c
CC deps/mbedtls/ecdh.c
CC deps/mbedtls/ecdsa.c
CC deps/mbedtls/ecp.c
CC deps/mbedtls/ecp_curves.c
CC deps/mbedtls/entropy.c
CC deps/mbedtls/entropy_poll.c
CC deps/mbedtls/gcm.c
CC deps/mbedtls/hmac_drbg.c
CC deps/mbedtls/md.c
CC deps/mbedtls/md5.c
CC deps/mbedtls/md_wrap.c
CC deps/mbedtls/oid.c
CC deps/mbedtls/padlock.c
CC deps/mbedtls/pem.c
CC deps/mbedtls/pk.c
CC deps/mbedtls/pk_wrap.c
CC deps/mbedtls/pkcs12.c
CC deps/mbedtls/pkcs5.c
CC deps/mbedtls/pkparse.c
CC deps/mbedtls/pkwrite.c
CC deps/mbedtls/ripemd160.c
CC deps/mbedtls/rsa.c
CC deps/mbedtls/sha1.c
CC deps/mbedtls/sha256.c
CC deps/mbedtls/sha512.c
CC deps/mbedtls/threading.c
CC deps/mbedtls/timing.c
CC deps/mbedtls/xtea.c
CC deps/mbedtls/certs.c
CC deps/mbedtls/x509.c
CC deps/mbedtls/x509_create.c
CC deps/mbedtls/x509_crl.c
CC deps/mbedtls/x509_crt.c
CC deps/mbedtls/x509_csr.c
CC deps/mbedtls/x509write_crt.c
CC deps/mbedtls/x509write_csr.c
CC deps/mbedtls/debug.c
CC deps/mbedtls/net_sockets.c
CC deps/mbedtls/ssl_cache.c
CC deps/mbedtls/ssl_ciphersuites.c
CC deps/mbedtls/ssl_cli.c
CC deps/mbedtls/ssl_cookie.c
CC deps/mbedtls/ssl_srv.c
CC deps/mbedtls/ssl_ticket.c
CC deps/mbedtls/ssl_tls.c
CC audio/drivers/alsa.c
CC audio/common/alsa.c
CC audio/drivers_microphone/alsa.c
CC midi/drivers/alsa_midi.c
CC audio/drivers/alsathread.c
CC audio/common/alsathread.c
CC audio/drivers_microphone/alsathread.c
CC audio/drivers/tinyalsa.c
CC audio/drivers/pulse.c
CC libretro-common/audio/conversion/s16_to_float.c
CC libretro-common/audio/conversion/float_to_s16.c
CC libretro-common/audio/conversion/mono_to_stereo_float.c
CC libretro-common/audio/conversion/stereo_to_mono_float.c
CC libretro-common/formats/wav/rwav.c
CC menu/drivers/rgui.c
CC menu/drivers/materialui.c
CC menu/drivers/xmb.c
CC menu/drivers/ozone.c
CC menu/menu_screensaver.c
CC menu/menu_setting.c
CC menu/menu_driver.c
CC menu/cbs/menu_cbs_ok.c
CC menu/cbs/menu_cbs_cancel.c
CC menu/cbs/menu_cbs_select.c
CC menu/cbs/menu_cbs_start.c
CC menu/cbs/menu_cbs_info.c
CC menu/cbs/menu_cbs_left.c
CC menu/cbs/menu_cbs_right.c
CC menu/cbs/menu_cbs_deferred_push.c
CC menu/cbs/menu_cbs_scan.c
CC menu/cbs/menu_cbs_get_value.c
CC menu/cbs/menu_cbs_label.c
CC menu/cbs/menu_cbs_sublabel.c
CC menu/cbs/menu_cbs_title.c
CC menu/menu_displaylist.c
menu/menu_displaylist.c: In function ‘menu_displaylist_ctl’:
menu/menu_displaylist.c:11888:46: warning: ‘%d’ directive output may be truncated writing between 1 and 3 bytes into a region of size 2 [-Wformat-truncation=]
11888 | "Mode %d", toc->track[i].mode);
| ^~
menu/menu_displaylist.c:11888:40: note: directive argument in the range [0, 255]
11888 | "Mode %d", toc->track[i].mode);
| ^~~~~~~~~
menu/menu_displaylist.c:11886:34: note: ‘snprintf’ output between 7 and 9 bytes into a destination of size 7
11886 | snprintf(mode_str + strlen_mode_str,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11887 | sizeof(mode_str) - strlen_mode_str,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11888 | "Mode %d", toc->track[i].mode);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC menu/menu_contentless_cores.c
CC gfx/gfx_widgets.c
CC gfx/widgets/gfx_widget_screenshot.c
CC gfx/widgets/gfx_widget_volume.c
CC gfx/widgets/gfx_widget_generic_message.c
CC gfx/widgets/gfx_widget_libretro_message.c
CC gfx/widgets/gfx_widget_progress_message.c
CC gfx/widgets/gfx_widget_load_content_animation.c
CC gfx/widgets/gfx_widget_achievement_popup.c
CC gfx/widgets/gfx_widget_leaderboard_display.c
CC tasks/task_overlay.c
CC led/drivers/led_overlay.c
CC gfx/drivers_font_renderer/stb.c
CC gfx/drivers_font_renderer/stb_unicode.c
CC gfx/drivers_font_renderer/freetype.c
CC libretro-common/rthreads/rthreads.c
CC gfx/video_thread_wrapper.c
CC audio/audio_thread_wrapper.c
CC libretro-common/formats/xml/rxml.c
CC libretro-common/formats/logiqx_dat/logiqx_dat.c
CC deps/yxml/yxml.c
CC input/common/input_x11_common.c
CC input/drivers/x11_input.c
CC gfx/common/x11_common.c
CC gfx/common/xinerama_common.c
CC gfx/display_servers/dispserv_x11.c
CC gfx/drivers_context/x_ctx.c
CC gfx/drivers_context/x_vk_ctx.c
CC input/drivers_keyboard/keyboard_event_xkb.c
CC input/drivers/udev_input.c
input/drivers/udev_input.c: In function ‘udev_input_add_device’:
input/drivers/udev_input.c:3224:12: warning: variable ‘touch’ set but not used [-Wunused-but-set-variable]
3224 | bool touch = 0;
| ^~~~~
CC input/drivers_joypad/udev_joypad.c
CC input/drivers_joypad/parport_joypad.c
CC gfx/drivers_context/gfx_null_ctx.c
CC gfx/drivers_context/drm_ctx.c
CC gfx/display_servers/dispserv_kms.c
CC gfx/common/gl_common.c
CC gfx/drivers/gl2.c
CC libretro-common/gfx/gl_capabilities.c
CC libretro-common/glsym/rglgen.c
CC gfx/drivers/gl1.c
CC gfx/drivers_context/xegl_ctx.c
CC cores/libretro-ffmpeg/ffmpeg_fft.c
CC libretro-common/glsym/glsym_gl.c
CC gfx/common/egl_common.c
CC gfx/drivers/sdl2_gfx.c
gfx/drivers/sdl2_gfx.c:542:13: warning: ‘sdl2_gfx_suspend_screensaver’ defined but not used [-Wunused-function]
542 | static bool sdl2_gfx_suspend_screensaver(void data, bool enable) { return false; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC gfx/common/sdl2_common.c
gfx/common/sdl2_common.c: In function ‘sdl2_set_handles’:
gfx/common/sdl2_common.c:55:55: error: ‘union <anonymous>’ has no member named ‘x11’
55 | video_driver_display_set((uintptr_t)info.info.x11.display);
| ^
gfx/common/sdl2_common.c:56:54: error: ‘union <anonymous>’ has no member named ‘x11’
56 | video_driver_window_set((uintptr_t)info.info.x11.window);
| ^
make: *** [Makefile:209: obj-unix/release/gfx/common/sdl2_common.o] Error 1
make: *** Waiting for unfinished jobs....
Could not successfully build retroarch - RetroArch - frontend to the libretro emulator cores - required by all lr- emulators (/home/pi/RetroPie-Setup/tmp/build/retroarch/retroarch not found).
/home/piLog ended at: Sat 11 May 2024 09:21:17 PM -04
Total running time: 0 hours, 13 mins, 26 secs -
This doesn't seem to be a straight RetroPie installation, but some clone of it ? Latest RetroPie version has RetroArch v1.18.0 available, while the script(s) you're using are trying to install and build v1.16.0 of RetroArch. Is your installation using the main RetroPie repository or a fork of it ?
-
@Renetrox said in Can't install RetroArch from Source - orange pi 3 lts:
gfx/drivers/sdl2_gfx.c:542:13: warning: ‘sdl2_gfx_suspend_screensaver’ defined but not used [-Wunused-function]
542 | static bool sdl2_gfx_suspend_screensaver(void data, bool enable) { return false; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC gfx/common/sdl2_common.c
gfx/common/sdl2_common.c: In function ‘sdl2_set_handles’:
gfx/common/sdl2_common.c:55:55: error: ‘union <anonymous>’ has no member named ‘x11’
55 | video_driver_display_set((uintptr_t)info.info.x11.display);
| ^This looks suspiciously similar to https://github.com/libretro/RetroArch/issues/9583. In addition to the info requested above, can you confirm whether your SDL2 package is the one from your distro (which one are you using ?) or you are using the RetroPie SDL2 package ?
Post the output of the command:dpkg -l | grep libsdl2
-
@mitu Indeed my friend, thanks for your help, I solved it!
-
@Renetrox said in Can't install RetroArch from Source - orange pi 3 lts:
.. thanks for your help, I solved it!
It would be useful to know how did you solve it, just in case other users attempt to do the same and encounter the same error.
-
@mitu i reinstalled the sdl2 page of the dependencies in the retropie menu
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.