error with compile libretro in w11 arm

Post Reply
alfonsico
Posts: 2
Joined: Sat Aug 17, 2024 9:14 am

error with compile libretro in w11 arm

Post by alfonsico » Sun Sep 08, 2024 7:31 pm

Hello
I have follow this tutorial for compile libretro of tetrarch
https://docs.libretro.com/development/r ... tch-libnx/
After doing several steps it looks like at the end of the process the RA libretro doesn't finish the process

I got to copy "libretro_libnx.a" in Retroarch folder
And launch

Code: Select all

make -f Makefile.libnx

inside RetroArch folder and MSYS2 application but I got some warnings and one last error

I need to say that I am running W11 ARM and the process of installation of devkitpro isn't so clean, sometimes stop during installation and show an empty window as waiting some confirmation but doesn't show nothing. I have to the process several time till one of this looks like is ending well but not sure at all after this mistake

Code: Select all

MSYS ~/retroarch
$ make -f Makefile.libnx
version_git.c
frontend_driver.c
retroarch.c
In file included from retroarch.c:93:
switch_performance_profiles.h:45:17: warning: 'SWITCH_CPU_SPEEDS_VALUES' defined but not used [-Wunused-variable]
   45 | static unsigned SWITCH_CPU_SPEEDS_VALUES[] = {
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
switch_performance_profiles.h:35:14: warning: 'SWITCH_CPU_SPEEDS' defined but not used [-Wunused-variable]
   35 | static char *SWITCH_CPU_SPEEDS[] = {
      |              ^~~~~~~~~~~~~~~~~
switch_performance_profiles.h:22:14: warning: 'SWITCH_CPU_PROFILES' defined but not used [-Wunused-variable]
   22 | static char *SWITCH_CPU_PROFILES[] = {
      |              ^~~~~~~~~~~~~~~~~~~
runloop.c
In file included from runloop.c:100:
switch_performance_profiles.h:45:17: warning: 'SWITCH_CPU_SPEEDS_VALUES' defined but not used [-Wunused-variable]
   45 | static unsigned SWITCH_CPU_SPEEDS_VALUES[] = {
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
switch_performance_profiles.h:35:14: warning: 'SWITCH_CPU_SPEEDS' defined but not used [-Wunused-variable]
   35 | static char *SWITCH_CPU_SPEEDS[] = {
      |              ^~~~~~~~~~~~~~~~~
switch_performance_profiles.h:22:14: warning: 'SWITCH_CPU_PROFILES' defined but not used [-Wunused-variable]
   22 | static char *SWITCH_CPU_PROFILES[] = {
      |              ^~~~~~~~~~~~~~~~~~~
ui_companion_driver.c
camera_driver.c
record_driver.c
record_wav.c
command.c
msg_hash.c
msg_hash_us.c
task_queue.c
task_content.c
task_patch.c
save.c
task_save.c
task_movie.c
task_file_transfer.c
task_image.c
task_playlist_manager.c
task_manual_content_scan.c
task_core_backup.c
encoding_utf.c
encoding_crc32.c
encoding_base64.c
task_translation.c
fopen_utf8.c
compat_strldup.c
file_list.c
dir_list.c
retro_dirent.c
stdin_stream.c
file_stream.c
file_stream_transforms.c
interface_stream.c
memory_stream.c
network_stream.c
vfs_implementation.c
string_list.c
stdstring.c
memalign.c
nbio_stdio.c
linked_list.c
nested_list.c
generic_queue.c
nbio_intf.c
file_path.c
file_path_io.c
file_path_special.c
lrc_hash.c
audio_driver.c
input_driver.c
input_hid_common.c
led_driver.c
video_driver.c
gfx_display.c
gfx_animation.c
gfx_thumbnail_path.c
gfx/gfx_thumbnail_path.c: In function 'gfx_thumbnail_set_icon_playlist':
gfx/gfx_thumbnail_path.c:579:16: warning: unused variable 'settings' [-Wunused-variable]
  579 |    settings_t *settings       = config_get_ptr();
      |                ^~~~~~~~
gfx/gfx_thumbnail_path.c:578:16: warning: unused variable 'dir_thumbnails' [-Wunused-variable]
  578 |    const char *dir_thumbnails = NULL;
      |                ^~~~~~~~~~~~~~
gfx/gfx_thumbnail_path.c:577:9: warning: unused variable 'content_dir' [-Wunused-variable]
  577 |    char content_dir[PATH_MAX_LENGTH];
      |         ^~~~~~~~~~~
gfx_thumbnail.c
configuration.c
In file included from configuration.c:70:
switch_performance_profiles.h:45:17: warning: 'SWITCH_CPU_SPEEDS_VALUES' defined but not used [-Wunused-variable]
   45 | static unsigned SWITCH_CPU_SPEEDS_VALUES[] = {
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
switch_performance_profiles.h:35:14: warning: 'SWITCH_CPU_SPEEDS' defined but not used [-Wunused-variable]
   35 | static char *SWITCH_CPU_SPEEDS[] = {
      |              ^~~~~~~~~~~~~~~~~
switch_performance_profiles.h:22:14: warning: 'SWITCH_CPU_PROFILES' defined but not used [-Wunused-variable]
   22 | static char *SWITCH_CPU_PROFILES[] = {
      |              ^~~~~~~~~~~~~~~~~~~
configuration.c: In function 'input_remapping_save_file':
configuration.c:6061:61: warning: '%u' directive output may be truncated writing between 1 and 10 bytes into a region of size 4 [-Wformat-truncation=]
 6061 |       snprintf(formatted_number, sizeof(formatted_number), "%u", i + 1);
      |                                                             ^~
configuration.c:6061:60: note: directive argument in the range [1, 4294967295]
 6061 |       snprintf(formatted_number, sizeof(formatted_number), "%u", i + 1);
      |                                                            ^~~~
configuration.c:6061:7: note: 'snprintf' output between 2 and 11 bytes into a destination of size 4
 6061 |       snprintf(formatted_number, sizeof(formatted_number), "%u", i + 1);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dylib.c
dynamic_dummy.c
message_queue.c
state_manager.c
bitmapfont.c
bitmapfont_10x10.c
bitmapfont_6x10.c
task_autodetect.c
input_autodetect_builtin.c
input_keymaps.c
fifo_queue.c
compat_fnmatch.c
compat_posix_string.c
cheat_manager.c
core_info.c
core_backup.c
core_option_manager.c
config_file.c
config_file_userdata.c
runtime_file.c
disk_index_file.c
task_screenshot.c
task_powerstate.c
scaler.c
pixconv.c
scaler_int.c
scaler_filter.c
font_driver.c
video_filter.c
audio_resampler.c
dsp_filter.c
sinc_resampler.c
md5.c
playlist.c
features_cpu.c
verbosity.c
label_sanitization.c
rtime.c
manual_content_scan.c
disk_control_interface.c
task_audio_mixer.c
audio_mix.c
audio_mixer.c
runahead.c
cc_resampler.c
compat_getopt.c
compat_strcasestr.c
compat_strl.c
image_texture.c
bintree.c
libretrodb.c
query.c
rmsgpack.c
rmsgpack_dom.c
database_info.c
task_database.c
task_database_cue.c
menu_explore.c
task_menu_explore.c
s16_to_float.c
float_to_s16.c
mono_to_stereo_float.c
stereo_to_mono_float.c
rwav.c
rgui.c
materialui.c
xmb.c
ozone.c
menu_screensaver.c
menu_setting.c
menu_driver.c
menu/menu_driver.c: In function 'menu_input_dialog_get_display_kb':
menu/menu_driver.c:5208:7: error: implicit declaration of function 'libnx_apply_overclock' [-Wimplicit-function-declaration]
 5208 |       libnx_apply_overclock();
      |       ^~~~~~~~~~~~~~~~~~~~~
In file included from menu/menu_driver.c:76:
menu/../switch_performance_profiles.h: At top level:
menu/../switch_performance_profiles.h:45:17: warning: 'SWITCH_CPU_SPEEDS_VALUES' defined but not used [-Wunused-variable]
   45 | static unsigned SWITCH_CPU_SPEEDS_VALUES[] = {
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
menu/../switch_performance_profiles.h:35:14: warning: 'SWITCH_CPU_SPEEDS' defined but not used [-Wunused-variable]
   35 | static char *SWITCH_CPU_SPEEDS[] = {
      |              ^~~~~~~~~~~~~~~~~
menu/../switch_performance_profiles.h:22:14: warning: 'SWITCH_CPU_PROFILES' defined but not used [-Wunused-variable]
   22 | static char *SWITCH_CPU_PROFILES[] = {
      |              ^~~~~~~~~~~~~~~~~~~
make: *** [/opt/devkitpro/devkitA64/base_rules:22: menu/menu_driver.o] Error 1

WinterMute
Site Admin
Posts: 1906
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: error with compile libretro in w11 arm

Post by WinterMute » Mon Sep 09, 2024 11:01 am

alfonsico wrote: Sun Sep 08, 2024 7:31 pm

Hello
I have follow this tutorial for compile libretro of tetrarch
https://docs.libretro.com/development/r ... tch-libnx/
After doing several steps it looks like at the end of the process the RA libretro doesn't finish the process

I got to copy "libretro_libnx.a" in Retroarch folder
And launch

Code: Select all

make -f Makefile.libnx

inside RetroArch folder and MSYS2 application but I got some warnings and one last error

This is a libretro problem, not an issue with anything we provide. It looks like they've neglected to provide a prototype for a function they use and implicit function declarations are errors as of gcc 14.

I need to say that I am running W11 ARM and the process of installation of devkitpro isn't so clean,

We don't currently provide any official support for Windows on Arm. All the binaries we provide for windows are x86/x86_64 right now, sorry.

Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests