Failing to install moonlight-embedded

I’ve moved onto OSMC from XBMC, and i am trying to get the moonlight package installed so i can use my Pi in the living room. The issue is when trying to install moonlight from apt-get, i keep getting an error about not being able to install libraspberrypi0.

I’ve had a google around and the only thing i can see if that because i have ran an apt-get update && apt-get upgrade that could have broken something. I’ve tried installing with aptitude instead and I get this error:

Depends: libraspberrypi0 which is a virtual package.

Anyone any ideas?
Cheers

Are you on Raspberry Pi 2?

Pi 2 is based off pure Jessie, not Raspbian.

A quick Google suggests to me libraspberrypi is the equivalent to: sudo apt-get install rbp-userland-dev-osmc

Try install this package, ignore libraspberrypi and proceed with building

Sam

Yeah i’m on a Pi 2, i’ll give that a shot later and see what the result is
Cheers

too old version of cmake in the repo to compile moonlight

CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
CMake 3.1 or higher is required. You are running version 3.0.2

Solution is to get the packages from strech

https://packages.debian.org/stretch/libjsoncpp0

sudo apt-get install libexpat1-dev

then download limelight-common and put it in src dir

still getting stuck on

Linking C executable moonlight
CMakeFiles/moonlight.dir/src/main.c.o: In function `stream':
main.c:(.text+0x12c): undefined reference to `LiStartConnection'
main.c:(.text+0x134): undefined reference to `LiStopConnection'
CMakeFiles/moonlight.dir/src/input.c.o: In function `input_handle_event':
input.c:(.text+0x11f8): undefined reference to `LiSendMouseMoveEvent'
input.c:(.text+0x1238): undefined reference to `LiSendScrollEvent'
input.c:(.text+0x136c): undefined reference to `LiSendMultiControllerEvent'
input.c:(.text+0x14c0): undefined reference to `LiSendKeyboardEvent'
input.c:(.text+0x17e4): undefined reference to `LiSendMouseButtonEvent'
collect2: error: ld returned 1 exit status
CMakeFiles/moonlight.dir/build.make:545: recipe for target 'moonlight' failed
make[2]: *** [moonlight] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/moonlight.dir/all' failed
make[1]: *** [CMakeFiles/moonlight.dir/all] Error 2
Makefile:106: recipe for target 'all' failed
make: *** [all] Error 2

for a complete log
http://paste.osmc.io/osikocixix.vbs

reported this to the developer of moonlight_embedded

important dont forget to do git submodule update --init at the root of moonlight-embeded

Install the project…
– Install configuration: “”
– Installing: /usr/local/bin/moonlight
– Removed runtime path from “/usr/local/bin/moonlight”
– Installing: /usr/local/share/mappings
– Installing: /usr/local/share/mappings/default.conf

enjoy your moonlight

@mcobit might be something to include in retrosmc :smile:

to be honest i kind of gave up and went back to the old raspbmc running the java version of limelight! Did you actually get moonlight running on osmc @toast?

yepp working just fine :slight_smile: and going back is never an option in my book just approach a problem from a different view :slight_smile: and why go back to raspbmc ? osmc can handle java without any issues really just like taking 100 steps back and none forward

cool, have you got a walk through of what you had to do to get moonlight working on OSMC?

1 Like

gonna see if @mcobit wants to include it in retrosmc

1 Like

made a little addon for retrosmc

https://gitlab.com/swe_toast/retrosmc_addons

its summer so im not gonna be around that much for support fiddle around with it etc etc just dont expect support

Nice. Tick off another “must have” then for me…

So, install by untarring it or what? Do we have to have Retrosmc installed or not? A few clues please… :wink:

would make it easier to have retrosmc installed but its not a must have but a custom shortcut is needed and openvt i guess then a little shell script that makes all the magic happen haven’t bothered to write all of that since i got my shit in retrosmc :smiley:

but look at retropie.sh (in retrosmc) and you have good clues on how to do it without retrosmc also look at the installer script for retrosmc for menu shortcut