Kodi Community Forum

Full Version: Unable to compile pvr.mythtv (Jarvis) on Fedora 24
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I'd like to use pvr.mythtv on Fedora but there doesn't seem to be any packaged version from any reputable repo.

I had no problem cloning xbmc and pvr.mythv from github and was then able to compile pvr.mythtv. The problem is that the compiled addon causes X to crash after Kodi is restarted.
(For reference I've got my system configured by mostly using these instructions and I have a separate mythtv backend.)


Because I'm not compiling xbmc/Kodi, but instead am using the currently available version from the Fedora rpmfusion repo, I expect the crash is caused by me compiling pvr.mythv against a newer release of Kodi, but then trying to use it on an older version.

Should I spend more time investigating cryptic Xorg logs or kodi logs or is this probably the cause?

What would I need to do to compile pvr.mythtv against an older version of Kodi? (How could I check out the old branch, for example)


I'm hoping that in the long-term I'll be able to come up with an automated way to checkout the correct branch, recompile pvr.mythtv and replace the old copy every time the kodi binary is updated.
I imagine I could check out an old branch in an automated fashion in a shell script, but it's a bit annoying that the kodi branch names are not based on numbers but instead on the release name.


Thank you in advance!
You need to compile the correct branch of your addon. For kodi 16 use the jarvis branch
Thanks for the fast reply wsnipex!

While I can run this manually for now I wish to automate it in future.

Since the Kodi packages are numbered, I need to determine the branch name in order to script it. As far as you know, is the header in the /usr/share/doc/kodi/README.md file which mentions the branch by name in Travis reference, always going to exist?


Thanks again!
I'm having a world of pain trying to get this to compile with the correct branch!

"
No platform specific file /home/mock/source/xbmc/project/cmake/addons/depends/linux/CMakeLists.txt found
"

I don't claim to understand the conversation (at least in the quick time I've read it) but I gather you were involved in a conversation on Github around this kind of issue. There was some Windows-specific compression library causing issues for people doing exactly like I am - working on only on one branch (Jarvis).

Could anybody please help?
This is just a warning and definitely not an issue. Provide a complete build log.
Thanks!

Immediately after that warning it ends with
Code:
-- Processing linux
-- No platform specific file /home/builder/source/xbmc/project/cmake/addons/depends/linux/linux/CMakeLists.txt found
CMake Error at CMakeLists.txt:394 (message):
  pvr.mythtv: invalid or missing addon source directory at
  /home/builder/source/xbmc/project/pvr.mythtv

full dump here http://pastebin.com/vEfh1zpn
and the log mentioned in it is dumped here http://pastebin.com/89FdSmMG

It's right that /home/builder/source/xbmc/project/pvr.mythtv doesn't exist - I thought that was created by this cmake process?

For reference, I'm running
Code:
cmake -DADDONS_TO_BUILD=pvr.mythtv -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons
which is straight from the readme on this branch
I've just removed my whole source directory and repeated the steps in the readme (except that I'm cloning only the "Jarvis" branch) however I keep having the same problem.
I've done it one more time as I thought I'd made errors.
I also avoided using the --single-branch argument with 'git clone' just in case.

This paste includes the full history of me actually cloning both repos, setting up and running cmake.

http://pastebin.com/dvqNeQww

It ends in the same error at 100%(!) sadly.


Here's the paste of the log from it:

http://pastebin.com/LDSx2PPj


Thanks in advance!
I'd really appreciate help please it still fails in cmake.


Is anybody using this on a recent Fedora release?

It would be really sad to have to stick with mythtv frontend as my primary interface.

Thanks!
(2016-08-18, 11:51)linuxhtpc Wrote: [ -> ]Thanks!

Immediately after that warning it ends with
Code:
-- Processing linux
-- No platform specific file /home/builder/source/xbmc/project/cmake/addons/depends/linux/linux/CMakeLists.txt found
CMake Error at CMakeLists.txt:394 (message):
  pvr.mythtv: invalid or missing addon source directory at
  /home/builder/source/xbmc/project/pvr.mythtv

Hi, there seems to be error in the instructions, you have to clone the pvr.mythtv into that xbmc/project directory. Here is complete instructions based on how I compiled the add-on on Fedora 24:
Code:
1. git clone -b Jarvis https://github.com/xbmc/xbmc.git
2. cd xbmc/project/
3. git clone -b Jarvis https://github.com/kodi-pvr/pvr.mythtv.git
4. cd pvr.mythtv && mkdir build && cd build
5. cmake -DADDONS_TO_BUILD=pvr.mythtv -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../../addons -DPACKAGE_ZIP=1 ../../../project/cmake/addons
6. make

After that you can create the zip package like this:
Code:
1. cp pvr.mythtv-prefix/src/pvr.mythtv-build/pvr.mythtv.so ../pvr.mythtv/
2. cd ..
3. zip -r pvr.mythtv.zip pvr.mythtv
Awesome, thanks so much for creating an account just to reply!

I'll give that a try very soon.

Note that after I wrote these posts I realised that I was compiling the addon against xbmc source and not the patched xbmc source used in Fedora. So I began investigating creating a pvr.mythv rpm using the Kodi 16 SRPM for Fedora as a base.
I've not had much chance to look at it since.