[GUIDE] Installing EmulationStation

dasaint80
Posts: 62
Joined: Thu Feb 28, 2013 3:16 am
languages_spoken: english
ODROIDs: U2
Location: Philly, PA
Has thanked: 0
Been thanked: 0
Contact:

[GUIDE] Installing EmulationStation

Unread post by dasaint80 » Sat Oct 04, 2014 8:25 am

I've gotten some request on how to install EmulationStation. I've tested this on most Images. Currently I'm running it on GameStation Turbo with no Issues.


Thanks to AreaScout and Meveric who helped me out on this!! BIG THANKS!!

First you need GCC/G++ 4.7.

Code: Select all

sudo apt-get install gcc-4.7 g++-4.7
If you have to switch from 4.6 to 4.7.

Code: Select all

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
Then run

Code: Select all

sudo update-alternatives --config gcc
and select the option for 4.7.

Now lets get to EmulationStation Install.

Update linux.

Code: Select all

sudo apt-get update && sudo apt-get upgrade
Install dependencies.

Code: Select all

sudo apt-get install -y libsdl2-dev libboost-system-dev libboost-filesystem-dev libboost-date-time-dev libfreeimage-dev libfreetype6-dev libeigen3-dev libcurl4-openssl-dev libasound2-dev libgl1-mesa-dev cmake git


If you're running GameStation Turbo install libgl and libglues under root, or you can install Meveric Repository.

Code: Select all

sudo apt-get install libgl-odroid libglues-odroid

Download the latest source.

Code: Select all

git clone https://github.com/Aloshi/EmulationStation
Compile and install it. MOST IMPORTANT!!! PLEASE FOLLOW THESE STEPS CAREFULLY.... DON'T SKIP A STEP!!!

Code: Select all

cd EmulationStation
git checkout unstable
cmake .
make
sudo make install
Once installed run

Code: Select all

export LD_LIBRARY_PATH=/usr/local/lib
Then just follow the instructions for configuring the xml file!EmulationStation

OPTIONAL
every time you restart your odroid you'll have to re enter prior to loading Emulation Station.

Code: Select all

export LD_LIBRARY_PATH=/usr/local/lib
.

To fix this.

Code: Select all

sudo nano ~/.bashrc
scroll all the way to the end of file. and add this line.

Code: Select all

export LD_LIBRARY_PATH=/usr/local/lib
Save file and exit nano

Once back on Terminal prompt type.

Code: Select all

sudo /sbin/ldconfig
then

Code: Select all

sudo reboot
All done.

Enjoy

Steve
Last edited by dasaint80 on Sun Oct 05, 2014 8:54 am, edited 4 times in total.

Haas360
Posts: 27
Joined: Sat Aug 23, 2014 1:32 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by Haas360 » Sat Oct 04, 2014 8:43 am

Very very nice!! BBeen wanting this for a while thank you so Much!!

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Sat Oct 04, 2014 8:00 pm

created a .deb file that should handle all dependencies.
I also added the simple themes provided by EmulationStation, just make sure you select "simple" as a theme set.
It can be downloaded from my repository (all/testing package list) via:

Code: Select all

apt-get install emulationstation-odroid
Not sure if it's just me, but when i quit a game and it goes back to emulation station, the menu is just blank white and i can't see anything anymore.. i can still start games, just don't see what i selected.
Anyone else having that issue?
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

dasaint80
Posts: 62
Joined: Thu Feb 28, 2013 3:16 am
languages_spoken: english
ODROIDs: U2
Location: Philly, PA
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by dasaint80 » Sat Oct 04, 2014 8:04 pm

Yea I get that too if I hit F4 the program crashes and it brings you back to terminal. Not sure why it does that I was gonna post it in their github later today
Last edited by dasaint80 on Sun Oct 05, 2014 5:54 am, edited 1 time in total.

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Sat Oct 04, 2014 8:18 pm

it's very odd that the project uses so many different approaches..
SDL2 should be able to handle all the 3D rendering necessary, so call OpenGL (or OpenGL ES with RPi) should not be necessary at all.
I have a SDL2 that is compiled against OpenGL ES and for this would be perfect to handle all the 3D parts needed for that project.
Also it's very bad, that they made OpenGL ES support for RPi only while it would work on so many other platforms as well.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

dasaint80
Posts: 62
Joined: Thu Feb 28, 2013 3:16 am
languages_spoken: english
ODROIDs: U2
Location: Philly, PA
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by dasaint80 » Sat Oct 04, 2014 8:42 pm

Yea its a work in progress. I just like it cause it has a much nicer layout... ill see what I can do to make it run a little smoother...

srdz
Posts: 30
Joined: Sat Jun 07, 2014 8:10 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by srdz » Sun Oct 05, 2014 12:31 am

Code: Select all

odroid@lg42srv:~/EmulationStation$ cmake .
Looking for bcm_host.h
bcm_host.h not found
-- Looking for FreeImage...
-- checking for module 'freeimage'
--   package 'freeimage' not found
-- Found FreeImage: optimized;/usr/lib/libfreeimage.so;debug;/usr/lib/libfreeimage.so
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  CMake/Packages/FindSDL2.cmake:163 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:37 (find_package)


-- Configuring incomplete, errors occurred!
why ? thanks

dasaint80
Posts: 62
Joined: Thu Feb 28, 2013 3:16 am
languages_spoken: english
ODROIDs: U2
Location: Philly, PA
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by dasaint80 » Sun Oct 05, 2014 12:34 am

What image are you using?

srdz
Posts: 30
Joined: Sat Jun 07, 2014 8:10 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by srdz » Sun Oct 05, 2014 12:44 am


dasaint80
Posts: 62
Joined: Thu Feb 28, 2013 3:16 am
languages_spoken: english
ODROIDs: U2
Location: Philly, PA
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by dasaint80 » Sun Oct 05, 2014 12:49 am

I'll have to test it out later. I'll reply once I tested it.
But it looks like sdl2 never got installed. If you have meveric repo installed try installing sdl2 packages

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Sun Oct 05, 2014 8:07 am

srdz wrote:

Code: Select all

odroid@lg42srv:~/EmulationStation$ cmake .
Looking for bcm_host.h
bcm_host.h not found
-- Looking for FreeImage...
-- checking for module 'freeimage'
--   package 'freeimage' not found
-- Found FreeImage: optimized;/usr/lib/libfreeimage.so;debug;/usr/lib/libfreeimage.so
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  CMake/Packages/FindSDL2.cmake:163 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:37 (find_package)


-- Configuring incomplete, errors occurred!
why ? thanks

Code: Select all

apt-get install libfreeimage-dev libsdl2-dev
make sure you have wheezy-backports in your repository (/etc/apt/sources.list)

Code: Select all

deb http://ftp.debian.org/debian wheezy-backports main contrib non-free
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

dasaint80
Posts: 62
Joined: Thu Feb 28, 2013 3:16 am
languages_spoken: english
ODROIDs: U2
Location: Philly, PA
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by dasaint80 » Sun Oct 05, 2014 10:09 am

Hey Meveric,

Do you also get this error after loading emulationstation via terminal?

Code: Select all

loaded library: libGLESv1_CM.so
glXGetProcAddress: glXQueryDrawable not found.
libGL: built on Sep 13 2014 10:15:24
loaded library: libEGL.so
ERROR: EGL Error detected: EGL_BAD_NATIVE_WINDOW (0x300B)
ERROR: EGL Error detected: EGL_BAD_MATCH (0x3009)
glXGetProcAddress: glXQueryDrawable not found.
ERROR: EGL Error detected: EGL_BAD_NATIVE_WINDOW (0x300B)
ERROR: EGL Error detected: EGL_BAD_MATCH (0x3009)
Any ideas?


Also this is the errors that display when we get the white screen while exiting emulators.

Code: Select all

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

lvl0: AudioManager Error - Unable to open SDL audio: ALSA: Couldn't open audio device: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

lvl0: VolumeControl::init() - Failed to attach to default card!

RetroArch: [libretro INFO] :: NstDatabase.xml path: /home/odroid/ROMS/NstDatabase.xml
RetroArch [WARN] :: [libretro WARN] :: NstDatabase.xml required to detect region and some mappers.
RetroArch: [libretro INFO] :: [Nestopia]: Machine is NTSC.
RetroArch [WARN] :: [GL]: Stock GLSL shaders will be used.
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

AL lib: alsa_open_playback: Could not open playback device 'default': Connection refused
RetroArch [ERROR] :: Failed to initialize audio driver. Will continue without audio.

RetroArch [ERROR] :: Failed to load state from "/media/USB20FD/roms/nes/1942 (Japan, USA).state".

glXGetProcAddress: glXQueryDrawable not found.
ERROR: EGL Error detected: EGL_BAD_NATIVE_WINDOW (0x300B)
ERROR: EGL Error detected: EGL_BAD_MATCH (0x3009)
glXGetProcAddress: glXQueryDrawable not found.
ERROR: EGL Error detected: EGL_BAD_NATIVE_WINDOW (0x300B)
ERROR: EGL Error detected: EGL_BAD_MATCH (0x3009)
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

lvl0: VolumeControl::init() - Failed to attach to default card!
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

lvl0: AudioManager Error - Unable to open SDL audio: ALSA: Couldn't open audio device: Connection refused

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Sun Oct 05, 2014 4:18 pm

dasaint80 wrote:Hey Meveric,

Do you also get this error after loading emulationstation via terminal?

Code: Select all

loaded library: libGLESv1_CM.so
glXGetProcAddress: glXQueryDrawable not found.
libGL: built on Sep 13 2014 10:15:24
loaded library: libEGL.so
ERROR: EGL Error detected: EGL_BAD_NATIVE_WINDOW (0x300B)
ERROR: EGL Error detected: EGL_BAD_MATCH (0x3009)
glXGetProcAddress: glXQueryDrawable not found.
ERROR: EGL Error detected: EGL_BAD_NATIVE_WINDOW (0x300B)
ERROR: EGL Error detected: EGL_BAD_MATCH (0x3009)
Yes and it's "normal" nothing too much to worry about. After all you are using faked OpenGL drivers not the real one.
But it might be worth trying to fix at least the EGL_BAD_NATIVE_WINDOW maybe it will help after the exit of a emulator.


dasaint80 wrote: Also this is the errors that display when we get the white screen while exiting emulators.

Code: Select all

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

lvl0: AudioManager Error - Unable to open SDL audio: ALSA: Couldn't open audio device: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

lvl0: VolumeControl::init() - Failed to attach to default card!

RetroArch: [libretro INFO] :: NstDatabase.xml path: /home/odroid/ROMS/NstDatabase.xml
RetroArch [WARN] :: [libretro WARN] :: NstDatabase.xml required to detect region and some mappers.
RetroArch: [libretro INFO] :: [Nestopia]: Machine is NTSC.
RetroArch [WARN] :: [GL]: Stock GLSL shaders will be used.
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

AL lib: alsa_open_playback: Could not open playback device 'default': Connection refused
RetroArch [ERROR] :: Failed to initialize audio driver. Will continue without audio.

RetroArch [ERROR] :: Failed to load state from "/media/USB20FD/roms/nes/1942 (Japan, USA).state".

glXGetProcAddress: glXQueryDrawable not found.
ERROR: EGL Error detected: EGL_BAD_NATIVE_WINDOW (0x300B)
ERROR: EGL Error detected: EGL_BAD_MATCH (0x3009)
glXGetProcAddress: glXQueryDrawable not found.
ERROR: EGL Error detected: EGL_BAD_NATIVE_WINDOW (0x300B)
ERROR: EGL Error detected: EGL_BAD_MATCH (0x3009)
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

lvl0: VolumeControl::init() - Failed to attach to default card!
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

lvl0: AudioManager Error - Unable to open SDL audio: ALSA: Couldn't open audio device: Connection refused
That doesn't matter either, it just means, your sound configuration is messed up, which has nothing to do with the EmulationStation.
I don't get that error, so it's just something on your side and is not why ES is just white after exiting an emulator.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

zriel
Posts: 31
Joined: Thu Aug 14, 2014 5:11 am
languages_spoken: English
ODROIDs: 2×C1, 2×U3, 1×XU3-Lite
Location: USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by zriel » Sat Dec 27, 2014 6:28 am

"If you're running GameStation Turbo install libgl and libglues under root"
Can this step be skipped if you don't run GameStation Turbo?

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Sat Dec 27, 2014 6:39 am

no, it just means, that this is the easiest way to install it, since it's already there.. if you don't using this image, you either have to compile glshim and glues yourself, add the required repository to your image, or download and install libgl-odroid and libglues-odroid manually. Btw: if you use the repository there is even away to just use "apt-get install emulationstation-odroid" and already have everything installed although i'm not maintaining that package very often.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

zriel
Posts: 31
Joined: Thu Aug 14, 2014 5:11 am
languages_spoken: English
ODROIDs: 2×C1, 2×U3, 1×XU3-Lite
Location: USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by zriel » Sat Dec 27, 2014 7:16 am

I meant that I would like to install it on Ubuntu 14.04. Can I skip that step?

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Sat Dec 27, 2014 7:49 am

and once again.. NO... you still NEED libgl and libglues.. just they don't come with the stock Ubuntu image
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

sergio-br2
Posts: 28
Joined: Sat Dec 27, 2014 10:14 am
languages_spoken: english, portuguese, french
ODROIDs: U3, C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by sergio-br2 » Sun Dec 28, 2014 8:29 am

I'm trying to run the latest stable version from git, but ES is too slow. I built it with:

Code: Select all

cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
make PREFIX=/usr install
But I'm getting this:

Code: Select all

emulationstation 
libGL error: MESA-LOADER: malformed or no PCI ID
libGL error: dlopen /usr/lib/arm-linux-gnueabihf/dri/exynos_dri.so failed (/usr/lib/arm-linux-gnueabihf/dri/exynos_dri.so: cannot open shared object file: No such file or directory)
libGL error: dlopen ${ORIGIN}/dri/exynos_dri.so failed (${ORIGIN}/dri/exynos_dri.so: cannot open shared object file: No such file or directory)
libGL error: dlopen /usr/lib/dri/exynos_dri.so failed (/usr/lib/dri/exynos_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: exynos_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: exynos
So I instaled libgl and libglue from meveric repo, and then:

Code: Select all

export LD_LIBRARY_PATH=/usr/local/lib
emulationstation 
libGL:loaded: libGLESv1_CM.so
glXGetProcAddress: glXQueryDrawable not found.
libGL: built on Oct 28 2014 22:54:44
libGL:loaded: libEGL.so
libEGL warning: failed to create a pipe screen for armsoc
libEGL warning: DRI2: failed to open armsoc (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri)
ERROR: EGL Error detected: EGL_BAD_ALLOC (0x3003)
glXGetProcAddress: glXQueryDrawable not found.
ERROR: EGL Error detected: EGL_BAD_ALLOC (0x3003)
So, what's the magic to get ES working? meveric, what you did with this package? Is it old? Because it ask some unmet dependencies like libboost-system1.49.0, in ubuntu 14.04 it uses libboost-system1.54.

PS: I had to do:

Code: Select all

cd /usr/lib/arm-linux-gnueabihf/mesa-egl/
sudo ln -f -r -s libOpenVG.so.1 ../
Like in this bug report, libOpenVG.so.1 is missing from /usr/lib/arm-linux-gnueabihf/

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Sun Dec 28, 2014 9:07 am

The package has a version on it 2.0.0-rc1 check your git from when that is.. it's probably a couple of months old.. haven't put much effort in this package since i prefer Rom Collection Browser...
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Tue Jan 13, 2015 5:30 am

EmulationStation recently added ODROID (libMali.so) support so i created a new package for EmulationStation using directy OpenGL ES rather than using glshim.
Since the package does no longer need glshim i moved it from all/testing to all/main.

There are still some issues with EmulationStation.. Everytime i play a game and then exit the game EmulationStation crashes.
I created a starter script to address that issue...

Code: Select all

%
#!/bin/sh
emulationstation
while [ -f /tmp/emustation.played ]; do
        rm -f /tmp/emustation.played
        emulationstation
done
What it does is checking if the file /tmp/emustation.played exists and if it does, it knows the last exit of emulationstation was a crash and restarts emulationstation.
This will continue until you exit EmulationStation "normally".
In order to create this file you have to add the creation of the file to your command line how you start your emulator..
Example:

Code: Select all

<systemList>
        <system>
                <name>nes</name>
                <fullname>Nintendo Entertainment System</fullname>
                <path>~/ROMS/NES/</path>
                <extension>.nes</extension>
                <command>retroarch -L ~/new_20141229/working/fceumm_libretro.so %ROM%; touch /tmp/emustation.played</command>
                <platform>nes</platform>
                <theme>nes</theme>
        </system>
</systemList>
notice the ; touch /tmp/emustation.played which creates /tmp/emustation.played after the emulator is ended.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

AndTheCookies
Posts: 63
Joined: Thu Feb 05, 2015 3:38 pm
languages_spoken: English
ODROIDs: ODROID U3
ODROID XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by AndTheCookies » Thu Feb 05, 2015 3:42 pm

Hello. I have used this method to install EmulationStation on GameStation Turbo and Lubuntu, using my ODROID U3.

However, the Lubuntu installation is buggy. Specifically, I had to skip this part of the process:

Code: Select all

sudo apt-get install libgl-odroid libglues-odroid
Furthermore, I get the following message every time I boot EmulationStation (w/ Lubuntu):

Code: Select all

libGL error: MESA-LOADER: malformed or no PCI ID
libGL error: dlopen /usr/lib/arm-linux-gnueabihf/dri/exynos_dri.so failed (/usr/lib/arm-linux-gnueabihf/dri/exynos_dri.so: cannot open shared object file: No such file or directory)
libGL error: dlopen ${ORIGIN}/dri/exynos_dri.so failed (${ORIGIN}/dri/exynos_dri.so: cannot open shared object file: No such file or directory)
libGL error: dlopen /usr/lib/dri/exynos_dri.so failed (/usr/lib/dri/exynos_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: exynos_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: exynos
EmulationStation runs perfect on GameStation Turbo; it could not be slower in Lubuntu. Please advise. :D

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Thu Feb 05, 2015 3:48 pm

as said in my last post libgl-odroid libglues-odroid are no longer required.. these were used only in the previous version, if you install the current version from my repository it's no longer needed (actually if you use my GameStation Turbo image you just need to type "apt-get install emulationstation-odroid" and you're done... Everything else is installed as a dependency IF anything is needed)

the libGL errors can be ignored.. that something that's caused by the 3D drivers we're having for ODROIDs they are build in a way so they DO NOT provied exynos_dri.so but they are also made in a way that this is not needed. The system complains about it, but it's not actually an error.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

AndTheCookies
Posts: 63
Joined: Thu Feb 05, 2015 3:38 pm
languages_spoken: English
ODROIDs: ODROID U3
ODROID XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by AndTheCookies » Thu Feb 05, 2015 4:18 pm

Great. And thanks for the quick reply. Any guesses as to why EmulationStation is full speed on Debian (GameStation Turbo) but worthlessly slow on Lubuntu? I am baffled.

Also, you say that every game crashes ES for you? I have found that only specific games cause the crashing. It is consistent too: some games will always crash, and others never will.

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Thu Feb 05, 2015 4:34 pm

AndTheCookies wrote:Great. And thanks for the quick reply. Any guesses as to why EmulationStation is full speed on Debian (GameStation Turbo) but worthlessly slow on Lubuntu? I am baffled.
Probably cause the drivers are placed differently on the Lubuntu image and Emulation Station does not find the neccessary drivers.
On GameStation Turbo the libGLESv1_CM.so, libGLESv2.so and libEGL.so are located in /usr/lib/arm-linux-gnueabihf/ (or at least their symlinks are)
on Lubuntu they are placed in /usr/lib/arm-linux-gnueabihf/mali-egl/ and the folder is simply included to the paths where it can find drivers.
Sadly some programs are so strickt with where the path of the drivers are that they always look at the same place and not at places that are included "as well".
Therefore it searches in /usr/lib/arm-linux-gnueabihf/mali-egl/ where it either does not find the drivers or only the drivers from mesa which are for software rendering and are very very very slow.
AndTheCookies wrote:Also, you say that every game crashes ES for you? I have found that only specific games cause the crashing. It is consistent too: some games will always crash, and others never will.
Nope, not the game crash ES, when you END the game, ES crashes.. The games run fine without issue, since it's not ES that's running the games but the emulators in the background it means as long as the emulator runs fine so das whatever you start over ES.
I just had the issue, that every time i was ending a game (which is suppose to go back to ES frontend) the frontend crashed and i was back on my Desktop and had to restart ES again.
Maybe it depends on the emulator that's started for this, not sure.. I'm really not that much into ES.. I will keep using Rom Collection Browser, since i really like to see gameplay movies of the games rather then a cover picture to decide which game i want to play:
[youtube]https://www.youtube.com/watch?v=KrPgivyT0lQ[/youtube] (not a video from the ODROID, but it shows how it works)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

AndTheCookies
Posts: 63
Joined: Thu Feb 05, 2015 3:38 pm
languages_spoken: English
ODROIDs: ODROID U3
ODROID XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by AndTheCookies » Fri Feb 06, 2015 12:54 am

Are you saying that if I recreated the folder structure from Debian, I could get EmulationStation to find the drivers in Lubuntu? There has to be someway to circumvent the issue. I will continue to tinker.

And sorry I was not clear. When I am playing a game in RetroArch, which was launched by EmulationStation, I can successfully return to EmulationStation after pressing Escape to end the game. As you said, there are some games that crash. But I can get several games to return to ES perfectly.

Thank you so much for your work on this project. I cannot stand Rom Browser or XBMC.

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Fri Feb 06, 2015 1:05 am

if the links exist in /usr/lib/arm-linux-gnueabihf/ and they point to the libMali.so in the mali-egl folder it should work.. just the links must be present and showing to that library at some point.

And good that at least some games seem to work correctly with EmulationStation.. but as i said, i never tested it much.. since i'm not using it :)
Maybe later i'll make a small package that can use and install EmulationStation and preconfigure it to work on my GameStation Turbo image and point to the same folders where the Rom Collection Browser is pointing at and load the same emulators..
So that people can easily switch between EmulationStation and Rom Collection Browser if they want :)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

AndTheCookies
Posts: 63
Joined: Thu Feb 05, 2015 3:38 pm
languages_spoken: English
ODROIDs: ODROID U3
ODROID XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by AndTheCookies » Fri Feb 06, 2015 2:06 am

Yes. That is how I started. And I am pretty much a novice with this stuff.

I started off by copying the cores and configs from Raspberry Pi. This brought lackluster performance and a lot screen tearing. I couldn't figure out why XBMC ran the games so much better.

With GameStation Turbo, I messed around with XBMC and the folder system until I found where the cores and configuration files were. Then I setup EmulationStation to use the same directories.

I tried Lubuntu next because I couldn't find out how to get XBMC to stop booting at startup. And I found a video of someone who got Lubuntu to boot straight into ES. I rely a lot on people who actually know what they are doing. Ha

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Fri Feb 06, 2015 2:20 am

AndTheCookies wrote:I tried Lubuntu next because I couldn't find out how to get XBMC to stop booting at startup. And I found a video of someone who got Lubuntu to boot straight into ES. I rely a lot on people who actually know what they are doing. Ha

Code: Select all

rm /home/odroid/.config/autostart/xbmc.desktop
stop XBMC from autostarting

Code: Select all

cp /usr/local/share/applications/emulationstation.desktop /home/odroid/.config/autostart/
start directly into EmulationStation after boot.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

AndTheCookies
Posts: 63
Joined: Thu Feb 05, 2015 3:38 pm
languages_spoken: English
ODROIDs: ODROID U3
ODROID XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by AndTheCookies » Fri Feb 06, 2015 9:23 am

meveric wrote: Probably cause the drivers are placed differently on the Lubuntu image and Emulation Station does not find the neccessary drivers.
On GameStation Turbo the libGLESv1_CM.so, libGLESv2.so and libEGL.so are located in /usr/lib/arm-linux-gnueabihf/ (or at least their symlinks are)
on Lubuntu they are placed in /usr/lib/arm-linux-gnueabihf/mali-egl/ acnd the folder is simply included to the paths where it can find drivers.
I tried moving libGLESv1_CM.so, libGLESv2.so and libEGL.so from /usr/lib/arm-linux-gnueabihf/mali-egl/ to /usr/lib/arm-linux-gnueabihf/, but it said they were already there, all three of them. So that isn't it.

Hmm ...

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Fri Feb 06, 2015 3:34 pm

nope wrong assumtion ;)
They are already there, yes BUT they probably point to something else like mesa-egl or to some other drivers.. you should see where the links go to:

Code: Select all

ls -l /usr/lib/arm-linux-gnueabihf/libGLES* /usr/lib/arm-linux-gnueabihf/libEGL*
for me it looks something like this:

Code: Select all

lrwxrwxrwx 1 root root 11 Apr 20  2014 /usr/lib/arm-linux-gnueabihf/libEGL.so -> libEGL.so.1
lrwxrwxrwx 1 root root 13 Dez 19 13:20 /usr/lib/arm-linux-gnueabihf/libEGL.so.1 -> libEGL.so.1.0
lrwxrwxrwx 1 root root 13 Jan 12 14:13 /usr/lib/arm-linux-gnueabihf/libEGL.so.1.0 -> libEGL.so.1.4
lrwxrwxrwx 1 root root 13 Apr 20  2014 /usr/lib/arm-linux-gnueabihf/libEGL.so.1.4 -> ../libMali.so
lrwxrwxrwx 1 root root 17 Apr 20  2014 /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so -> libGLESv1_CM.so.1
lrwxrwxrwx 1 root root 19 Apr 20  2014 /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1
lrwxrwxrwx 1 root root 13 Apr 20  2014 /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so.1.1 -> ../libMali.so
lrwxrwxrwx 1 root root 14 Apr 20  2014 /usr/lib/arm-linux-gnueabihf/libGLESv2.so -> libGLESv2.so.2
lrwxrwxrwx 1 root root 16 Apr 20  2014 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2 -> libGLESv2.so.2.0
lrwxrwxrwx 1 root root 13 Apr 20  2014 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0 -> ../libMali.so
where in the end it always points to libMali.so (no matter where it is) i bet it looks different for you :)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

AndTheCookies
Posts: 63
Joined: Thu Feb 05, 2015 3:38 pm
languages_spoken: English
ODROIDs: ODROID U3
ODROID XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by AndTheCookies » Sat Feb 07, 2015 12:28 am

Interesting. It doesn't matter now. I reverted back to the GameStation Turbo image. Thank you for showing me how to stop XBMC's auto-boot. I setup EmulationStation to start on boot and it works great!

The only issue I am having now is N64. I figure there are Mupen64 settings I need to use, but I don't know what they are.

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Sat Feb 07, 2015 12:39 am

/home/odroid/.config/retroarch/retroarch-core-options.cfg

but N64 is not working good right now.. it's very slow..
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

AndTheCookies
Posts: 63
Joined: Thu Feb 05, 2015 3:38 pm
languages_spoken: English
ODROIDs: ODROID U3
ODROID XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by AndTheCookies » Sat Feb 07, 2015 12:58 am

Thank you. This thread is a great resource for me. Do I need to point to that file with --config in RetroArch, or are the changes I make in it automatic?

And I wonder why N64 is slow. It seems people are getting better results (w/ N64) in Raspberry Pi than I have seen on ODROID. Very peculiar.

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Sat Feb 07, 2015 6:13 am

AndTheCookies wrote:Thank you. This thread is a great resource for me. Do I need to point to that file with --config in RetroArch, or are the changes I make in it automatic?
That's the global config file it will always be loaded
AndTheCookies wrote:And I wonder why N64 is slow. It seems people are getting better results (w/ N64) in Raspberry Pi than I have seen on ODROID. Very peculiar.
I wonder myself.. but one main reason is Dynamic Recompiler.. which would speed up N64 extremly.. it's working on RPi but not on the ODROID.. the question is why?
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 57 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by memeka » Sat Feb 07, 2015 7:18 am

Do you know if the mupen on rpi that is working good, is it compiled from upstream, or is it a forked and modified version? (i saw some forks for rpi, like mupen64rpi with optimizations)...

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Sat Feb 07, 2015 9:05 am

i'm uploading a new package of retroarch-cores-good right now.. included is the mupen64plus libretro core from the RPi.. you won't believe how good that core runs O_o
Dynamic Recompiling works flawelessly, rice, gln64 and glide64 work nicely i just played conkers bad fur day a very very very intense game and it was very playable.. i tried Mario 64 earlier.. it was running perfectly as well.
btw: the RPi uses some special settings for games.. most games are set to run on 25 or 27 FPS rather than full speed... if that works and the sound is set to the same rate this could work on ODROIDs as well making every game run perfectly smooth (at least on U3 and higher ODROIDs)

Edit:
Oh did i mentioned that i played the game in 1280x1024 resolution rather than 640x480 like on the RPi? :D

Edit2:
WTF... I nearly dropped my controller... my controller rumbled, means rumble addon is working as well!!! :D
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
odroid
Site Admin
Posts: 33316
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 377 times
Been thanked: 453 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by odroid » Sat Feb 07, 2015 9:45 am

Since the N64 has only 240i or 480i resolution, 640x480 seems to be enough.
i wanna try the mupen64plus RPI's libretro core on the C1 with the 16bpp VGA resolution.

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Sat Feb 07, 2015 9:49 am

one of the biggest advantage of the PC N64 emulator was the higher resolution which makes edges look much better.. you forget that the N64 was fully 3D everything is polygon and can easily multiplied like with FSAA it sharpens edges and stuff.. also there are some very nice high resolution textures for many N64 games :)
http://textures.emulation64.com/
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
odroid
Site Admin
Posts: 33316
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 377 times
Been thanked: 453 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by odroid » Sat Feb 07, 2015 9:55 am

Ah~~ it's fully scalable vector graphics. :)

User avatar
AreaScout
Posts: 1215
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 44 times
Been thanked: 112 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by AreaScout » Sat Feb 07, 2015 1:57 pm

WoW great news, i did try to compile for rpi on ODROID weeks befor as well and i failed, so what did you do to get it running and from what date you took the sources ?

Waiting for report ..... :)

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 57 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by memeka » Sat Feb 07, 2015 3:59 pm

yes, I also want to know what repository and what config options/make flags were used :D

EDIT: it crashes under fbdev/c1.

User avatar
v0ltumna
Posts: 69
Joined: Fri Jul 05, 2013 10:21 pm
languages_spoken: english, german
ODROIDs: U2, U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by v0ltumna » Sat Feb 07, 2015 5:49 pm

Wow meveric, this sounds amazing. I just gave it a try on my U3, so after upgrading from your repo I ran the command

Code: Select all

retroarch -L /usr/local/share/retroarch/cores/good/mupen64plus_libretro.so "/path/to/rom"
but I get the following error:

Code: Select all

RetroArch: rarch_log_libretro: [libretro INFO] :: GL_RENDERER: Mali-400 MP
RetroArch [ERROR] :: rarch_log_libretro :: [libretro ERROR] :: 0:20: P0004: High precision not supported, instead compiling high precision as medium precision
0:30: L0002: Undeclared variable 'gl_FragDepthEXT'
Do you have any idea where that comes from?

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Sat Feb 07, 2015 5:52 pm

well it turned out to be not as good as i though :(
It works perfectly fine, but only on the XU3 (haven't tested the C1 yet, but U3 is missing gl_FragDepthEXT and still segfaults)
Sorry for all the fuzz..
Well at least on the XU3 it now works perfect... but the others might still not work...
I took the binary directly from the RetroPi image... since RPi and ODROIDs are generally binary compatible and it's normally just linked against libGLESv2 i figured i'll give it a try.. well it worked out of the box.. and i switched to dynamic_recompiler and everything was working awesomly fine.. i tried to play around with the settings.. everything was really good..

well now it turns out to only work on the XU3 it seems o_O

Edit:
For the XU3 mupen64 can be build very easily if you know how.. Edit the rpi section so it looks like this:

Code: Select all

else ifneq (,$(findstring rpi,$(platform)))
        TARGET := $(TARGET_NAME)_libretro.so
        LDFLAGS += -shared -Wl,--version-script=$(LIBRETRO_DIR)/link.T
        fpic = -fPIC
        GLES = 1
        GL_LIB := -L/opt/vc/lib -lGLESv2
        INCFLAGS += -I/opt/vc/include
        CPUFLAGS += -DARMv5_ONLY -DNO_ASM -march=armv5
        PLATFORM_EXT := unix
        WITH_DYNAREC=arm
basicly just adding -march=armv5
with that setting mupen64plus_libretro can be compiled for XU3 without issues.. sadly this only works for the XU3 (maybe also for the C1 no clue, haven't tried it there)
build the core with "make platform=rpi -j5"
do not turn on HAVE_SHARED_CONTEXT it will cause issues and core doesn't work correct anymore.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
v0ltumna
Posts: 69
Joined: Fri Jul 05, 2013 10:21 pm
languages_spoken: english, german
ODROIDs: U2, U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by v0ltumna » Sun Feb 08, 2015 12:01 am

Just to point all interested people to another topic: I tested the original mupen64plus again, because I saw there was a lot of progress for the dynarec especially for arm platforms, the result was far beyond what I expected, but I dont want to hijack this topic, so read here:
http://forum.odroid.com/viewtopic.php?f ... 290#p72290

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 57 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by memeka » Sun Feb 08, 2015 12:54 am

success with fbdev on C1...
speed is very very good! I could play MK4 very very fast!

with ppsppsdl also working, C1 is currently a pretty sweet emulation machine!

now, if only ppspp would work on 32bit mode, to have kodi running as well (or switch on the fly...)
@odroid, @mdrjr ... any chance of that?

AndTheCookies
Posts: 63
Joined: Thu Feb 05, 2015 3:38 pm
languages_spoken: English
ODROIDs: ODROID U3
ODROID XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by AndTheCookies » Sun Feb 08, 2015 12:03 pm

So, it sounds like N64 is working on XU3 and C1 ... but not on U3, at least not at any respectable speed. Is that correct?

Great work to everyone involved.

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 57 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by memeka » Sun Feb 08, 2015 12:29 pm

it should work on U3 as well.

AndTheCookies
Posts: 63
Joined: Thu Feb 05, 2015 3:38 pm
languages_spoken: English
ODROIDs: ODROID U3
ODROID XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by AndTheCookies » Sun Feb 08, 2015 12:33 pm

memeka wrote:it should work on U3 as well.
Have you had success in this regard? From what meveric is saying, it sounds like Dynamic Recompiling still isn't working on U3.

User avatar
AreaScout
Posts: 1215
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 44 times
Been thanked: 112 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by AreaScout » Sun Feb 08, 2015 8:28 pm

AndTheCookies wrote:
memeka wrote:it should work on U3 as well.
Have you had success in this regard? From what meveric is saying, it sounds like Dynamic Recompiling still isn't working on U3.
Dynamic recompiler isn't working in our devices for libretro mupen64plus, but it works for the standalone app mupen64plus now

User avatar
meveric
Posts: 10729
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: [GUIDE] Installing EmulationStation

Unread post by meveric » Sun Feb 08, 2015 11:11 pm

i created a new package which can be installed from my repository:
mupen64plus-odroid
i also have a package ogst-mupen64plus-config which will integrate the emulator in my ODROID GameStation Turbo image.. but it also provides a basic configuration that should work on any other image..
after install the config can be found in /home/odroid/.config/mupen64plus/mupen64plus.cfg

and yes it's working on the X/X2/U2/U3 without issues.. on the XU3 i would advice to use the libretro core..
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Post Reply

Return to “Games and Emulators”

Who is online

Users browsing this forum: No registered users and 3 guests