New MythTV add-on using libcmyth - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136) +---- Thread: New MythTV add-on using libcmyth (/showthread.php?tid=110694) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
RE: New MythTV add-on using libcmyth - darkwizard - 2012-04-25 i installed liboost like ya said but still get those errors Making all in docsrc make[2]: Entering directory `/root/src/xbmc/lib/cpluff/libcpluff/docsrc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/root/src/xbmc/lib/cpluff/libcpluff/docsrc' make[2]: Entering directory `/root/src/xbmc/lib/cpluff/libcpluff' make[2]: Nothing to be done for `all-am'. make[2]: Leaving directory `/root/src/xbmc/lib/cpluff/libcpluff' make[1]: Leaving directory `/root/src/xbmc/lib/cpluff/libcpluff' make -C xbmc/pvrclients/MediaPortal make[1]: Entering directory `/root/src/xbmc/xbmc/pvrclients/MediaPortal' Makefile:27: warning: overriding commands for target `clean' /root/src/xbmc/Makefile.include:134: warning: ignoring old commands for target `clean' Makefile:32: warning: overriding commands for target `/root/src/xbmc/addons/pvr.team-mediaportal.tvserver/XBMC_MPTV.pvr' /root/src/xbmc/Makefile.include:128: warning: ignoring old commands for target `/root/src/xbmc/addons/pvr.team-mediaportal.tvserver/XBMC_MPTV.pvr' make[1]: `/root/src/xbmc/addons/pvr.team-mediaportal.tvserver/XBMC_MPTV.pvr' is up to date. make[1]: Leaving directory `/root/src/xbmc/xbmc/pvrclients/MediaPortal' make -C xbmc/pvrclients/mythtv make[1]: Entering directory `/root/src/xbmc/xbmc/pvrclients/mythtv' Makefile:18: warning: overriding commands for target `clean' /root/src/xbmc/Makefile.include:134: warning: ignoring old commands for target `clean' Makefile:24: warning: overriding commands for target `/root/src/xbmc/addons/pvr.mythtv/XBMC_Mythtv.pvr' /root/src/xbmc/Makefile.include:128: warning: ignoring old commands for target `/root/src/xbmc/addons/pvr.mythtv/XBMC_Mythtv.pvr' make[1]: `/root/src/xbmc/addons/pvr.mythtv/XBMC_Mythtv.pvr' is up to date. make[1]: Leaving directory `/root/src/xbmc/xbmc/pvrclients/mythtv' make -C xbmc/pvrclients/mythtv-cmyth make[1]: Entering directory `/root/src/xbmc/xbmc/pvrclients/mythtv-cmyth' Makefile:31: warning: overriding commands for target `clean' /root/src/xbmc/Makefile.include:134: warning: ignoring old commands for target `clean' Makefile:34: warning: overriding commands for target `/root/src/xbmc/addons/pvr.mythtv.cmyth/XBMC_MythTV_cmyth.pvr' /root/src/xbmc/Makefile.include:128: warning: ignoring old commands for target `/root/src/xbmc/addons/pvr.mythtv.cmyth/XBMC_MythTV_cmyth.pvr' CPP xbmc/pvrclients/mythtv-cmyth/fileOps.o fileOps.h: In constructor âfileOps2::fileOps2(MythConnection&)â: fileOps.h:53: warning: âfileOps2::m_conâ will be initialized after fileOps.h:52: warning: âboost::filesystem::path fileOps2::m_localBasePathâ fileOps.cpp:16: warning: when initialized here fileOps.h:54: warning: âfileOps2::m_sg_stringsâ will be initialized after fileOps.cpp:17: warning: base âPLATFORM::CThreadâ fileOps.cpp:16: warning: when initialized here fileOps.cpp:21: error: âstruct boost::filesystem::pathâ has no member named âc_strâ fileOps.cpp: In member function âCStdString fileOps2::getChannelIconPath(CStdString)â: fileOps.cpp:42: error: âstruct std::basic_string<char, std::char_traits<char>, std::allocator<char> >â has no member named âstringâ fileOps.cpp: In member function âCStdString fileOps2::getPreviewIconPath(CStdString)â: fileOps.cpp:63: error: âstruct std::basic_string<char, std::char_traits<char>, std::allocator<char> >â has no member named âstringâ fileOps.cpp: In member function âCStdString fileOps2::getArtworkPath(CStdString, FILE_OPTIONS)â: fileOps.cpp:95: error: âstruct std::basic_string<char, std::char_traits<char>, std::allocator<char> >â has no member named âstringâ fileOps.cpp: In member function âvoid fileOps2::cleanCache()â: fileOps.cpp:142: error: âstruct std::basic_string<char, std::char_traits<char>, std::allocator<char> >â has no member named âstringâ fileOps.cpp:151: warning: comparison between signed and unsigned integer expressions fileOps.cpp:150: warning: unused variable âmlmâ fileOps.cpp: In member function âbool fileOps2::writeFile(boost::filesystem::path, MythFile&)â: fileOps.cpp:240: error: âstruct boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits>â has no member named âc_strâ fileOps.cpp:246: error: âstruct boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits>â has no member named âc_strâ fileOps.cpp:294: error: âstruct boost::filesystem::pathâ has no member named âc_strâ make[1]: *** [fileOps.o] Error 1 make[1]: Leaving directory `/root/src/xbmc/xbmc/pvrclients/mythtv-cmyth' make: *** [pvrclients] Error 2 RE: New MythTV add-on using libcmyth - Jimmer - 2012-04-25 @darkwizard You probably need the 1.46 dev libraries for libboost. If it helps I have the following libboost libs on my system (I don't think you need them all for xbmc though.....). If you apt-get them you'll probably be able to carry on compiling. It's most likely the regex/filesystem libraries you're missing. Code: libboost1.46-dev RE: New MythTV add-on using libcmyth - bilbonvidia - 2012-04-25 Is it possible to revert to previous version somehow? RE: New MythTV add-on using libcmyth - Jimmer - 2012-04-25 (2012-04-25, 14:35)bilbonvidia Wrote: Is it possible to revert to previous version somehow? Depends on what platform you compiled it on and how you installed it? If you're on linux and used something like checkinstall then you'll have a rpm or deb (depending on your distro) that you can archive and go back to. If you are on OSX, then each successful compile is packaged into an .app, so you can archive these (just keeping the latest couple that have worked well for you). On windows I don't know, sorry.... All this is probably useless advice after the fact though. It is possible to revert a cloned git repo to an earlier commit though.... not sure what the commands are. You can then rebuild and use the advice above to make a catelogue of debs/rpms/apps/exes/whatever that will allow you to easily step back next time you have this problem.... A note on going back.... if there has been a database schema update, then restoring a previous version will use the appropriate database for that version. Changes to your library since the database upgrade will not be reflected when you downgrade. If like me, you clear out older mysql databases routinely, then you'll have to rebuild your library from scratch.... RE: New MythTV add-on using libcmyth - bilbonvidia - 2012-04-25 Thank you, hopefully there'll be another update which will fix soon. I know what you mean about the mysql db's,, they have casued a slight headache for me a few times as well, until all running the same version again. RE: New MythTV add-on using libcmyth - tsp42 - 2012-04-25 Hmm tested LiveTV again on my linux box. It shows the same error as has previous been posted. Very strange that the windows version isn't affected. Will see if I can find a solution. RE: New MythTV add-on using libcmyth - bilbonvidia - 2012-04-25 Thank you very much, it is appreciated! :-) RE: New MythTV add-on using libcmyth - Jimmer - 2012-04-25 (2012-04-25, 20:33)bilbonvidia Wrote: Thank you very much, it is appreciated! :-) Hey man, I think I've sussed out how to go back to a previous commit from the commandline: first, run the following from the xbmc source directory: Code: git log --pretty=oneline this will produce a list of commits with their sha, eg: Code: 78390d6026d0fd367e83f7c98fc8fc0ea33dcd77 FIX: missing else in CPVRClients::GetStreamPosition(). Thanks to dodoadoodoo for noticing it. then you decide what commit you want to go back to, e.g I like the look of: Code: 1e0bf4d93ba139c3bc12bb222159a60b9865cb6f ADDED: Changed default regex for folder naming to use subtitle separator. Now possible to change the title. ADDED: Optional regex to detect series. MAJOR FIX: lib Take the first 8 digits of the number displayed by the commit you want (in this example 1e0bf4d9) and type the following: Code: git reset --hard 1e0bf4d9 this will reset the repo to this commit (I think!) if you want to go back to the current commit, then a simple: Code: git pull should do the trick. I should mention that I forked tsp's branch to test and play around with git, so I'm new to all this and this may not be correct. It also assumes that you know the commit that you wish to go back to. That may require some trail and error on your part...... Anyway, it's something that I've long wondered about, so you prompted me to check it out. If I've done it wrong, someone please chip in! PS what platform are you compiling on? If it's a debian based linux, I can let you have the checkinstall commandline I use to produce a deb on install if you'd like? Makes switching between compiles as easy as using dpkg -r and then dpkg -i...... RE: New MythTV add-on using libcmyth - InoD - 2012-04-25 (2012-04-23, 21:36)InoD Wrote: Great update!I've tried to investigate the problem a bit myself, but it seems that it is unrelated to the myth:// protocol. Somehow, the logs I posted didn't have the following three lines: Code: 19:46:43 T:139913124009792 ERROR: CWinSystemX11::XErrorHandler: BadDrawable (invalid Pixmap or Window parameter), type:0, serial:49, error_code:9, request_code:136 minor_code:12 RE: New MythTV add-on using libcmyth - bilbonvidia - 2012-04-25 @Jimmer Thanks mate, I had been trying to figure it out, you beat me to it. RE: New MythTV add-on using libcmyth - tsp42 - 2012-04-25 I disabled time shift on Linux in the latest update so it should be usable till I find the obscure bug (fearing that it is ffmpeg again. Stupid decoder. Suspect that dteirney can agree on that). RE: New MythTV add-on using libcmyth - Jimmer - 2012-04-26 (2012-04-25, 22:45)tsp42 Wrote: I disabled time shift on Linux in the latest update so it should be usable till I find the obscure bug (fearing that it is ffmpeg again. Stupid decoder. Suspect that dteirney can agree on that). just tried to compile on linux: Code: CPP xbmc/pvr/addons/PVRClients.o seems the changes to PVRClients.cpp are not so robust! I just re-edited PVRClients to revert the changes and compiling proceeds on successfully..... .... plus was still wondering what part of mythconverg the addon references to download the artwork. Still trying to track that problem down! The only reference to art storage groups references /var/lib/mythtv ..... whereas my storage groups are on my server and mounted on my backend at /media/PVR/...... I can't find an entry that may contain filelists or anything like that. Any help would be appreciated! RE: New MythTV add-on using libcmyth - tsp42 - 2012-04-26 Fixed. I also found the reason why LiveTV wasn't working on Linux. Turned out that the mutex used on Linux in libcmyth is not reentrant so liveTV seeking caused the thread to deadlock. The mutex on windows is reentrant so no deadlock occurred. RE: New MythTV add-on using libcmyth - fetzerch - 2012-04-26 Nice work! Just one small thing: Either the onleft/onright or the order of rewind and pause is swapped. If you're on rewind and press right on the remote then you land on pause. (in both, home and osd) Short update on the 'Mark recordings as watched': (https://github.com/opdenkamp/xbmc/pull/508) PR is still open as I had to fix a few smaller issues. I added now also the watched overlay for folders allowing you to easily find out if you have unwatched episodes. :-) Hope it gets merged soon. RE: New MythTV add-on using libcmyth - chrisgibbs - 2012-04-26 (2012-04-26, 00:44)tsp42 Wrote: Fixed. I also found the reason why LiveTV wasn't working on Linux. Turned out that the mutex used on Linux in libcmyth is not reentrant so liveTV seeking caused the thread to deadlock. The mutex on windows is reentrant so no deadlock occurred. Great work. I can confirm this has also resolved my issue. Thanks for the commit. |