[HowTo] Moonlight-Embedded (former Limelight) using Luna Launcher

Try vero2-userland-dev-osmc

ok after installing the Vero-package and several deb’s manually cmake start doing some stuff. but not without errors:

root@osmc:/home/osmc/moonlight-embedded/build# cmake ../
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found ALSA: /usr/lib/arm-linux-gnueabihf/libasound.so (found version "1.0.28") 
-- Found Opus: /usr/lib/arm-linux-gnueabihf/libopus.so  
-- Could NOT find Broadcom (missing:  BROADCOM_INCLUDE_DIR VCOS_LIBRARY VCHIQ_LIBRARY OPENMAXIL_LIBRARY BCM_HOST_LIBRARY) 
-- Could NOT find Freescale (missing:  FREESCALE_INCLUDE_DIR KERNEL_INCLUDE_DIR VPU_LIBRARY) 
-- Could NOT find Amlogic (missing:  AMLOGIC_INCLUDE_DIR AMCODEC_LIBRARY AMADEC_LIBRARY AMAVUTILS_LIBRARY) 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- Checking for module 'libevdev'
--   Found libevdev, version 1.3
-- Checking for module 'libudev'
--   Found libudev, version 215
-- Checking for module 'sdl2>=2.0.4'
--   
-- Checking for module 'libavcodec'
--   No package 'libavcodec' found
-- Checking for module 'libavutil'
root@osmc:/home/osmc/moonlight-embedded/build# cmake ../
-- Could NOT find Broadcom (missing:  BROADCOM_INCLUDE_DIR VCOS_LIBRARY VCHIQ_LIBRARY OPENMAXIL_LIBRARY BCM_HOST_LIBRARY) 
-- Could NOT find Freescale (missing:  FREESCALE_INCLUDE_DIR KERNEL_INCLUDE_DIR VPU_LIBRARY) 
-- Could NOT find Amlogic (missing:  AMLOGIC_INCLUDE_DIR AMCODEC_LIBRARY AMADEC_LIBRARY AMAVUTILS_LIBRARY) 
-- Checking for module 'sdl2>=2.0.4'
--   
-- Checking for module 'libavcodec'
--   No package 'libavcodec' found
-- Checking for module 'libavutil'
--   No package 'libavutil' found
-- Checking for module 'x11-xcb'
--   No package 'x11-xcb' found
-- Checking for module 'vdpau'
--   No package 'vdpau' found
-- Checking for module 'libcec>=3.0.0'
--   
CMake Error at CMakeLists.txt:52 (message):
  No video output available

It looks like there is support for AMLogic SoCs. You will need to pass AMLOGIC_INCLUDE_DIR, AMCODEC_LIBRARY etc to the build. You will probably also need vero2-libamcodec-dev-osmc installed as well.

Sam

ok this is beyond my humble linux skills, guess I got to wait for MyOSMC2 or another brave soul for trying this out.

Thanks for your fast help Sam!

Bummer, I had hopes that you would succeed, @mkub, and maybe leave a trail of easy to follow how-to-instructions :wink:
Compiling the source myself definitely exceeds my Unix skills as well, so I’m hoping a compiling-afficionado might show up here and have mercy or that MyOSMC2 is not too far off…

basicly I just updated cmake manually from debian.org, (wget URL and than sudo dpkg -I PACKAGE) which of course had some other dependencies which you have to download too.

im currently stuck at No Video output available, which Sam indicated relates to the missing Amlogic_include_dir.

Guess I have to install some other dev packages besides vero2-libamcodec-dev-osmc, but maybe you find out how :wink:

It could actually be enough to install vero2-libamcodec-dev-osmc, delete CmakeCache and then run cmake again. It might pick up the includes itself if they are copied to the default include path by the packagemanager.

This probably needs to be /opt/vero2/usr/include, i.e.

-DAMLOGIC_INCLUDE_DIR=/opt/vero2/usr/include

Ok. Didn’t know as I don’t have a vero2.

after deleting the /build folder and running cmake again with the parameter, I get this:

maybe I have to set this parameter elsewhere? CMakeLists.txt?

root@osmc:/home/osmc/moonlight-embedded/build# cmake ../ -AMLOGIC_INCLUDE_DIR=/opt/vero2/usr/include
CMake Error at CMakeLists.txt:1 (project):
  Generator

    Unix Makefiles

  does not support platform specification, but platform

    MLOGIC_INCLUDE_DIR=/opt/vero2/usr/include

  was specified.


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/home/osmc/moonlight-embedded/build/CMakeFiles/CMakeOutput.log".

sorry small typo in -DAMLOGIC…

root@osmc:/home/osmc/moonlight-embedded/build# cmake ../ -DAMLOGIC_INCLUDE_DIR=/opt/vero2/usr/include
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found ALSA: /usr/lib/arm-linux-gnueabihf/libasound.so (found version "1.0.28") 
-- Found Opus: /usr/lib/arm-linux-gnueabihf/libopus.so  
-- Could NOT find Broadcom (missing:  BROADCOM_INCLUDE_DIR VCOS_LIBRARY VCHIQ_LIBRARY OPENMAXIL_LIBRARY BCM_HOST_LIBRARY) 
-- Could NOT find Freescale (missing:  FREESCALE_INCLUDE_DIR KERNEL_INCLUDE_DIR VPU_LIBRARY) 
-- Could NOT find Amlogic (missing:  AMCODEC_LIBRARY AMADEC_LIBRARY AMAVUTILS_LIBRARY) 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- Checking for module 'libevdev'
--   Found libevdev, version 1.3
-- Checking for module 'libudev'
--   Found libudev, version 215
-- Checking for module 'sdl2>=2.0.4'
--   
-- Checking for module 'libavcodec'
--   No package 'libavcodec' found
-- Checking for module 'libavutil'
--   No package 'libavutil' found
-- Checking for module 'x11-xcb'
--   No package 'x11-xcb' found
-- Checking for module 'vdpau'
--   No package 'vdpau' found
-- Checking for module 'libpulse-simple'
--   Found libpulse-simple, version 5.0
-- Checking for module 'libcec>=3.0.0'
--   
CMake Error at CMakeLists.txt:52 (message):
  No video output available


-- Configuring incomplete, errors occurred!

You can get AMCodec dev package from OSMC, but I don’t think we package amutils. You would be better off just cloning GitHub - osmc/libamcodec and building amavutils and amcodec there and installing them. I would then expect them to be under PATH after make install.

Sam

ok, cloned it and typed in make
guess I have to build it somehow else, sorry for my noobish linux skills :wink:
this is the result:

root@osmc:/home/osmc/libamcodec# make
make -C amadec install
make[1]: Entering directory '/home/osmc/libamcodec/amadec'
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o adec-external-ctrl.o adec-external-ctrl.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'adec-external-ctrl.o' failed
make[1]: [adec-external-ctrl.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o adec-internal-mgt.o adec-internal-mgt.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'adec-internal-mgt.o' failed
make[1]: [adec-internal-mgt.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o adec-ffmpeg-mgt.o adec-ffmpeg-mgt.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'adec-ffmpeg-mgt.o' failed
make[1]: [adec-ffmpeg-mgt.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o adec-message.o adec-message.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'adec-message.o' failed
make[1]: [adec-message.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o adec-pts-mgt.o adec-pts-mgt.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'adec-pts-mgt.o' failed
make[1]: [adec-pts-mgt.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o feeder.o feeder.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'feeder.o' failed
make[1]: [feeder.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o adec_write.o adec_write.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'adec_write.o' failed
make[1]: [adec_write.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o adec_read.o adec_read.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'adec_read.o' failed
make[1]: [adec_read.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o dsp/audiodsp-ctl.o dsp/audiodsp-ctl.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'dsp/audiodsp-ctl.o' failed
make[1]: [dsp/audiodsp-ctl.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o audio_out/alsa-out.o audio_out/alsa-out.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'audio_out/alsa-out.o' failed
make[1]: [audio_out/alsa-out.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o audio_out/aml_resample.o audio_out/aml_resample.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'audio_out/aml_resample.o' failed
make[1]: [audio_out/aml_resample.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o audiodsp_update_format.o audiodsp_update_format.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'audiodsp_update_format.o' failed
make[1]: [audiodsp_update_format.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o spdif_api.o spdif_api.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'spdif_api.o' failed
make[1]: [spdif_api.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o pcmenc_api.o pcmenc_api.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'pcmenc_api.o' failed
make[1]: [pcmenc_api.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o dts_transenc_api.o dts_transenc_api.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'dts_transenc_api.o' failed
make[1]: [dts_transenc_api.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o dts_enc.o dts_enc.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'dts_enc.o' failed
make[1]: [dts_enc.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT   -c -o audio_out/alsactl_parser.o audio_out/alsactl_parser.c
make[1]: fPIC: Command not found
<builtin>: recipe for target 'audio_out/alsactl_parser.o' failed
make[1]: [audio_out/alsactl_parser.o] Error 127 (ignored)
fPIC -I/home/osmc/libamcodec/amadec -I/home/osmc/libamcodec/amadec/include -I/home/osmc/libamcodec/amadec/../amavutils/include -I/include -I/usr/include -L/lib -L/usr/lib -DALSA_OUT -DENABLE_WAIT_FORMAT adec-external-ctrl.c adec-internal-mgt.c adec-ffmpeg-mgt.c adec-message.c adec-pts-mgt.c feeder.c adec_write.c adec_read.c dsp/audiodsp-ctl.c audio_out/alsa-out.c audio_out/aml_resample.c audiodsp_update_format.c spdif_api.c pcmenc_api.c dts_transenc_api.c dts_enc.c audio_out/alsactl_parser.c -shared -lpthread -lm -lasound -lrt -ldl -o libamadec.so  
make[1]: fPIC: Command not found
Makefile:21: recipe for target 'libamadec.so' failed
make[1]: [libamadec.so] Error 127 (ignored)
install -m 555 libamadec.so /lib
install: cannot stat ‘libamadec.so’: No such file or directory
Makefile:24: recipe for target 'install' failed
make[1]: [install] Error 1 (ignored)
make[1]: Leaving directory '/home/osmc/libamcodec/amadec'
make -C amcodec install
make[1]: Entering directory '/home/osmc/libamcodec/amcodec'
MAKE audio_ctl
make[2]: Entering directory '/home/osmc/libamcodec/amcodec/audio_ctl'
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amcodec/depends.mk:8: recipe for target 'audio_ctrl.o.depend' failed
make[2]: [audio_ctrl.o.depend] Error 127 (ignored)
make[2]: Leaving directory '/home/osmc/libamcodec/amcodec/audio_ctl'
make[2]: Entering directory '/home/osmc/libamcodec/amcodec/audio_ctl'
audio_ctrl.o.d:1: *** recipe commences before first target.  Stop.
make[2]: Leaving directory '/home/osmc/libamcodec/amcodec/audio_ctl'
/home/osmc/libamcodec/amcodec/rules.mk:40: recipe for target 'audio_ctl-dir' failed
make[1]: *** [audio_ctl-dir] Error 2
make[1]: Leaving directory '/home/osmc/libamcodec/amcodec'
Makefile:5: recipe for target 'all' failed
make: [all] Error 2 (ignored)
make -C amffmpeg
make[1]: Entering directory '/home/osmc/libamcodec/amffmpeg'
CC	libavdevice/alldevices.o
/bin/sh: 1: arm-none-linux-gnueabi-gcc: not found
common.mak:31: recipe for target 'libavdevice/alldevices.o' failed
make[1]: *** [libavdevice/alldevices.o] Error 127
make[1]: Leaving directory '/home/osmc/libamcodec/amffmpeg'
Makefile:5: recipe for target 'all' failed
make: [all] Error 2 (ignored)
make -C amffmpeg install
make[1]: Entering directory '/home/osmc/libamcodec/amffmpeg'
CC	libavdevice/alldevices.o
/bin/sh: 1: arm-none-linux-gnueabi-gcc: not found
common.mak:31: recipe for target 'libavdevice/alldevices.o' failed
make[1]: *** [libavdevice/alldevices.o] Error 127
make[1]: Leaving directory '/home/osmc/libamcodec/amffmpeg'
Makefile:5: recipe for target 'all' failed
make: [all] Error 2 (ignored)
make -C amplayer install
make[1]: Entering directory '/home/osmc/libamcodec/amplayer'
make -f Makefile.mk TARGET=libamplayer.so  install
make[2]: Entering directory '/home/osmc/libamcodec/amplayer'
echo "MAKE player"; make -C player -f /home/osmc/libamcodec/amplayer/depends.mk; make -C player -f /home/osmc/libamcodec/amplayer/dir.mk
MAKE player
make[3]: Entering directory '/home/osmc/libamcodec/amplayer/player'
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player.o.depend' failed
make[3]: [player.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_ctrl.o.depend' failed
make[3]: [player_ctrl.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_av.o.depend' failed
make[3]: [player_av.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_es.o.depend' failed
make[3]: [player_es.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_ts.o.depend' failed
make[3]: [player_ts.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_ps.o.depend' failed
make[3]: [player_ps.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_rm.o.depend' failed
make[3]: [player_rm.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_audio.o.depend' failed
make[3]: [player_audio.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_video.o.depend' failed
make[3]: [player_video.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_para.o.depend' failed
make[3]: [player_para.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_hwdec.o.depend' failed
make[3]: [player_hwdec.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_update.o.depend' failed
make[3]: [player_update.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_error.o.depend' failed
make[3]: [player_error.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'log_print.o.depend' failed
make[3]: [log_print.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'message.o.depend' failed
make[3]: [message.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'stream_decoder.o.depend' failed
make[3]: [stream_decoder.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'thread_mgt.o.depend' failed
make[3]: [thread_mgt.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_id.o.depend' failed
make[3]: [player_id.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_ffmpeg_ctrl.o.depend' failed
make[3]: [player_ffmpeg_ctrl.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_set_sys.o.depend' failed
make[3]: [player_set_sys.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'h263vld.o.depend' failed
make[3]: [h263vld.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'version.o.depend' failed
make[3]: [version.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_mate.o.depend' failed
make[3]: [player_mate.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_profile.o.depend' failed
make[3]: [player_profile.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_cache_file.o.depend' failed
make[3]: [player_cache_file.o.depend] Error 127 (ignored)
/bin/sh: 1: M: not found
/home/osmc/libamcodec/amplayer/depends.mk:7: recipe for target 'player_cache_mgt.o.depend' failed
make[3]: [player_cache_mgt.o.depend] Error 127 (ignored)
make[3]: Leaving directory '/home/osmc/libamcodec/amplayer/player'
make[3]: Entering directory '/home/osmc/libamcodec/amplayer/player'
echo "CC  player.c";  -I/home/osmc/libamcodec/amplayer/player/include -I/home/osmc/libamcodec/amplayer/player/system/include  -I/home/osmc/libamcodec/amplayer/player -I/home/osmc/libamcodec/amplayer/../amffmpeg -I/home/osmc/libamcodec/amplayer/../amcodec/include -I/home/osmc/libamcodec/amplayer/../amadec/include -I/home/osmc/libamcodec/amplayer/../amavutils/include -fPIC -DENABLE_FREE_SCALE -Wall  -O2   -c  player.c 
CC  player.c
/bin/sh: 1: -I/home/osmc/libamcodec/amplayer/player/include: not found
/home/osmc/libamcodec/amplayer/rules.mk:40: recipe for target 'player.o' failed
make[3]: *** [player.o] Error 127
make[3]: Leaving directory '/home/osmc/libamcodec/amplayer/player'
/home/osmc/libamcodec/amplayer/rules.mk:43: recipe for target 'player-dir' failed
make[2]: *** [player-dir] Error 2
make[2]: Leaving directory '/home/osmc/libamcodec/amplayer'
Makefile:9: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/osmc/libamcodec/amplayer'
Makefile:5: recipe for target 'all' failed
make: [all] Error 2 (ignored)

Hmmm I’m following the trail, but I’m stuck a few steps before :wink: I seem to be missing ALSA (among others) on my Vero? Which package do I have to install?? (found alsaplayer-als, alsa-basa, alsa-oss and more)?

    CMake Error at /usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
  Could NOT find ALSA (missing: ALSA_LIBRARY ALSA_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.0/Modules/FindALSA.cmake:56 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:16 (find_package)

sudo apt-get install libasound2-dev is probably sufficient.

You only want to build libamcodec and libamutils, so cd in to those directories and try building, the parent Makefile probably doesn’t work.

Scrap that, just double checked and libamutils is a dependency of libamcodec, so we do build and ship it (it’s been a while). This means you don’t need to compile it.

I suspect:

-DAMCODEC_LIBRARY="/opt/vero2/lib" -DAMADEC_LIBRARY="/opt/vero2/lib" -DAMAVUTILS_LIBRARY="/opt/vero2/lib"

will work when appended to the previous AmLogic defines.

ok now using the new parameter:

root@osmc:/home/osmc/moonlight-embedded/build# cmake ../ -DAMCODEC_LIBRARY="/opt/vero2/lib" -DAMADEC_LIBRARY="/opt/vero2/lib" -DAMAVUTILS_LIBRARY="/opt/vero2/lib"
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found ALSA: /usr/lib/arm-linux-gnueabihf/libasound.so (found version "1.0.28") 
-- Found Opus: /usr/lib/arm-linux-gnueabihf/libopus.so  
-- Could NOT find Broadcom (missing:  BROADCOM_INCLUDE_DIR VCOS_LIBRARY VCHIQ_LIBRARY OPENMAXIL_LIBRARY BCM_HOST_LIBRARY) 
-- Could NOT find Freescale (missing:  FREESCALE_INCLUDE_DIR KERNEL_INCLUDE_DIR VPU_LIBRARY) 
-- Could NOT find Amlogic (missing:  AMLOGIC_INCLUDE_DIR) 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- Checking for module 'libevdev'
--   Found libevdev, version 1.3
-- Checking for module 'libudev'
--   Found libudev, version 215
-- Checking for module 'sdl2>=2.0.4'
--   
-- Checking for module 'libavcodec'
--   No package 'libavcodec' found
-- Checking for module 'libavutil'
--   No package 'libavutil' found
-- Checking for module 'x11-xcb'
--   No package 'x11-xcb' found
-- Checking for module 'vdpau'
--   No package 'vdpau' found
-- Checking for module 'libpulse-simple'
--   Found libpulse-simple, version 5.0
-- Checking for module 'libcec>=3.0.0'
--   
CMake Error at CMakeLists.txt:52 (message):
  No video output available


-- Configuring incomplete, errors occurred!
See also "/home/osmc/moonlight-embedded/build/CMakeFiles/CMakeOutput.log".

Hey, sorry for the noob questions that follow.

I tried following this guide, and it seems simple enough, but i get stuck at step 1, i check the file, the line is not there. And now i have no idea what todo. If i just add the repo it gives me this ‘-bash: line 8: /etc/apt/sources.list.d/moonlight.list: Permission denied’

I am totally with the pi and osmc, but i have been googling for a few hours and used the search function here.
Could anyone give me some advice?

try
sudo su

then the echo again

cmake ../ -DAMCODEC_LIBRARY="/opt/vero2/lib" -DAMADEC_LIBRARY="/opt/vero2/lib" -DAMAVUTILS_LIBRARY="/opt/vero2/lib"

@sam_nazarko I wonder if this is the correct approach?