I was according to the Guide on libretro official site
When I compiled the retroarch from the github, after I typed command: make -f Makefile.griffin platform=ngc, the terminal returned a error:
In file included from griffin/griffin.c:448: griffin/…/gfx/drivers/gx_gfx.c: In function ‘init_vtx’: griffin/…/gfx/drivers/gx_gfx.c:714:23: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context] DCFlushRange(g_tex.data, (g_tex.width *
g_tex.height * video->rgb32) ? 4 : 2);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from griffin/griffin.c:617:
griffin/../input/drivers_joypad/gx_joypad.c: In function 'gx_joypad_init':
griffin/../input/drivers_joypad/gx_joypad.c:477:25: warning: passing argument 1 of 'SYS_SetResetCallback' from incompatible pointer type [-Wincompatible-pointer-types]
SYS_SetResetCallback(reset_cb);
^~~~~~~~
In file included from C:/devkitPro/libogc/include/gccore.h:62,
from griffin/../memory/ngc/ssaram.c:11,
from griffin/griffin.c:73:
C:/devkitPro/libogc/include/ogc/system.h:325:50: note: expected 'resetcallback' {aka 'void (*)(unsigned int, void *)'} but argument is of type 'void (*)(void)'
resetcallback SYS_SetResetCallback(resetcallback cb);
~~~~~~~~~~~~~~^~
In file included from griffin/griffin.c:1083:
griffin/../retroarch.c: In function 'drivers_init':
griffin/../retroarch.c:590:16: warning: unused variable 'settings' [-Wunused-variable]
settings_t *settings = config_get_ptr();
^~~~~~~~
griffin/../retroarch.c: In function 'retroarch_main_init':
griffin/../retroarch.c:2025:23: warning: unused variable 'settings' [-Wunused-variable]
settings_t *settings = config_get_ptr();
^~~~~~~~
In file included from griffin/../libretro-common/rthreads/rthreads.c:50,
from griffin/griffin.c:1163:
griffin/../libretro-common/rthreads/gx_pthread.h: At top level:
griffin/../libretro-common/rthreads/gx_pthread.h:87:15: error: conflicting types for 'pthread_mutexattr_t'
typedef void* pthread_mutexattr_t;
^~~~~~~~~~~~~~~~~~~
In file included from c:\devkitpro\devkitppc\powerpc-eabi\include\sys\types.h:239,
from c:\devkitpro\devkitppc\powerpc-eabi\include\stdio.h:61,
from griffin/../verbosity.c:29,
from griffin/griffin.c:34:
c:\devkitpro\devkitppc\powerpc-eabi\include\sys\_pthreadtypes.h:169:3: note: previous declaration of 'pthread_mutexattr_t' was here
} pthread_mutexattr_t;
^~~~~~~~~~~~~~~~~~~
In file included from griffin/../libretro-common/rthreads/rthreads.c:50,
from griffin/griffin.c:1163:
griffin/../libretro-common/rthreads/gx_pthread.h:88:13: error: conflicting types for 'pthread_attr_t'
typedef int pthread_attr_t;
^~~~~~~~~~~~~~
In file included from c:\devkitpro\devkitppc\powerpc-eabi\include\sys\types.h:239,
from c:\devkitpro\devkitppc\powerpc-eabi\include\stdio.h:61,
from griffin/../verbosity.c:29,
from griffin/griffin.c:34:
c:\devkitpro\devkitppc\powerpc-eabi\include\sys\_pthreadtypes.h:75:3: note: previous declaration of 'pthread_attr_t' was here
} pthread_attr_t;
^~~~~~~~~~~~~~
In file included from griffin/../libretro-common/rthreads/rthreads.c:50,
from griffin/griffin.c:1163:
griffin/../libretro-common/rthreads/gx_pthread.h:90:16: error: conflicting types for 'pthread_condattr_t'
typedef OSCond pthread_condattr_t;
^~~~~~~~~~~~~~~~~~
In file included from c:\devkitpro\devkitppc\powerpc-eabi\include\sys\types.h:239,
from c:\devkitpro\devkitppc\powerpc-eabi\include\stdio.h:61,
from griffin/../verbosity.c:29,
from griffin/griffin.c:34:
c:\devkitpro\devkitppc\powerpc-eabi\include\sys\_pthreadtypes.h:186:3: note: previous declaration of 'pthread_condattr_t' was here
} pthread_condattr_t; /* a condition attribute object */
^~~~~~~~~~~~~~~~~~
In file included from griffin/griffin.c:1222:
griffin/../tasks/task_screenshot.c: In function 'take_screenshot':
griffin/../tasks/task_screenshot.c:501:16: warning: unused variable 'settings' [-Wunused-variable]
settings_t *settings = config_get_ptr();
^~~~~~~~
In file included from griffin/griffin.c:1269:
griffin/../menu/menu_displaylist.c: In function 'menu_displaylist_ctl':
griffin/../menu/menu_displaylist.c:5071:18: warning: variable 'parse_database' set but not used [-Wunused-but-set-variable]
bool parse_database = false;
^~~~~~~~~~~~~~
In file included from griffin/griffin.c:1376:
griffin/../command.c: In function 'command_event':
griffin/../command.c:1750:4: warning: enumeration value 'CMD_EVENT_NETPLAY_GAME_WATCH' not handled in switch [-Wswitch]
switch (cmd)
^~~~~~
In file included from griffin/griffin.c:1238:
At top level:
griffin/../menu/menu_setting.c:4150:12: warning: 'setting_string_action_left_audio_device' defined but not used [-Wunused-function]
static int setting_string_action_left_audio_device(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
griffin/../menu/menu_setting.c:2372:13: warning: 'config_bind' defined but not used [-Wunused-function]
static void config_bind(
^~~~~~~~~~~
griffin/../menu/menu_setting.c:2348:13: warning: 'config_hex' defined but not used [-Wunused-function]
static void config_hex(
^~~~~~~~~~
griffin/../menu/menu_setting.c:2067:13: warning: 'config_bool_alt' defined but not used [-Wunused-function]
static void config_bool_alt(
^~~~~~~~~~~~~~~
In file included from griffin/griffin.c:889:
griffin/../gfx/video_crt_switch.c:42:17: warning: 'orig_height' defined but not used [-Wunused-variable]
static unsigned orig_height = 0;
^~~~~~~~~~~
griffin/../gfx/video_crt_switch.c:41:17: warning: 'orig_width' defined but not used [-Wunused-variable]
static unsigned orig_width = 0;
^~~~~~~~~~
In file included from griffin/../gfx/video_driver.c:66,
from griffin/griffin.c:888:
griffin/../gfx/../config.def.h:319:13: warning: 'menu_horizontal_animation' defined but not used [-Wunused-variable]
static bool menu_horizontal_animation = true;
^~~~~~~~~~~~~~~~~~~~~~~~~
griffin/../gfx/../config.def.h:315:13: warning: 'quick_menu_show_download_thumbnails' defined but not used [-Wunused-variable]
static bool quick_menu_show_download_thumbnails = true;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile.griffin:1032: griffin/griffin.o] Error 1