-
Notifications
You must be signed in to change notification settings - Fork 330
Full details for Compilation and Installation in Raspbian Or OSMC
Dregu edited this page Nov 2, 2024
·
21 revisions
NOTE: Support for MMAL and OMX was deprecated in Raspi OS Bullseye and the required libraries consequently removed from the OS. These instructions should still work for a wide variety of platforms, including any version of Pi running RaspiOS Buster or generic x86 hardware running Debian.
A lot of people are having problems in compiling and installing moonlight-embedded from source. Based on the instructions from this post:
- 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
- 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++
- Also, if you have OSMC:
- for Pi (2-4)
sudo apt-get install rbp2-userland-dev-osmc
- for Vero4k(+)
sudo apt-get install vero3-userland-dev-osmc libamcodec-dev-osmc
- Or if you have Raspbian:
sudo apt-get install libraspberrypi-dev
- 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
- 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
git submodule update --init --recursive
mkdir build
cd build/
cmake ../
make -j$(nproc)
sudo make install
sudo ldconfig
- Lastly, reboot your machine for all the changes to take effect:
sudo shutdown -r now