Kodi Community Forum
Compile Stalker PVR client for Linux/Fedora ... - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+---- Forum: Stalker Middleware (https://forum.kodi.tv/forumdisplay.php?fid=234)
+---- Thread: Compile Stalker PVR client for Linux/Fedora ... (/showthread.php?tid=258283)



Compile Stalker PVR client for Linux/Fedora ... - nyceyes - 2016-01-30

Hello Friends:

I installed Kodi v15.2 on Fedora-23 via it's RPMfusion repository.

That package doesn't include the Stalker PVR Client, so I need to manually compile it.

The below procedure (see code box) is what I've used in the past to compile and install (i.e. slipstream) the Stalker PVR Client directly into Kodi itself. However now, I want to install the Stalker PVR client into my "${HOME}/.kodi/addons/" directory instead.

So I have two questions ...

(1) Given the below procedure, what adjustments do I need to make to compile Stalker PVR Client so that it installs into "${HOME}/.kodi/addons/"? As shown, "make install" will install things under /usr/local, which I don't want. I want it under "${HOME}/.kodi/addons/".

(2) The final compilation step (Step-3 below) requires jsoncpp. On my Fedora-23 system, jsoncpp related files are located as shown at the very end of this post. How do I adjust Step-3 to find jsoncpp there?

Thank you in advance! Blush

Code:
#! /bin/sh -x
#
# ===================================================
# BUILD PULSE-EIGHT PLATFORM (Step-1) ...
# ===================================================
cd /home/user/Downloads/KODI.d/BUILD.d
git clone https://github.com/Pulse-Eight/platform.git platform.d
cd /home/user/Downloads/KODI.d/BUILD.d/platform.d
cmake CmakeLists.txt
make
make install
# ===================================================

# ===================================================
# BUILD KODI-PLATFORM (Step-2) ...
# ===================================================
cd /home/user/Downloads/KODI.d/BUILD.d
git clone https://github.com/xbmc/kodi-platform.git kodi-platform.d
cd /home/user/Downloads/KODI.d/BUILD.d/kodi-platform.d
cmake CmakeLists.txt
make
make install
# ===================================================

# ===================================================
# BUILD STALKER PVR CLIENT (Step-3) ...
# ===================================================
cd /home/user/Downloads/KODI.d/BUILD.d
git clone https://github.com/kodi-pvr/pvr.stalker.git pvr-stalker.d
cd /home/user/Downloads/KODI.d/BUILD.d/pvr-stalker.d
cmake CmakeLists.txt
make
make install
# ===================================================


Location of jsoncpp libraries and headers ...
Code:
user@linux$ rpm -ql jsoncpp
/usr/lib64/libjsoncpp.so.0
/usr/lib64/libjsoncpp.so.0.0.0
/usr/share/doc/jsoncpp
/usr/share/doc/jsoncpp/AUTHORS
/usr/share/doc/jsoncpp/LICENSE
/usr/share/doc/jsoncpp/NEWS.txt
/usr/share/doc/jsoncpp/README.txt
/usr/lib/libjsoncpp.so.0
/usr/lib/libjsoncpp.so.0.0.0
/usr/share/doc/jsoncpp
/usr/share/doc/jsoncpp/AUTHORS
/usr/share/doc/jsoncpp/LICENSE
/usr/share/doc/jsoncpp/NEWS.txt
/usr/share/doc/jsoncpp/README.txt

user@linux$ rpm -ql jsoncpp-devel
/usr/include/jsoncpp
/usr/include/jsoncpp/json
/usr/include/jsoncpp/json/autolink.h
/usr/include/jsoncpp/json/config.h
/usr/include/jsoncpp/json/features.h
/usr/include/jsoncpp/json/forwards.h
/usr/include/jsoncpp/json/json.h
/usr/include/jsoncpp/json/reader.h
/usr/include/jsoncpp/json/value.h
/usr/include/jsoncpp/json/writer.h
/usr/lib64/libjsoncpp.so
/usr/lib64/pkgconfig/jsoncpp.pc