From owner-freebsd-multimedia@FreeBSD.ORG Mon Dec 12 13:54:12 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99FB41065670; Mon, 12 Dec 2011 13:54:12 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from groupware.itac.at (groupware.itac.at [91.205.172.99]) by mx1.freebsd.org (Postfix) with ESMTP id 25C418FC0A; Mon, 12 Dec 2011 13:54:11 +0000 (UTC) Received: from home.bluelife.at (93.104.210.95) by groupware.itac.at (Axigen) with (AES256-SHA encrypted) ESMTPSA id 341CA1; Mon, 12 Dec 2011 14:54:27 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_cd4ee35281441c5628f13417a9308142" Date: Mon, 12 Dec 2011 14:54:11 +0100 From: Bernhard Froehlich To: Bernhard Froehlich In-Reply-To: <3b76d03bf4984690e60f3c13e3eb84c8@bluelife.at> References: <20111119113719.GA20783@triton8.kn-bremen.de> <20111205185645.GA76468@triton8.kn-bremen.de> <3b76d03bf4984690e60f3c13e3eb84c8@bluelife.at> Message-ID: X-Sender: decke@bluelife.at User-Agent: Roundcube Webmail/0.6 X-AxigenSpam-Level: 1 X-CTCH-RefID: str=0001.0A0B020C.4EE60782.0212,ss=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Cc: freebsd-multimedia@freebsd.org, Juergen Lock , freebsd-ports@freebsd.org Subject: Re: xbmc pvr in ports; update, please test with MythTV too! :) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2011 13:54:12 -0000 --=_cd4ee35281441c5628f13417a9308142 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8; format=flowed On 12.12.2011 13:26, Bernhard Froehlich wrote: > On 05.12.2011 19:56, Juergen Lock wrote: >> I just updated to the latest release pvr-ppa-odk56: >> >> http://people.freebsd.org/~nox/tmp/xbmc-pvr-ppa-odk56.patch >> >> It would be nice if someone could verify this works with mythtv too >> before I commit it... > > First thing I noticed was that XBMC_Mythtv.pvr should really be > XBMC_MythTV.pvr because it complains in the logfile when loading the > addon: > > ERROR: ADDON: Could not locate XBMC_MythTV.pvr > > Moving the file to > /usr/local/lib/xbmc/addons/pvr.mythtv/XBMC_MythTV.pvr > gets it a step further. > > Next thing is an undefined symbol: > > ERROR: Unable to load > /usr/local/lib/xbmc/addons/pvr.mythtv/XBMC_MythTV.pvr, > reason: /usr/local/lib/xbmc/addons/pvr.mythtv/XBMC_MythTV.pvr: > Undefined > symbol "_ZTI14MythXmlCommand" > > It looks like this is part of libmythxml but It was not linked to the > shared object. While searching for that problem I found the following > commit which includes a hunk for xbmc/pvrclients/mythtv/Makefile.in > and > looks pretty right in what it does. But it's quite different code > than > what you have in your port. Are you sure you aren't using an old > branch > for the PVR code? > > > http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/xbmc;a=patch;h=7e83f17 > > Both problems fixed with the attached patch. > > Now getting to the next undefined symbol: > > ERROR: Unable to load > /usr/local/lib/xbmc/addons/pvr.mythtv/XBMC_MythTV.pvr, reason: > /usr/local/lib/xbmc/add > ons/pvr.mythtv/XBMC_MythTV.pvr: Undefined symbol "GetChannelsAmount" I got the plugin load correctly now with another patch that is attached. After setting the PIN in mythtv-setup it also connects fine to the backend now but I cannot import any channels into xbmc so I cannot even test watching TV. It feels a lot like the code is unfinished or unmaintained and not expected to work with mythtv 0.24. The future also doesn't look good because I found in the MythTV wiki (http://www.mythtv.org/wiki/Category:MythXML): The MythXML interface has been rewritten for upcoming 0.25, and these methods will no longer be valid. So the xbmc pvr plugin for mythtv is kind of useless. -- Bernhard Fröhlich http://www.bluelife.at/ --=_cd4ee35281441c5628f13417a9308142 Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; name=patch-xbmc-pvrclients-mythtv-client.cpp Content-Disposition: attachment; filename=patch-xbmc-pvrclients-mythtv-client.cpp LS0tIHhibWMvcHZyY2xpZW50cy9teXRodHYvY2xpZW50LmNwcC5vcmlnCTIwMTEtMTItMTIgMTQ6 MDI6MzguMjU1NDY5MjYyICswMTAwCisrKyB4Ym1jL3B2cmNsaWVudHMvbXl0aHR2L2NsaWVudC5j cHAJMjAxMS0xMi0xMiAxNDowMjozMi41OTQ0Njc0NDUgKzAxMDAKQEAgLTI5Miw3ICsyOTIsNyBA QAogLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovCiAvKiogUFZS IENoYW5uZWwgRnVuY3Rpb25zICAgICAgICAgICAgICAgICAqKi8KIAotaW50IEdldE51bUNoYW5u ZWxzKCkKK2ludCBHZXRDaGFubmVsc0Ftb3VudCgpCiB7CiAJaWYgKE15dGhYbWxBcGkgPT0gTlVM TCkKIAkJcmV0dXJuIFBWUl9FUlJPUl9TRVJWRVJfRVJST1I7CkBAIC00NTMsNiArNDUzLDI0IEBA CiAJcmV0dXJuIDA7CiB9CiAKKy8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqLworLyoqIFBWUiBDaGFubmVsIGdyb3VwIEZ1bmN0aW9ucyAgICAgICAgICAgKiovCisg CitpbnQgR2V0Q2hhbm5lbEdyb3Vwc0Ftb3VudCh2b2lkKQoreworICByZXR1cm4gMDsKK30KKyAK K1BWUl9FUlJPUiBHZXRDaGFubmVsR3JvdXBzKFBWUl9IQU5ETEUgaGFuZGxlLCBib29sIGJSYWRp bykKK3sKKyAgcmV0dXJuIFBWUl9FUlJPUl9TRVJWRVJfRVJST1I7Cit9CisKK1BWUl9FUlJPUiBH ZXRDaGFubmVsR3JvdXBNZW1iZXJzKFBWUl9IQU5ETEUgaGFuZGxlLCBjb25zdCBQVlJfQ0hBTk5F TF9HUk9VUCAmZ3JvdXApCit7CisgIHJldHVybiBQVlJfRVJST1JfU0VSVkVSX0VSUk9SOworfQor CiAKIC8qKiBVTlVTRUQgQVBJIEZVTkNUSU9OUyAqLwogRGVtdXhQYWNrZXQqIERlbXV4UmVhZCgp IHsgcmV0dXJuIE5VTEw7IH0K --=_cd4ee35281441c5628f13417a9308142--