Compilar nuestro propio tvheadend en QNAP como si fuera un paquete QPKG
Preparamos el sistema con los paquetes necesarios:
sudo apt-get update sudo apt install build-essential git pkg-config libssl-dev bzip2 wget sudo apt install libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavresample-dev sudo apt install gettext
Clonamos el proyecto mediante GitHub:
git clone https://github.com/tvheadend/tvheadend.git
Procedemos a configurar y compilarlo
cd tvheadend ./configure --help #Si queremos ver todas las opciones disponibles ./configure --disable-avahi --enable-bundle --disable-libav --disable-dbus_1 --release make cd build.linux ./tvheadend -C
http://127.0.0.1:9981 – check version etc
http://NAS1 – as admin – upload tvheadend from /home/ubuntu/tvheadend/build.linux to NAS1 public share
También hay que subir de la carpeta /lib/x86_64-linux-gnu los ficheros a public share on NAS
libc-2.19.so as libc.so.6 libcrypto.so.1.0.0 as libcrypto.so.1.0.0 libdl-2.19.so as libdl.so.2 libm-2.19.so as libm.so.6 libnsl-2.19.so as libnsl.so.1 libnss_compat-2.19.so as libnss_compat.so.2 libpthread-2.19.so as libpthread.so.0 librt-2.19.so as librt.so.1 libssl.so.1.0.0 as libssl.so.1.0.0 libz.so.1.2.8 as libz.so.1 ld-2.19.so as tvh-loader
Entrar con «Putty» al NAS como «admin»
tvheadend stop tvheadend backup /share/MD0_DATA/Public/tvheadend.config.yymmdd (will need this for regression due to newer configuration items) cd /share/MD0_DATA/.qpkg/TVHeadend/bin cp tvheadend tvheadend.ori cp /share/MD0_DATA/Public/tvheadend . cd /share/MD0_DATA/.qpkg/TVHeadend/bin/libc cp tvh-loader tvh-loader.ori cp libdl.so.2 libdl.so.2.ori cp libm.so.6 libm.so.6.ori cp libnsl.so.1 libnsl.so.1.ori cp libnss_compat.so.2 libnss_compat.so.2.ori cp libpthread.so.0 libpthread.so.0.ori cp librt.so.1 librt.so.1.ori cp libz.so.1 libz.so.1.ori cp /share/MD0_DATA/Public/lib* . cp /share/MD0_DATA/Public/tvh-loader . tvheadend debug start
Testeamos la interfaz Web, Version, etc
CTRL & C
tvheadend start
To regress stop tvheadend, copy .ori files over the top of the updated files, tvheadend restore /share/MD0_DATA/Public/tvheadend.config.yymmdd, start tvheadend
Visto en: http://forum.qnap.com/viewtopic.php?f=276&t=52511&start=1485#p524767