Closed MegaBunLi closed 1 year ago
I believe it has a "dummy" core, yes.
Yes, if you have modified RetroArch, you will need to statically link each core against the modified RetroArch.
Really thx! I just tried to compile the retroarch nro file, but the compilation terminated and showed that:
switch_font.c
In file included from gfx/drivers_font/../common/switch_common.h:8,
from gfx/drivers_font/switch_font.c:30:
c:\users\floyd\retroarch\gfx\common\egl_common.h:23:10: fatal error: EGL/egl.h: No such file or dire
ctory
23 | #include <EGL/egl.h>
| ^~~~~~~~~~~
compilation terminated.
make: *** [/opt/devkitpro/devkitA64/base_rules:19: gfx/drivers_font/switch_font.o] Error 1
It seems the program couldn't locate the EGL/egl.h, how could I fix this?
Are you following the Switch compile guide here? https://docs.libretro.com/development/retroarch/compilation/switch-libnx/
I believe it has a "dummy" core, yes. Yes, if you have modified RetroArch, you will need to statically link each core against the modified RetroArch.
I reinstalled all the environment and problem solved! But when I tried to generate an nro file, error occured pointing I didn't put a core file libretro_libnx.a
in the directory:
linking retroarch_switch.elf
c:/users/floyd/app/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/12.2.0/../../../../aarch64-no
ne-elf/bin/ld.exe: cannot find libretro_libnx.a: No such file or directory
collect2.exe: error: ld returned 1 exit status
make: *** [/opt/devkitpro/libnx/switch_rules:80: retroarch_switch.elf] Error 1
Then I put a renamed core file under the directory,it worked. Hence how could I get the neat version of retroarch nro with "No Core" label on the left lower corner?
@MegaBunLi how to build the front-end nro in the path “/switch/retroarch_switch.nro” ?
Description
In Nintendo Switch Development Guide, it refers "Each NRO of RetroArch has one and only one core, and each core is a standalone homebrew by itself. That means that building multiple cores means building RetroArch multiple times, once for each core."