Linux Kodi and kodi platform - custom prefix
#1
Hi,

My setup is not typical. I want to have kodi in custom prefix /xbmc. Then I want to distribute compressed zip, extract it on other machines and run kodi with pvr support. I use following script to compile kodi + hts.pvr:

Code:
git clone https://github.com/xbmc/xbmc.git
cd xbmc
./bootstrap
./configure --disable-debug --prefix=/xbmc
make -j9
make install


git clone https://github.com/xbmc/kodi-platform.git
cd kodi-platform
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/xbmc/lib/kodi
make -j9
make install

cd ..
git clone https://github.com/kodi-pvr/pvr.hts.git
cd pvr.hts
mkdir build
cd build
cmake  -DCMAKE_INSTALL_PREFIX="/xbmc" -DCMAKE_MODULE_PATH=/xbmc/lib/kodi  ..
make -j9
make install

tar -zcvf /home/michal/$(date -d "today" +"%Y%m%d%H%M")-xbmc.tar.gz /xbmc

Basically, it works as should, but I also need to compile and install kodi platform on each client machine. Untar archive is not enough, because hts.pvr needs kodi platform library.

How to avoid it in my scenario? Can I force kodi platform to be included at the same prefix as kodi app? (/kodi), so it will be included in my archive? Instead of system wide installation at /usr?

Or, maybe is it possible to compile pvr.hts with kodi platform library linked statically?
Reply
#2
to build static libraries pass -DBUILD_SHARED_LIBS=0. and yes, you can do the platform lib static.
Reply
#3
Where should I pass this option? To platform or pvr.hts?
Reply
#4
you want to build the platform library static -> that's where you pass it...
Reply
#5
Thanks, I will try. That new stuff with pvr addons makes me crazy.
Reply
#6
Still hts requires libkodiplatorm.so. So not linked statically? How can uninstall kodi platform to get fully clean setup? I can't do "make uninstall"
Reply
#7
Ok... nevermind. I deleted all kodi platform files from /usr/include and /usr/lib. Then reinstalled as static and now it works as I want. There should be uninstall script for kodi-platorm though
Reply
#8
Sadly cmake doesnt generate an uninstall target and i am way too lazy to add them all over so i simply skip them everywhere - no discrimination from me Wink
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi and kodi platform - custom prefix0