[HowTo] Installing RetroPie alongside OSMC RC (the easy way)

It works! Big thanks mcobit ! :grinning:

What is the purpose of these lines?

wget http://malus.exotica.org.uk/~buzz/pi/sdl/sdl1/deb/rpi2/libsdl1.2debian_1.2.15-8rpi_armhf.deb
wget http://malus.exotica.org.uk/~buzz/pi/sdl/sdl2/libsdl2_2.0.3_armhf.deb

sudo dpkg -i libsdl*

sudo apt-mark hold libsdl1.2debian
sudo apt-mark hold libsdl2

Also why are you downloading it from a random website and not the official site?

Also in your launch scripts why are you using openvt?

Sorry to pick apart your code but i am trying to learn and improve. I am trying to set up daemons to handle the kodi/emu transitions and cant figure out the reason for these.

Hi,
These are the modified sdl packages to work with the Raspberry hardware. This is actually a site of the developer who created them for RetroPie. Maybe I should get them from that RetroPie site rather than from there.
After downloading them, they are installed with dpkg, then marked for hold so if the debian or raspbian distribution ships a package that seems to be newer, but doesnā€™t have the modifications, they wonā€™t be overwritten by an upgrade.
Hope that answers your questions.

I am using openvt to display the output of the retropie emulators on a different virtual console and switch to that to make them visible. Else you couldnā€™t press x while an emulator is starting to change its options as the default tty that osmc is using is blacked out.

I cannot get any console (linapple, dosbox) or scummvm working. When I hit the button to start them, EmulationStation minimizes, I see " press x or m to configure the emulator", a line of equals and it goes back to Emulation Station.
SNES and ports work well.

Please try:

sudo apt-get install libglu1-mesa

I am working on some fixes and a better way to handle dependencies anyway.

All working now! Thanks @mcobit :slight_smile:

Updated the script again.
Now it tries to resolve all dependencies before installation of the emulators.
Also I modify the RetroPie script, that it doesnā€™t install all the dev packages, what makes installation a lot shorter.
I definately recommend this new version for new installations, but you can also update with this.

I am having trouble figuring out how to access the script from kodi. I have installed a fresh OSMC, updated it, then installed retropie via this script. I rebooted and cannot find any way to launch retropie. I have tried the OSMC skin, the Confluence skin, and my preferred skin Amber. None have any favorites or added menus on the home screen.

I would love to find a way to add the functionality into Amber eventually, but canā€™t even use it on any default skin.

Somehow Iā€™m still getting errors.

osmc@osmc ~ $ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libsdl2-2.0-0
The following packages will be REMOVED:
  libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev
  libsdl1.2-dev
The following NEW packages will be installed:
  libsdl2-2.0-0
0 upgraded, 1 newly installed, 5 to remove and 24 not upgraded.
1 not fully installed or removed.
Need to get 0 B/298 kB of archives.
After this operation, 2387 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 49346 files and directories currently installed.)
Preparing to unpack .../libsdl2-2.0-0_2.0.2+dfsg1-6_armhf.deb ...
Unpacking libsdl2-2.0-0:armhf (2.0.2+dfsg1-6) ...
dpkg: error processing archive /var/cache/apt/archives/libsdl2-2.0-0_2.0.2+dfsg1-6_armhf.deb (--unpack):
 trying to overwrite '/usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0', which is also in package libsdl2:armhf 2.0.3
Errors were encountered while processing:
 /var/cache/apt/archives/libsdl2-2.0-0_2.0.2+dfsg1-6_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is because of an error in a previous installation.
Use:

sudo apt-get remove libsdl2-2.0-0 libsdl1.2-dev stella

followed by

sudo dpkg --configure -a

before starting the script

Ok. I see. The automatic creation of the menushortcut doesnā€™t seem to work from the script on all configurations.

Add it manually by doing:

Go into Skin settings, customize home menu, make a new menupoint by clicking add, call it retropie or whatever you want,
Use exactly the following string in the custom command filed:

System.Exec(/home/osmc/retropie.sh)

Save your changes and return to the main menu. The point should be there now.

Let me know if you have any more troubles.

This should work for the osmc skin and every other skin that uses the skin.shortcuts addon for the menu.

It will not work in Confluence. Please read at the top of this thread for some ideas how that could be done.

Thank you mcobit, your instructions worked great. Now I will attempt to port the settings to the Amber skin. Thank you for all your hard work, and especially your willingness to help!

anybody know why its changing the audio dac I have a iqaudio dac and when I run the script its changing the audio dac to alsa bcm 2835 ?

What is your output of aplay -l ?
If it is not installed, install alsa-utils.

Iā€™m loving this. Much better to have everything on the one Pi (OSMC and Retropie), rather that two which I did have. I made some changes to mupen64plus to use a different video driver (mupen64plus-video-n64.so) which seems to work much better for me, both in speed and visuals, plus Iā€™ve got it running at 1920x1080 something I never managed on the standalone installation.
There is a point to my post, Iā€™m just appreciative of all the hard work that has gone into thisā€¦

I notice that there are some emulators missing (e.g. Atari 2600) are these things we can add easily?

1 Like

Good to hear that it works :smile:

Are those emulators part of the RetroPie project itself? I thought there is an emulator for atari.
Doesnā€™t it show up when you put the roms in the according folder?

Sorry, I didnā€™t test all emulators, but there should be a libretrocore for it.

Did you use that latest version of the script to install it? In previous versions there could be a problem that prevented some emus from working correctly. Please update with running the script again with the binaries installation.

I can check tomorrow if I can figure something out if it still doesnā€™t work.

Edit: I need to remove the stella atari 2600 emulator because if problems with dependencies. It comes directly from debian repository and needs a different version of sdl2 than any other emulator what makes it hard to maintain with the others. Could you try to launch an atari rom and then quickly press x or m to get into the options and change the emulator to the libretro one?

No the 2600 emulator didnā€™t show up in the list. It is part of the original Retropie.
Iā€™ll rerun the script a bit later today and let you know what happens.
Iā€™ll also try the tip with the Stella emulator.

All my roms are on a NAS and Iā€™ve mounted the paths as I did on full retropie install, my 2600 roms were in the ā€œatari2600-libretroā€ folder. Iā€™ve not been thorough enough here, looking at the es_systems.cfg I notice the path is just ā€œatari2600ā€ in this install. Iā€™ll change the path and report back.
My mistake sorry.

Confirmed my mistake, it works fine! Sorry.

I have a seperate RPi2 atm with RetroPie ā€¦ am willing to try this ā€¦ would be awesome and if the performance is indeed better like @rogg23 says ā€¦ iā€™m totally into it :smiley:

Are you using RetroPie 2.6.0 or the new 3.0 version?