LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-04-2019, 04:32 AM   #1
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 362

Rep: Reputation: Disabled
Kodi-18 + pvr.hts (TVHeadend)


I've managed to get Kodi-18 to build on Slackware-current (+ AlienBob's excellent Plasma5), but so far, installing pvr.hts to enable TVHeadend (for DTV viewing) has defeated me!

The installation of binary add-ons (one of the main features of Kodi-18) is not enabled in Linux, and all the instructions as to how to achieve this are aimed at Debian / Ubuntu systems and have little relevance to Slackware. I've found one reference to PPA (?), but no clue as to what that is or how to use it!

On Kodi 17.4/6, I needed to unpack the raw tarball into one folder and pvr.hts into another. I could then run:
Code:
cd pvr.hts && mkdir build && cd build
cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc-17.4-Krypton/addons -DPACKAGE_ZIP=1 ../../xbmc-17.4-Krypton/project/cmake/addons
make
This would install the necessary sources and scripts into the addons and project/cmake/addons folders, so that when kodi was built the new addon would get built at the same time.

Unfortunately, under kodi-18, the build structure seems to have changed, and the project/cmake/addons folder no longer exists. Since this is where the cmake files are placed, I am now in something of a quandary!

Any pointers from anyone who has played with this gratefully received!

In case anyone is interested, I attach my slackbuild for basic kodi-18. I'm not claiming its perfect (use it at your own risk!), but it works for me! Any comments for improvements also gratefully received!

P.S. Should have added, you need to build and install fstrcmp and rapidjason as dependencies.

--
Pete
Attached Files
File Type: txt kodi-nopvr.hts.SlackBuild.txt (4.3 KB, 14 views)

Last edited by pchristy; 02-04-2019 at 04:35 AM.
 
Old 02-04-2019, 07:49 AM   #2
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 362

Original Poster
Rep: Reputation: Disabled
Well, after a lot of digging, I finally found a document that suggested running the following in the xbmc-18.0-Leia directory:

make -j$(getconf _NPROCESSORS_ONLN) -C tools/depends/target/binary-addons PREFIX=/usr/local ADDONS="pvr.hts"

It didn't give any indication as to whether this should be done before or after the main kodi build, so I assumed that it should be done before. I therefore ran it after the crossguid, flatbuffers and libfmt builds, but before the main kodi build. This appeared to build and install a lot of pvr.hts related stuff into the xbmc-18.0-Leia directory. I then proceeded to configure the build for X11, and finally build kodi.

On examining the build, there is no trace of pvr.hts anywhere in the final build, and running kodi tells me that I don't have pvr.hts installed!

Clearly I've missed something, but what?

I have to say that much of the documentation for 18 is very confusing and difficult to find. Most of it is aimed at Ubuntu or Debian, and many of the links take you to pages for 17.X instead of 18.

TIA,

--
Pete
 
Old 02-04-2019, 10:10 AM   #3
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Debian, Xubuntu
Posts: 213
Blog Entries: 1

Rep: Reputation: 88
If you found a reference to a PPA (a.k.a. Personal Package Archive), then that is a repository that contains software packages for Ubuntu. With a little luck, it may include the source files that you are looking for.
 
Old 02-04-2019, 10:16 AM   #4
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 362

Original Poster
Rep: Reputation: Disabled
I've got the source files, my problem is there are no instructions for installing them! Its not clear from the documentation whether these are compiled into kodi, or installed separately as a stand-alone. I suspect the latter. But then, once you have them, how do you install them into kodi? All the documentation seems to be aimed at either windoze or Ubuntu (install from repository). Not much help on the source build front!

In the meantime, I seem to have run into another problem, in that some recent update seems to have broken TVHeadend anyway, so now I must fix that first!

Life is never simple, is it?

Cheers,

--
Pete
 
Old 02-04-2019, 10:26 AM   #5
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Debian, Xubuntu
Posts: 213
Blog Entries: 1

Rep: Reputation: 88
If you have the instructions for installing from a Debian or Ubuntu repository, then you could download the binary packages from said repository, extract their contents, and see if that gets you anywhere.

I do not know if Slackware has any specialised utilities to extract Debian packages, though. If all else fails, you could try the low-level commands (I seem to remember that something like cpio will be involved in that case).
 
Old 02-04-2019, 10:32 AM   #6
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 362

Original Poster
Rep: Reputation: Disabled
Thanks for your input. Ideally, I'd like to make a single slackbuild that will just do everything, however that is looking impractical. For example, if you look at my current slackbuild, that appears to install the "pre-"build stuff (crossguid, etc) automatically, outside of the end slackpkg. (Presumably because kodi won't build without them!) It appears that pvr.hts is treated the same way - except that it doesn't then get picked up automatically as being present. Built, yes. Installed, yes. Available? No!

But again, that *may* be because of tvheadend issues caused by some recent update. Investigations are ongoing......

--
Pete
 
Old 02-04-2019, 01:58 PM   #7
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 362

Original Poster
Rep: Reputation: Disabled
Well I've rebuilt TVHeadend and got it working again, but Kodi-18 still refuses to acknowledge the presence of pvr.hts. It appears to be installed - at least, I can find the libraries from it - but Kodi offers no options to enable / install it!

I've been posting a similar thread over on the Kodi forum, but it hasn't attracted a single response yet. Looks like the developers think Linux starts and ends with Ubuntu.......

--
Pete
 
Old 02-04-2019, 02:29 PM   #8
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 904

Rep: Reputation: 468Reputation: 468Reputation: 468Reputation: 468Reputation: 468
@pchristy

Indeed, they changed the way Kodi & Add-Ons are built in the new 18 release. I'm not sure why are you following this in-tree compilation approach for the binary add-ons (also called system add-ons), as these add-ons are continuously & independently developed and there's a reason why they are called Add-Ons.
I was considering the same approach when I first compiled Kodi 17 and then realized it's wrong, because I'll need to update the add-ons and better keep this operation external.
If you're still pursuing your in-tree add-ons compilation approach, these new docs might help:
https://github.com/xbmc/xbmc/tree/master/cmake/addons
https://github.com/xbmc/xbmc/blob/ma...binary-add-ons
+ get on forum.kodi.tv and directly ask the developers about the right way to do it in Kodi 18

If you like to follow the external approach of building binary add-ons, first install Kodi, don't have it running, and follow the section "--- ADD-ONS ---" from here:
https://www.linuxquestions.org/quest...5/#post5957433
- in order to get pvr.hts built&installed you have to build&install platform and kodi-platform first, those are the core add-ons "enablers"
- obviously, you could wrap the external add-ons compilation in a slackbuild, but I don't see the point in that

After you build&install pvr.hts, start Kodi, go in Add-ons>My Add-ons>PVR Clients and Configure + Enable the TVheadend HTSP Client.
You can upgrade it by make uninstall + make install a newer version (always make sure Kodi is not running), the settings will be preserved in the home directory of the user with which you run kodi - /home/user/.kodi/

Last edited by abga; 02-05-2019 at 12:40 AM. Reason: they+from
 
Old 02-04-2019, 05:28 PM   #9
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 362

Original Poster
Rep: Reputation: Disabled
@abga

Thank you very much for your input! I was following the in-tree compilation approach because it was the only one I could find documented! Unfortunately, it appears the documentation is incomplete, because whilst everything builds as expected, it doesn't connect together!

I will have look at the links you have provided. Hopefully they will get me going. Unfortunately, I have a prior job for much of tomorrow, so it may be Wednesday before I can spend any real time on the problem again. But rest assured, I will have a close look at the links you have provided and see if I can follow them to a solution.

Again, many thanks for your input!

--
Pete
 
Old 02-04-2019, 05:37 PM   #10
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 904

Rep: Reputation: 468Reputation: 468Reputation: 468Reputation: 468Reputation: 468
@pchristy

You're welcome & you're right, the docs were not really helpful at the Kodi project, a little better these days.
I do remember now that I went through the same situation like yours, looking for a way to compile the pvr.hts add-on and got some help on their forum (more than 2 years ago):
https://forum.kodi.tv/showthread.php?tid=294038

You should go for the "external approach" - second section in my post #8, it's the way to build and manage binary add-ons.
 
Old 02-04-2019, 07:24 PM   #11
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Debian, Xubuntu
Posts: 213
Blog Entries: 1

Rep: Reputation: 88
Just FYI, the Kodi PPA (“Personal Package Archive”) appears to offer Kodi 18 and includes a “kodi-pvr-hts” package—which seems to be what you’re looking for. Presumably, assuming that Debian-style packages can somehow be unpacked in Slackware, it may well be possible to install from these binary packages. (Some SlackBuilds—e.g., LibreOffice—install from RPM-style binary packages, so in principle, it should be doable.)
 
Old 02-05-2019, 04:14 AM   #12
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 362

Original Poster
Rep: Reputation: Disabled
Just been having a quick look at @abga's links, and yes, the external approach does look like the best option. I have to go out for most of the day shortly, but should be able to have a go tomorrow.

@luvr: Yes, I have used deb2tgz in the past to convert debian packages to slackware when there is no alternative. However, in this instance, there seems to be a "proper" alternative, so I'm going to give it a go.

Thanks for the suggestion, though! It might well suit someone else following this thread as an alternative option!

--
Pete
 
Old 02-05-2019, 12:34 PM   #13
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 362

Original Poster
Rep: Reputation: Disabled
OK, managed to finish up a bit early and have another go at this.....

1) Platform: This went OK once I switched from the build dialog in @abga's other thread to the one in the "README" in the Platform folder.

2) kodi-platform: Failed! The error message is as follows:

Code:
cmake -DCMAKE_INSTALL_PREFIX=/usr/local
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- 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
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:8 (find_package):
  By not providing "FindKodi.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Kodi", but
  CMake did not find one.

  Could not find a package configuration file provided by "Kodi" with any of
  the following names:

    KodiConfig.cmake
    kodi-config.cmake

  Add the installation prefix of "Kodi" to CMAKE_PREFIX_PATH or set
  "Kodi_DIR" to a directory containing one of the above files.  If "Kodi"
  provides a separate development package or SDK, be sure it has been
  installed.
There's no README in this folder, but the kodi build directory still exists in /tmp and contains KodiConfig.cmake. Not knowing much about cmake, I'm at something of a loss as to how to point it to this file! I can copy the file to a suitable directory, if I knew which directory might enable the cmake call to find it!

Kodi is installed in /usr/local

Help! (Please!)

--
Pete
 
Old 02-05-2019, 04:18 PM   #14
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Debian, Xubuntu
Posts: 213
Blog Entries: 1

Rep: Reputation: 88
My spontaneous, probably naive, reaction would be to set the “CMAKE_MODULE_PATH” variable to the directory that contains the ‘KodiConfig.cmake’ file, then retry the command, … and see what error it produces next…
 
Old 02-05-2019, 04:30 PM   #15
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 904

Rep: Reputation: 468Reputation: 468Reputation: 468Reputation: 468Reputation: 468
Quote:
Could not find a package configuration file provided by "Kodi" with any of
the following names:

KodiConfig.cmake
kodi-config.cmake
You're removing the required cmake files in the SlackBuild (your first post) that you copy-pasted from Larry Hajali's:
http://slackbuilds.org/repository/14.2/multimedia/kodi/
Code:
# Final clean up.
find $PKG \( -name "Makefile*" -o -name "*cmake*" -o -name "*\.in" \) -exec rm -f '{}' \;
Comment that line and build Kodi again!

Send an e-mail to Mr. Hajali and let him know that his SlackBuild is broken and is causing a lot of issues. I did it myself some years ago and it seems he doesn't care/ didn't read it.

Uninstall platform, even if you built it successfully, I'm not sure it's not broken, you'll rebuild & reinstall it after rebuilding&reinstalling Kodi:
Code:
cd /the-path-you-cloned-platform-into/platform/
make uninstall
Can't follow you on this:
Quote:
1) Platform: This went OK once I switched from the build dialog in @abga's other thread to the one in the "README" in the Platform folder.
What have you exactly switched to?

Please follow exactly these tested instructions (copy-paste from my Kodi Slackware ARM post) if you like to succeed. after recompiling&installing Kodi:
- some important add-ons that you need to build. Prepare the working dir:
Code:
Code:
mkdir -p /kit/kodi-slack-build/addons-18/ && cd /kit/kodi-slack-build/addons-18/
- the platform add-on, required to be able to build&install other add-ons:
Code:
cd /kit/kodi-slack-build/addons-18/
git clone https://github.com/Pulse-Eight/platform.git
cd /kit/kodi-slack-build/addons-18/platform/
cmake -DCMAKE_INSTALL_PREFIX=/usr/local
make && make install
ldconfig
- the kodi-platform add-on, required to be able to build&install other add-ons:
Code:
cd /kit/kodi-slack-build/addons-18/
git clone https://github.com/xbmc/kodi-platform.git
cd /kit/kodi-slack-build/addons-18/kodi-platform/
cmake -DCMAKE_INSTALL_PREFIX=/usr/local
make && make install
ldconfig
- the pvr.hts add-on, in case you want to connect to a TVheadend backend and watch TV:
Code:
cd /kit/kodi-slack-build/addons-18/
git clone https://github.com/kodi-pvr/pvr.hts.git
cd /kit/kodi-slack-build/addons-18/pvr.hts/
cmake -DCMAKE_INSTALL_PREFIX=/usr/local
make && make install
ldconfig
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Kodi Devs Celebrate New Year with First Release Candidate of Kodi 17 "Krypton" LXer Syndicated Linux News 0 01-01-2017 01:00 AM
[SOLVED] Kodi freezes on exit, kodi.bin won't die pressman57 Linux - Software 6 12-19-2016 08:48 PM
LXer: Kodi 17 "Krypton" Alpha 3 Brings Live TV and PVR Improvements, New Skin Features LXer Syndicated Linux News 0 08-03-2016 01:57 AM
PVR addon not found in Kodi on Slackware commandlinegamer Slackware 3 02-05-2016 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration