diff --git a/Full-details-for-Compilation-and-Installation-in-Raspbian-Or-OSMC.md b/Full-details-for-Compilation-and-Installation-in-Raspbian-Or-OSMC.md index dd53972..7b5e2c0 100644 --- a/Full-details-for-Compilation-and-Installation-in-Raspbian-Or-OSMC.md +++ b/Full-details-for-Compilation-and-Installation-in-Raspbian-Or-OSMC.md @@ -1,29 +1,47 @@ A lot of people are having problems in compiling and installing moonlight-embedded from source. Based on [the instructions from this post](https://github.com/irtimmer/moonlight-embedded/issues/716#issuecomment-445205242): 1) Supposingly you do have latest Raspbian image already installed (Raspbian can be found here: https://www.raspberrypi.org/downloads/raspbian/) - first of all - make sure you uninstall previous moonlight-embedded version (if installed): + ``` sudo apt-get purge moonlight-embedded ``` + 2) Then you have to: + ``` sudo apt-get update sudo apt-get install git libopus0 libexpat1 libasound2 libudev1 libavahi-client3 libcurl4 libevdev2 libssl-dev libopus-dev libasound2-dev libudev-dev libavahi-client-dev libcurl4-openssl-dev libevdev-dev libexpat1-dev libpulse-dev uuid-dev cmake make gcc g++ ``` -3) Also, if you have OSMC: -for Pi (2-4) + + 3) Also, if you have OSMC: + +- for Pi (2-4) + ``` sudo apt-get install rbp2-userland-dev-osmc ``` -for Vero4k(+) + +- for Vero4k(+) + ``` sudo apt-get install vero3-userland-dev-osmc libamcodec-dev-osmc ``` -Or if you have Raspbian: + +- Or if you have Raspbian: + ``` sudo apt-get install libraspberrypi-dev ``` -4) Then download the moonlight-embedded sources, compile and install it with these commands: + +4) For X11/SDL/etc support (or a generic x86 PC) you might also want any of: + +``` +sudo apt-get install libavcodec-dev libavutil-dev libcec-dev libp8-platform-dev libsdl2-dev libva-dev libvdpau-dev +``` + +5) Then download the moonlight-embedded sources, compile and install it with these commands: + ``` git clone https://github.com/moonlight-stream/moonlight-embedded.git cd moonlight-embedded @@ -35,7 +53,9 @@ make -j$(nproc) sudo make install sudo ldconfig ``` -5) Lastly, reboot your machine for all the changes to take effect: + +6) Lastly, reboot your machine for all the changes to take effect: + ``` sudo shutdown -r now ``` \ No newline at end of file