drdim
Posts: 7
Joined: Wed Feb 27, 2013 8:59 pm

Re: RetroArch on Raspbian: the tutorial

Fri Apr 03, 2015 8:48 am

Original post deleted because of irrelevance.

EDIT: Never mind. Was a typo on my side. That's what happens when you read this thread on a tablet and write down everything in the terminal by hand.

EDIT2: I can't use your ./configure options because it can't find libudev on my system. Can't find the package with apt-get either.

EDIT3: found it! It's called libudev-dev. You might want to add this to the tutorial though.

christatedavies
Posts: 3
Joined: Tue Mar 10, 2015 11:13 am

Re: RetroArch on Raspbian: the tutorial

Mon Apr 20, 2015 12:21 pm

Hi there. When I'm compiling RetroArch, I get the message:

Code: Select all

undefined reference to `gfx_ctx_videocore`
A search on Google actually gives me not a single page to help... Any ideas?

This is running Raspbian 7 (Wheezy) on a Pi2 Model B

Thanks in advance!

christatedavies
Posts: 3
Joined: Tue Mar 10, 2015 11:13 am

Re: RetroArch on Raspbian: the tutorial

Mon Apr 20, 2015 12:45 pm

Sorry, ignore that. I went back a page and noticed someone was trying with a 2b, and following that I managed to get it past the compile. My bad.

steev
Posts: 87
Joined: Fri Jan 27, 2012 5:08 pm

Re: RetroArch on Raspbian: the tutorial

Mon May 04, 2015 7:33 am

Is anybody else having trouble with the dispmanx driver on the Pi 2?

The RGUI works fine, but when launch a ROM with Genesis Plus GX I get:

Code: Select all

RetroArch: rarch_log_libretro: [libretro INFO] :: Frontend supports RGB565 - will use that instead of XRGB1555.
RetroArch: rarch_log_libretro: [libretro INFO] :: Game Genie ROM should be located at: /home/pi/libretro/system/ggenie.bin
RetroArch: rarch_log_libretro: [libretro INFO] :: Action Replay (Pro) ROM should be located at: /home/pi/libretro/system/areplay.bin
RetroArch: rarch_log_libretro: [libretro INFO] :: Sonic & Knuckles (2 MB) ROM should be located at: /home/pi/libretro/system/sk.bin
RetroArch: rarch_log_libretro: [libretro INFO] :: Sonic & Knuckles UPMEM (256 KB) ROM should be located at: /home/pi/libretro/system/sk2chip.bin
RetroArch: rarch_log_libretro: [libretro INFO] :: Mega CD PAL BIOS should be located at: /home/pi/libretro/system/bios_CD_E.bin
RetroArch: rarch_log_libretro: [libretro INFO] :: Sega CD NTSC-U BIOS should be located at: /home/pi/libretro/system/bios_CD_U.bin
RetroArch: rarch_log_libretro: [libretro INFO] :: Mega CD NTSC-J BIOS should be located at: /home/pi/libretro/system/bios_CD_J.bin
RetroArch: rarch_log_libretro: [libretro INFO] :: Mega CD PAL BRAM is located at: /home/pi/libretro/system/scd_E.brm
RetroArch: rarch_log_libretro: [libretro INFO] :: Sega CD NTSC-U BRAM is located at: /home/pi/libretro/system/scd_U.brm
RetroArch: rarch_log_libretro: [libretro INFO] :: Mega CD NTSC-J BRAM is located at: /home/pi/libretro/system/scd_J.brm
RetroArch: rarch_log_libretro: [libretro INFO] :: Mega CD RAM CART is located at: /home/pi/libretro/system/cart.brm
RetroArch: rarch_log_libretro: [libretro INFO] :: INFORMATION - Loading 1048576 bytes ...
[New Thread 0x769d5470 (LWP 7930)]
RetroArch [WARN] :: udev_input_init :: [udev]: Couldn't open any keyboard, mouse or touchpad. Are permissions set correctly for /dev/input/event*?
[New Thread 0x74174470 (LWP 7931)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x769d5470 (LWP 7930)]
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x00081ac4 in thread_loop ()
#2  0x000804b0 in thread_wrap ()
#3  0x76ddbc00 in start_thread () from /lib/arm-linux-gnueabihf/libpthread.so.0
#4  0x76c91728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
#5  0x76c91728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
This is on Raspbian, fully updated

AmigaGamer
Posts: 90
Joined: Sat Feb 01, 2014 9:02 pm

Re: RetroArch on Raspbian: the tutorial

Mon May 04, 2015 9:26 am

Steev,

Ive been using the dispmanx driver without problems for a few months now, only minor problem i have with it is the text notifications from retroarch dont show in game (eg the yellow text- "X controller detected" etc dont pop up). That said i havent rebuilt retroarch for at least 2 weeks so it might be an issue with a recent commit. Ill try rebuilding later when i get home (just had 2 awesome days at the Replay Blackpool retrogaming event - so its emulator time when i get home)

AmigaGamer
Posts: 90
Joined: Sat Feb 01, 2014 9:02 pm

Re: RetroArch on Raspbian: the tutorial

Mon May 04, 2015 8:18 pm

Tested tonight with the latest retroarch git, clean config file- having problems also :(
built with
./configure --disable-x11 --enable-floathard --enable-neon --disable-ffmpeg --enable-udev --disable-sdl --disable-pulse --disable-oss --enable-dispmanx
started retroarch and changed driver to dispmanx
exit out then loaded retroarch again, got a segfault.

Code: Select all

Starting program: /home/pi/retroarch/retroarch
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0x766f7470 (LWP 4565)]
[New Thread 0x75ef7470 (LWP 4566)]
[New Thread 0x756f7470 (LWP 4567)]
[New Thread 0x74ef7470 (LWP 4568)]
[New Thread 0x74696470 (LWP 4569)]
[New Thread 0x73c3e470 (LWP 4570)]

Program received signal SIGSEGV, Segmentation fault.
0x76fcfbb0 in memcpy () from /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so
(gdb) bt
#0  0x76fcfbb0 in memcpy () from /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so
#1  0x00143f34 in ?? ()
#2  0x00143f34 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

steev
Posts: 87
Joined: Fri Jan 27, 2012 5:08 pm

Re: RetroArch on Raspbian: the tutorial

Tue May 05, 2015 6:20 pm

In my case, I just had to delete ~/.config/retroarch and all is working again.

AmigaGamer
Posts: 90
Joined: Sat Feb 01, 2014 9:02 pm

Re: RetroArch on Raspbian: the tutorial

Tue May 05, 2015 6:43 pm

working for me as well now at commit 049e570 (may 5th)

my old config file seems to be working too, so not sure what the problem was when i compiled yesterday.

dennmtr
Posts: 27
Joined: Sun Feb 15, 2015 1:06 pm
Location: Athens
Contact: Website

Re: RetroArch on Raspbian: the tutorial

Sat May 09, 2015 7:51 pm

Code: Select all

-c -o obj-unix/input/drivers_hid/libusb_hid.o input/drivers_hid/libusb_hid.c
input/drivers_hid/libusb_hid.c:28:4: error: unknown type name ‘libusb_hotplug_callback_handle’
    libusb_hotplug_callback_handle hp;
    ^
input/drivers_hid/libusb_hid.c:357:34: error: unknown type name ‘libusb_hotplug_event’
       struct libusb_device *dev, libusb_hotplug_event event, void *user_data)
                                  ^
input/drivers_hid/libusb_hid.c: In function ‘libusb_hid_free’:
input/drivers_hid/libusb_hid.c:468:4: warning: implicit declaration of function ‘libusb_hotplug_dere                                                                                            gister_callback’ [-Wimplicit-function-declaration]
    libusb_hotplug_deregister_callback(NULL, hid->hp);
    ^
input/drivers_hid/libusb_hid.c: In function ‘libusb_hid_init’:
input/drivers_hid/libusb_hid.c:501:31: error: ‘LIBUSB_CAP_HAS_HOTPLUG’ undeclared (first use in this                                                                                             function)
    if (!libusb_has_capability(LIBUSB_CAP_HAS_HOTPLUG))
                               ^
input/drivers_hid/libusb_hid.c:501:31: note: each undeclared identifier is reported only once for ea                                                                                            ch function it appears in
input/drivers_hid/libusb_hid.c:520:4: warning: implicit declaration of function ‘libusb_hotplug_regi                                                                                            ster_callback’ [-Wimplicit-function-declaration]
    ret = libusb_hotplug_register_callback(NULL,
    ^
input/drivers_hid/libusb_hid.c:521:10: error: ‘LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED’ undeclared (firs                                                                                            t use in this function)
          LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED |
          ^
input/drivers_hid/libusb_hid.c:522:10: error: ‘LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT’ undeclared (first u                                                                                            se in this function)
          LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT, 0,
          ^
input/drivers_hid/libusb_hid.c:523:10: error: ‘LIBUSB_HOTPLUG_MATCH_ANY’ undeclared (first use in th                                                                                            is function)
          LIBUSB_HOTPLUG_MATCH_ANY,
          ^
input/drivers_hid/libusb_hid.c:526:10: error: ‘libusb_hid_hotplug_callback’ undeclared (first use in                                                                                             this function)
          libusb_hid_hotplug_callback,
          ^
Makefile:97: recipe for target 'obj-unix/input/drivers_hid/libusb_hid.o' failed
make: *** [obj-unix/input/drivers_hid/libusb_hid.o] Error 1
unknown error even libusb, libusb1 dev packages installed. i didnts have these errors on the older source releases compile

modifing make.common to skip libusb then ... dispmanx, no luck ...

Code: Select all

-o obj-unix/gfx/drivers/dispmanx_gfx.o gfx/
gfx/drivers/dispmanx_gfx.c:601:4: error: ‘dispmanx_get_frame_count’ undeclared here (not in a function)
    dispmanx_get_frame_count,
    ^
In file included from /usr/include/interface/vcos/vcos.h:185:0,
                 from /usr/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /usr/include/bcm_host.h:50,
                 from gfx/drivers/dispmanx_gfx.c:29:
/usr/include/interface/vcos/vcos_timer.h:112:6: warning: inline function ‘vcos_timer_delete’ declared but never defined
 void vcos_timer_delete(VCOS_TIMER_T *timer);
      ^
/usr/include/interface/vcos/vcos_timer.h:109:6: warning: inline function ‘vcos_timer_reset’ declared but never defined
 void vcos_timer_reset(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/usr/include/interface/vcos/vcos_timer.h:102:6: warning: inline function ‘vcos_timer_cancel’ declared but never defined
 void vcos_timer_cancel(VCOS_TIMER_T *timer);
      ^
/usr/include/interface/vcos/vcos_timer.h:95:6: warning: inline function ‘vcos_timer_set’ declared but never defined
 void vcos_timer_set(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/usr/include/interface/vcos/vcos_timer.h:80:15: warning: inline function ‘vcos_timer_create’ declared but never defined
 VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer,
               ^
In file included from /usr/include/interface/vcos/vcos.h:127:0,
                 from /usr/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /usr/include/bcm_host.h:50,
 from gfx/drivers/dispmanx_gfx.c:29:
/usr/include/interface/vcos/vcos_thread.h:269:6: warning: inline function ‘vcos_thread_resume’ declared but never defined
 void vcos_thread_resume(VCOS_THREAD_T *thread);
      ^
/usr/include/interface/vcos/vcos_thread.h:262:5: warning: inline function ‘vcos_thread_running’ declared but never defined
 int vcos_thread_running(VCOS_THREAD_T *thread);
     ^
/usr/include/interface/vcos/vcos_thread.h:251:15: warning: inline function ‘vcos_change_preemption’ declared but never defined
 VCOS_UNSIGNED vcos_change_preemption(VCOS_UNSIGNED pe);
               ^
/usr/include/interface/vcos/vcos_thread.h:234:6: warning: inline function ‘vcos_thread_relinquish’ declared but never defined
 void vcos_thread_relinquish(void);
      ^
/usr/include/interface/vcos/vcos_thread.h:186:15: warning: inline function ‘vcos_thread_get_affinity’ declared but never defined
 VCOS_UNSIGNED vcos_thread_get_affinity(VCOS_THREAD_T *thread);
               ^
In file included from /usr/include/interface/vcos/vcos.h:185:0,
                 from /usr/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /usr/include/bcm_host.h:50,
                 from gfx/drivers/dispmanx_gfx.c:29:
/usr/include/interface/vcos/vcos_timer.h:112:6: warning: inline function ‘vcos_timer_delete’ declared but never defined
 void vcos_timer_delete(VCOS_TIMER_T *timer);
      ^
/usr/include/interface/vcos/vcos_timer.h:109:6: warning: inline function ‘vcos_timer_reset’ declared but never defined
 void vcos_timer_reset(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/usr/include/interface/vcos/vcos_timer.h:102:6: warning: inline function ‘vcos_timer_cancel’ declared but never defined
 void vcos_timer_cancel(VCOS_TIMER_T *timer);
      ^
/usr/include/interface/vcos/vcos_timer.h:95:6: warning: inline function ‘vcos_timer_set’ declared but never defined
 void vcos_timer_set(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/usr/include/interface/vcos/vcos_timer.h:80:15: warning: inline function ‘vcos_timer_create’ declared but never defined
 VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer,
               ^
In file included from /usr/include/interface/vcos/vcos.h:127:0,
                 from /usr/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /usr/include/bcm_host.h:50,
                 from gfx/drivers/dispmanx_gfx.c:29:
/usr/include/interface/vcos/vcos_thread.h:269:6: warning: inline function ‘vcos_thread_resume’ declared but never defined
 void vcos_thread_resume(VCOS_THREAD_T *thread);
      ^
/usr/include/interface/vcos/vcos_thread.h:262:5: warning: inline function ‘vcos_thread_running’ de
 int vcos_thread_running(VCOS_THREAD_T *thread);
     ^
/usr/include/interface/vcos/vcos_thread.h:251:15: warning: inline function ‘vcos_change_preemption
 VCOS_UNSIGNED vcos_change_preemption(VCOS_UNSIGNED pe);
               ^
/usr/include/interface/vcos/vcos_thread.h:234:6: warning: inline function ‘vcos_thread_relinquish’
 void vcos_thread_relinquish(void);
      ^
/usr/include/interface/vcos/vcos_thread.h:186:15: warning: inline function ‘vcos_thread_get_affini
 VCOS_UNSIGNED vcos_thread_get_affinity(VCOS_THREAD_T *thread);
               ^
gfx/drivers/dispmanx_gfx.c:592:17: warning: ‘dispmanx_gfx_get_frame_count’ defined but not used [-
 static uint64_t dispmanx_gfx_get_frame_count(void *data)
                 ^
Makefile:97: recipe for target 'obj-unix/gfx/drivers/dispmanx_gfx.o' failed
make: *** [obj-unix/gfx/drivers/dispmanx_gfx.o] Error 1

edit:

FIX 1: https://github.com/duganchen/RetroArch/ ... 7e97c8fc67
FIX 2: For Dispmanx to work as of 22/5/15 try this build https://github.com/libretro/RetroArch/t ... 99f2bab7a0 . 2 commits before "Create video_poke get_frame_count function && Create local frame_count variables again in video_drivers " which make the error
FIX3: disabling gl drivers and enabling only dispman x you will need to do this edit on some files to work, if you dont u will have error compile messages in type of "gfx_ctx_videocore" error. https://github.com/heuripedes/RetroArch ... 94a5d38c35
Last edited by dennmtr on Fri May 22, 2015 8:11 pm, edited 2 times in total.

Micha1982
Posts: 261
Joined: Wed Oct 03, 2012 11:18 am

Re: RetroArch on Raspbian: the tutorial

Thu May 14, 2015 3:28 am

I gave up now.

Who can tell me how to setup a simple Usb-controller for NES (Fceumm), please?

I already found out that I am able to enter the original setup for Gpsp (?) (the GBA-Emulator) which belongs to it inside a game with F10, If I change controller-setup there, it works until I leave it and start another game. But how to save - and furthermore how to config for all the other systems?

And beside that, if I choose a complete install, how do I remove some of the emulators afterwards? I do not need 2 SNes-Emus or something like that, Atari and so on - how can I uninstall(NOT only hiding/removing from ESMenu)?

Edit:
Checked again -
changes in retropie-setup-script-settings (...post installs -> controller-config) not affect buttonsettings in Snes(9X)-Emulator. I can setup whatever I want without changes in 'gameplay' .

If I try

Code: Select all

/opt/retropie/emulators/retroarch $ sudo ./retroarch-joyconfig -j 1
(I have no /installdir/..,)
it says

Code: Select all

RetroArch: input_joypad_init_first: Found joypad driver: "udev".
Couldn't open joystick #1.
Any ideas?
Alles, was schiefgehen kann, wird auch schiefgehen.

Micha1982
Posts: 261
Joined: Wed Oct 03, 2012 11:18 am

Re: RetroArch on Raspbian: the tutorial

Thu May 14, 2015 5:59 am

I now edited /opt/retropie/configs/all/retroarch.cfg (retroarch-joyconfig >> ...), copied that file also to the second place located (/opt/retropie/emulators/snes9x) - without change.

Please help, whats wrong here??

The emulator seems to not use the config I enter there - but why? Whats wrong?
Alles, was schiefgehen kann, wird auch schiefgehen.

AmigaGamer
Posts: 90
Joined: Sat Feb 01, 2014 9:02 pm

Re: RetroArch on Raspbian: the tutorial

Thu May 21, 2015 10:52 pm

@Vanfanel
Small problem with compiling dispmanx driver with recent code.
I always configure with ./configure --disable-x11 --enable-floathard --enable-neon --disable-ffmpeg --enable-udev --disable-sdl --disable-pulse --disable-oss --enable-dispmanx

works fine without --enable-dispmanx

Code: Select all

CC gfx/drivers/dispmanx_gfx.c
gfx/drivers/dispmanx_gfx.c:601:4: error: ‘dispmanx_get_frame_count’ undeclared here (not in a function)
    dispmanx_get_frame_count,
    ^
In file included from /opt/vc/include/interface/vcos/vcos.h:185:0,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/bcm_host.h:50,
                 from gfx/drivers/dispmanx_gfx.c:29:
/opt/vc/include/interface/vcos/vcos_timer.h:112:6: warning: inline function ‘vcos_timer_delete’ declared but never defined [enabled by default]
 void vcos_timer_delete(VCOS_TIMER_T *timer);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:109:6: warning: inline function ‘vcos_timer_reset’ declared but never defined [enabled by default]
 void vcos_timer_reset(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:102:6: warning: inline function ‘vcos_timer_cancel’ declared but never defined [enabled by default]
 void vcos_timer_cancel(VCOS_TIMER_T *timer);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:95:6: warning: inline function ‘vcos_timer_set’ declared but never defined [enabled by default]
 void vcos_timer_set(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:80:15: warning: inline function ‘vcos_timer_create’ declared but never defined [enabled by default]
 VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer,
               ^
In file included from /opt/vc/include/interface/vcos/vcos.h:127:0,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/bcm_host.h:50,
                 from gfx/drivers/dispmanx_gfx.c:29:
/opt/vc/include/interface/vcos/vcos_thread.h:269:6: warning: inline function ‘vcos_thread_resume’ declared but never defined [enabled by default]
 void vcos_thread_resume(VCOS_THREAD_T *thread);
      ^
/opt/vc/include/interface/vcos/vcos_thread.h:262:5: warning: inline function ‘vcos_thread_running’ declared but never defined [enabled by default]
 int vcos_thread_running(VCOS_THREAD_T *thread);
     ^
/opt/vc/include/interface/vcos/vcos_thread.h:251:15: warning: inline function ‘vcos_change_preemption’ declared but never defined [enabled by default]
 VCOS_UNSIGNED vcos_change_preemption(VCOS_UNSIGNED pe);
               ^
/opt/vc/include/interface/vcos/vcos_thread.h:234:6: warning: inline function ‘vcos_thread_relinquish’ declared but never defined [enabled by default]
 void vcos_thread_relinquish(void);
      ^
/opt/vc/include/interface/vcos/vcos_thread.h:186:15: warning: inline function ‘vcos_thread_get_affinity’ declared but never defined [enabled by default]
 VCOS_UNSIGNED vcos_thread_get_affinity(VCOS_THREAD_T *thread);
               ^
In file included from /opt/vc/include/interface/vcos/vcos.h:185:0,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/bcm_host.h:50,
                 from gfx/drivers/dispmanx_gfx.c:29:
/opt/vc/include/interface/vcos/vcos_timer.h:112:6: warning: inline function ‘vcos_timer_delete’ declared but never defined [enabled by default]
 void vcos_timer_delete(VCOS_TIMER_T *timer);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:109:6: warning: inline function ‘vcos_timer_reset’ declared but never defined [enabled by default]
 void vcos_timer_reset(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:102:6: warning: inline function ‘vcos_timer_cancel’ declared but never defined [enabled by default]
 void vcos_timer_cancel(VCOS_TIMER_T *timer);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:95:6: warning: inline function ‘vcos_timer_set’ declared but never defined [enabled by default]
 void vcos_timer_set(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:80:15: warning: inline function ‘vcos_timer_create’ declared but never defined [enabled by default]
 VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer,
               ^
In file included from /opt/vc/include/interface/vcos/vcos.h:127:0,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/bcm_host.h:50,
                 from gfx/drivers/dispmanx_gfx.c:29:
/opt/vc/include/interface/vcos/vcos_thread.h:269:6: warning: inline function ‘vcos_thread_resume’ declared but never defined [enabled by default]
 void vcos_thread_resume(VCOS_THREAD_T *thread);
      ^
/opt/vc/include/interface/vcos/vcos_thread.h:262:5: warning: inline function ‘vcos_thread_running’ declared but never defined [enabled by default]
 int vcos_thread_running(VCOS_THREAD_T *thread);
     ^
/opt/vc/include/interface/vcos/vcos_thread.h:251:15: warning: inline function ‘vcos_change_preemption’ declared but never defined [enabled by default]
 VCOS_UNSIGNED vcos_change_preemption(VCOS_UNSIGNED pe);
               ^
/opt/vc/include/interface/vcos/vcos_thread.h:234:6: warning: inline function ‘vcos_thread_relinquish’ declared but never defined [enabled by default]
 void vcos_thread_relinquish(void);
      ^
/opt/vc/include/interface/vcos/vcos_thread.h:186:15: warning: inline function ‘vcos_thread_get_affinity’ declared but never defined [enabled by default]
 VCOS_UNSIGNED vcos_thread_get_affinity(VCOS_THREAD_T *thread);
               ^
gfx/drivers/dispmanx_gfx.c:592:17: warning: ‘dispmanx_gfx_get_frame_count’ defined but not used [-Wunused-function]
 static uint64_t dispmanx_gfx_get_frame_count(void *data)
                 ^
Makefile:103: recipe for target 'obj-unix/gfx/drivers/dispmanx_gfx.o' failed
make: *** [obj-unix/gfx/drivers/dispmanx_gfx.o] Error 1

Micha1982
Posts: 261
Joined: Wed Oct 03, 2012 11:18 am

Re: RetroArch on Raspbian: the tutorial

Sun Jun 07, 2015 10:54 am

After I managed to setup my controller, I saw that there was no theme as mentioned in wiki (I compiled Emulationstation and 2-3 other emus one by one with installscript from source)...
(but it worked fine after downloading the standard-one from the homepage and unzipping to the right place)

Maybe the sorting of the emulators in the install-script has a good reason which I could not see until now - but I have to say, that understanding how everything in Retropie works and what belongs to what would have been much easier for newbies, if there would have been an other kind of sorting!

Anyway, now mostly emus now working fine for me, what I miss is an 'autoframeskip'-option for lr-cores - as seen in psx-rearmed for example...but it's awesome how some alphas like Dreamcast or experimental N64 are already working...keep up the good work

Edit: The freezes I had often were related to standard turbo-overclocking option at raspian-setup - after I set down ram-speed manually in config.txt everything was fine.
Alles, was schiefgehen kann, wird auch schiefgehen.

iption
Posts: 10
Joined: Sun Sep 27, 2015 8:22 pm

Re: RetroArch on Raspbian: the tutorial

Tue Nov 03, 2015 7:58 pm

This did not work on my raspbian jessie. I got the following last lines:

Code: Select all

obj-unix/gfx/video_context_driver.o: In function `find_prev_gfx_context_driver':
video_context_driver.c:(.text+0x6ec): undefined reference to `gfx_ctx_videocore'
obj-unix/gfx/video_context_driver.o: In function `find_next_context_driver':
video_context_driver.c:(.text+0x770): undefined reference to `gfx_ctx_videocore'
obj-unix/gfx/video_context_driver.o: In function `gfx_ctx_init_first':
video_context_driver.c:(.text+0x8d8): undefined reference to `gfx_ctx_videocore'
obj-unix/gfx/video_context_driver.o:(.rodata+0x0): undefined reference to `gfx_ctx_videocore'
obj-unix/gfx/drivers/dispmanx_gfx.o: In function `dispmanx_surface_free':
dispmanx_gfx.c:(.text+0xc8): undefined reference to `vc_dispmanx_resource_delete'
dispmanx_gfx.c:(.text+0xfc): undefined reference to `vc_dispmanx_update_start'
dispmanx_gfx.c:(.text+0x108): undefined reference to `vc_dispmanx_element_remove'
dispmanx_gfx.c:(.text+0x110): undefined reference to `vc_dispmanx_update_submit_sync'
obj-unix/gfx/drivers/dispmanx_gfx.o: In function `dispmanx_surface_setup':
dispmanx_gfx.c:(.text+0x2a0): undefined reference to `vc_dispmanx_rect_set'
dispmanx_gfx.c:(.text+0x2bc): undefined reference to `vc_dispmanx_rect_set'
dispmanx_gfx.c:(.text+0x2e0): undefined reference to `vc_dispmanx_rect_set'
dispmanx_gfx.c:(.text+0x318): undefined reference to `vc_dispmanx_resource_create'
dispmanx_gfx.c:(.text+0x33c): undefined reference to `vc_dispmanx_update_start'
dispmanx_gfx.c:(.text+0x378): undefined reference to `vc_dispmanx_element_add'
dispmanx_gfx.c:(.text+0x390): undefined reference to `vc_dispmanx_update_submit_sync'
obj-unix/gfx/drivers/dispmanx_gfx.o: In function `dispmanx_gfx_free':
dispmanx_gfx.c:(.text+0x438): undefined reference to `vc_dispmanx_display_close'
dispmanx_gfx.c:(.text+0x43c): undefined reference to `bcm_host_deinit'
obj-unix/gfx/drivers/dispmanx_gfx.o: In function `dispmanx_surface_update':
dispmanx_gfx.c:(.text+0x544): undefined reference to `vc_dispmanx_resource_write_data'
dispmanx_gfx.c:(.text+0x54c): undefined reference to `vc_dispmanx_update_start'
dispmanx_gfx.c:(.text+0x55c): undefined reference to `vc_dispmanx_element_change_source'
dispmanx_gfx.c:(.text+0x56c): undefined reference to `vc_dispmanx_update_submit'
obj-unix/gfx/drivers/dispmanx_gfx.o: In function `dispmanx_gfx_init':
dispmanx_gfx.c:(.text+0x5bc): undefined reference to `bcm_host_init'
dispmanx_gfx.c:(.text+0x5c4): undefined reference to `vc_dispmanx_display_open'
dispmanx_gfx.c:(.text+0x5dc): undefined reference to `graphics_get_display_size'
collect2: error: ld returned 1 exit status
Makefile:115: recipe for target 'retroarch' failed
make: *** [retroarch] Error 1

kaedwood
Posts: 1
Joined: Wed Dec 09, 2015 10:32 pm

Re: RetroArch on Raspbian: the tutorial

Wed Dec 09, 2015 10:42 pm

I can follow the tutorial in the raspberry pi 2 with OS raspbian-ua-netinst ??
thanks

User avatar
DrDeath
Posts: 7
Joined: Sun Mar 03, 2013 7:00 am

Re: RetroArch on Raspbian: the tutorial

Wed Mar 09, 2016 10:22 pm

got the error when trying to compile retroarch on raspberry pi 3
obj-unix/gfx/video_context_driver.o: In function `gfx_ctx_init_first':
video_context_driver.c:(.text+0x188): undefined reference to `gfx_ctx_videocore'
obj-unix/gfx/video_context_driver.o: In function `gfx_ctx_ctl':
video_context_driver.c:(.text+0x780): undefined reference to `gfx_ctx_videocore'
obj-unix/gfx/video_context_driver.o:(.rodata+0x0): undefined reference to `gfx_ctx_videocore'
obj-unix/gfx/drivers/dispmanx_gfx.o: In function `dispmanx_surface_free':
dispmanx_gfx.c:(.text+0xc8): undefined reference to `vc_dispmanx_resource_delete'
dispmanx_gfx.c:(.text+0xfc): undefined reference to `vc_dispmanx_update_start'
dispmanx_gfx.c:(.text+0x108): undefined reference to `vc_dispmanx_element_remove'
dispmanx_gfx.c:(.text+0x110): undefined reference to `vc_dispmanx_update_submit_sync'
obj-unix/gfx/drivers/dispmanx_gfx.o: In function `dispmanx_surface_setup':
dispmanx_gfx.c:(.text+0x2a4): undefined reference to `vc_dispmanx_rect_set'
dispmanx_gfx.c:(.text+0x2c0): undefined reference to `vc_dispmanx_rect_set'
dispmanx_gfx.c:(.text+0x2dc): undefined reference to `vc_dispmanx_rect_set'
dispmanx_gfx.c:(.text+0x314): undefined reference to `vc_dispmanx_resource_create'
dispmanx_gfx.c:(.text+0x338): undefined reference to `vc_dispmanx_update_start'
dispmanx_gfx.c:(.text+0x374): undefined reference to `vc_dispmanx_element_add'
dispmanx_gfx.c:(.text+0x38c): undefined reference to `vc_dispmanx_update_submit_sync'
obj-unix/gfx/drivers/dispmanx_gfx.o: In function `dispmanx_gfx_free':
dispmanx_gfx.c:(.text+0x438): undefined reference to `vc_dispmanx_display_close'
dispmanx_gfx.c:(.text+0x43c): undefined reference to `bcm_host_deinit'
obj-unix/gfx/drivers/dispmanx_gfx.o: In function `dispmanx_surface_update':
dispmanx_gfx.c:(.text+0x544): undefined reference to `vc_dispmanx_resource_write_data'
dispmanx_gfx.c:(.text+0x54c): undefined reference to `vc_dispmanx_update_start'
dispmanx_gfx.c:(.text+0x55c): undefined reference to `vc_dispmanx_element_change_source'
dispmanx_gfx.c:(.text+0x56c): undefined reference to `vc_dispmanx_update_submit'
obj-unix/gfx/drivers/dispmanx_gfx.o: In function `dispmanx_gfx_init':
dispmanx_gfx.c:(.text+0x5c0): undefined reference to `bcm_host_init'
dispmanx_gfx.c:(.text+0x5c8): undefined reference to `vc_dispmanx_display_open'
dispmanx_gfx.c:(.text+0x5e0): undefined reference to `graphics_get_display_size'
collect2: error: ld returned 1 exit status
Makefile:124: recipe for target 'retroarch' failed
make: *** [retroarch] Error 1
{ Theory is when you know everything but nothing works.
Practice is everything works but no one knows why.
In our laboratory, theory and practice are combined:
nothing works and no one knows why!!! }
-- Albert einstein

Boydde3de
Posts: 1
Joined: Sun Mar 13, 2016 2:12 am

Re: RetroArch on Raspbian: the tutorial

Sun Mar 13, 2016 2:16 am

I can't seem to get it to work.
Followed the tutorial by the letter but RetroArch won't start.

If I try to run it through a command I get no feedback at all.
When I run it through the file manager nothing happens.
And when I run it with terminal then the terminal immediately disappears.

I'm quite new to this but does anyone have an idea of what is causing the problem?

Thanks in forward

cacophony555
Posts: 140
Joined: Sat Jan 18, 2014 5:54 pm

Re: RetroArch on Raspbian: the tutorial

Sun Mar 13, 2016 5:27 pm

Boydde3de wrote:I can't seem to get it to work.
Followed the tutorial by the letter but RetroArch won't start.

If I try to run it through a command I get no feedback at all.
When I run it through the file manager nothing happens.
And when I run it with terminal then the terminal immediately disappears.

I'm quite new to this but does anyone have an idea of what is causing the problem?

Thanks in forward
Can you post the exact command you're typing to run retroarch?

For example:
./retroarch -L fceumm_libretro.so nes/Mario.nes

and then also post the results of these three commands (replacing the bolded parameter as appropriate for your setup):
ls -l retroarch
ls -l fceumm_libretro.so
ls -l nes/Mario.nes

This will tell us if the files are in the locations you're expecting

User avatar
DrDeath
Posts: 7
Joined: Sun Mar 03, 2013 7:00 am

Re: RetroArch on Raspbian: the tutorial

Tue Mar 15, 2016 1:26 am

ok the developer upgrade retroarch files, and it compiled and work find on my raspberry pi 3 by just running:
./configure --disable-x11 --disable-ffmpeg
make
{ Theory is when you know everything but nothing works.
Practice is everything works but no one knows why.
In our laboratory, theory and practice are combined:
nothing works and no one knows why!!! }
-- Albert einstein

Zander_0mega
Posts: 1
Joined: Wed Jun 29, 2016 1:13 am

Re: RetroArch on Raspbian: the tutorial

Wed Jun 29, 2016 1:30 am

fivealive,
I am a beginner with Linux too, and I was doing exactly what you were doing, and I ran into your same problem. Before typing ¨./configure,¨ and after typing ¨git submodule init && git submodule update,¨ type this:

cd picodrive

I guess this was assumed, but, of course, I had no idea since I am not close to being a professional. My dad actually had to help me with this one!

Anyway, hope I helped!

--Zander_0mega

dime0000
Posts: 5
Joined: Mon Jul 11, 2016 1:49 am

Re: RetroArch on Raspbian: the tutorial

Mon Jul 11, 2016 1:52 am

im trying to build this thing on my Pi3, but i keep getting the following error.. thought?

CC gfx/drivers/drm_gfx.c
In file included from gfx/drivers/drm_gfx.c:16:0:
/usr/include/xf86drm.h:40:17: fatal error: drm.h: No such file or directory
#include <drm.h>
^
compilation terminated.
Makefile:133: recipe for target 'obj-unix/gfx/drivers/drm_gfx.o' failed
make: *** [obj-unix/gfx/drivers/drm_gfx.o] Error 1

User avatar
MojaMike
Posts: 5
Joined: Thu Sep 08, 2016 12:33 am

Re: RetroArch on Raspbian: the tutorial

Thu Sep 08, 2016 11:25 pm

DrDeath wrote:ok the developer upgrade retroarch files, and it compiled and work find on my raspberry pi 3 by just running:
./configure --disable-x11 --disable-ffmpeg
make
Thank you, DrDeath! -- Was just having the same problem and your solution cleared the error.

fakizinho
Posts: 4
Joined: Wed Sep 28, 2016 2:07 am

Re: RetroArch on Raspbian: the tutorial

Fri Sep 30, 2016 11:26 am

Can anyone help me making sdl2 work?
I ran ./configure with --disable-sdl --enable-sdl2 (And make after it, obviously), changed the video driver to sdl2 but when I launched retroarch I had a buggy window for Retroarch (See http://imgur.com/a/idNE3). Is there a package i need to install? Any help would be extremely appreciated.

Just for clarification: the reason I am doing this is because when using gl as video driver i don't have the option to make it windowed and retroarch does not accept any faked input (currently using xdotool) because it is not recognized as a window.

oXL0C0Xo
Posts: 1
Joined: Fri Dec 30, 2016 7:37 am

Re: RetroArch on Raspbian: the tutorial

Fri Dec 30, 2016 7:40 am

Is there a updated tutorial on getting RetroArch running on the pi3 B? I have tried multiple solutions provided in this thread, but could not get any of them to work correctly. Any information would be greatly appreciated!

RivenSkaye
Posts: 2
Joined: Mon Oct 09, 2017 3:37 pm

Re: RetroArch on Raspbian: the tutorial

Mon Oct 09, 2017 4:01 pm

Following the instructions carefully, removing any --disable options my clean raspbian doesn't have (only uninstalled some of the learning software) , I keep getting the error "Makefile:151: recipe for target 'retroarch' failed", coming from the video driver and it has something to do with dispmanx and the video drivers, as that is where it fails
Always remember that you are unique. Just like everybody else

Return to “Gaming”