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

Well, I just made the script. The RetroPie guys have way more work.
But if you really want to, you can buy me a beer with paypal @ maheld@biochem.uni-frankfurt.de

had the openvt error and it got solved with the new version of the script.
But I still got some depencies that were not installed:
The following packages have unmet dependencies:

libsdl2 : Depends: libxcursor1 (> 1.1.2) but it is not installed Depends: libxinerama1 but it is not installed Depends: libxss1 but it is not installed Depends: libxxf86vm1 but it is not installed Depends: libudev0 but it is not installable

when running emulationstation from the command line:

osmc@osmc:~$ emulationstation /opt/retropie/supplementary/emulationstation/emulationstation: error while loading shared libraries: libXcursor.so.1: cannot open shared object file: No such file or directory

Thanks for noticing.
Updated again to fix this.

I still get exactly the same openvt error - the script updated then I ran it again and it did all the fixing, but still no dice. I even did it another time to be sure, but I still see the same error.

Now the installation script works, but it doesn’t create any shortcut.

Edit: I forget to say that retropie with OSMC runs in a rpi B without problems.

Maybe your apt-get is still broken…
What’s the output of apt-get -f install?

Could still be an error, please create the shortcut yourself for now.

I’ll check that out a little later when I’m back home.

I ran script again, still same issue:

sudo: openvt: command not found

after apt-get -f install :

osmc@osmc:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libcaca-dev libdirectfb-dev libdirectfb-extra libegl1-mesa libelf1 libfreetype6-dev libgbm1 libglu1-mesa libglu1-mesa-dev libjbig-dev libjpeg-dev
  libjpeg62-turbo-dev libllvm3.5 liblzma-dev libmikmod-config libmikmod-dev libmikmod3 libopenal-data libopenal1 libpng12-dev libsdl-gfx1.2-5 libsdl-image1.2
  libsdl-mixer1.2 libsdl-net1.2 libsdl-sound1.2 libsdl-ttf2.0-0 libslang2-dev libtiff5-dev libtiffxx5 libwayland-client0 libwayland-cursor0
  libwayland-egl1-mesa libwayland-server0 libwebp-dev
Use 'apt-get autoremove' to remove them.
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 stella
0 upgraded, 0 newly installed, 6 to remove and 1 not upgraded.
9 not fully installed or removed.
After this operation, 6795 kB disk space will be freed.
Do you want to continue? [Y/n] n

Do that and then run the script again without the retropie installation please.
Seems like we are on a point where there are different outcomes on different hardware or configurations.

I hope I fixed it now. If you have problems, please rerun it and reprt if it works now.
Sorry for any inconvenience, but everytime something changes, I have to react to this. Hope it will work a bit more stable from now on.

It worked for me after your fixed the script when I commented.
I did apt-get upgrade and install before running the script.
only thing it didn’t do was create the shortcut but I did that myself.
thanks!

Thanks for reporting.
I think previous errors lead the apt database to an invonsistent state for some people so I try to check and fix that now before starting to use apt.

And again a fix because now I ran into a problem myself.

Well, now retropie.sh runs with no errors in ssh, but still - black screen and it returns to kodi.
When emulationstation:

osmc@osmc:~$ emulationstation
/opt/retropie/supplementary/emulationstation/emulationstation: error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directory

And apt-get -f install show this:

osmc@osmc:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libsdl2 : Depends: libxinerama1 but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

i tried to install this libxinerama1 but got this:

Package libxinerama1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

I confirm that i got the same error with libxinerama1

Thanks for trying.
I have uploaded a new version. If you want you can try again.
But now I think I got some corrupted sectors on my sdcard because of too much installations…
Need to setup a new image tomorrow.

Sorry for that.
Now it’s working retropie.sh successfully launched emulationstation. Thx for your hardwork

Nice :smiley:

Be aware that as the Model B (not 2) uses Raspbian as a base it could be that the script messed up your /etc/apt/sources.list file as it remives all raspbian repositories in exit.
I should probably not do it this way…
Will fix with an update.