Page 1 of 2

Mythtv trunk & Mythbrowser plugin

Posted: Wed May 27, 2009 2:02 pm
by pleeke
Pablo,

I'm trying to get mythbrowser plugin to work in a mythtv trunk build. when starting mythbrowser an error is displyaed on the screen "This feature requires QtWebKit from 4.4.0 or later". Looking at the build system it appears that MM builds QtWebKit support but strips out the librarys/files from the resultant image (I might be very wrong on this though). would it be possible to include the QtWebKit into Minimyth or is it much more complex?


Thanks
Peter

Re: Mythtv trunk & Mythbrowser plugin

Posted: Wed May 27, 2009 6:04 pm
by Pablo
It was intended to work. Apparently, it does not.

While QtWebKit builds without QtDBus and does not depend on the QtDBus library, it appears that QtWebKit requires QtDBus (even though the application using QtWebKit may not depend on it). I do not know why this is. It could be a bug in the QtWebKit dependencies.

Anyway, I was not building QtDBus. As a result, MythTV's configuration script's attempt to detect QtWebKit failed. I have modified the qt/qt4 package so that it builds the QtDBus package. After doing so, MythTV's configuration script detects QtWebKit. Hopefully, that fixes the problem.

I have committed the change to SVN and it will be in the next build.

Re: Mythtv trunk & Mythbrowser plugin

Posted: Wed May 27, 2009 8:11 pm
by pleeke
Hi,

Thanks for the fast response. This issue? http://www.qtsoftware.com/developer/tas ... &id=247098


I'm building a new MM build and will let you know what I get.

Thanks
Peter

Re: Mythtv trunk & Mythbrowser plugin

Posted: Wed May 27, 2009 9:16 pm
by Pablo
pleeke wrote:Thanks for the fast response. This issue? http://www.qtsoftware.com/developer/tas ... &id=247098
Yes, that appears to be the same issue. Thank you for the pointer.
I'm building a new MM build and will let you know what I get.
Thanks.

Re: Mythtv trunk & Mythbrowser plugin

Posted: Thu May 28, 2009 10:31 pm
by pleeke
Pablo,

Mythbrowser now starts and I can browse various websites. However no images within webpages are loaded:

Image

Note: on this frontend I am unable to view channel icons/ mythvideo coverart/ banners etc. Previously I thought that might be down to cfg errors on my part (i.e. something related to paths of images from backend to frontend), but mythbrowser has no cfg really. Mythbrowser can load the images fine when run on the backend server so I don't think its a mythtv trunk version issue per se.


Any ideas?

Thanks
Peter

Re: Mythtv trunk & Mythbrowser plugin

Posted: Thu May 28, 2009 11:13 pm
by Pablo
It appears that unlike qt3, qt4 builds the image format engines as separate libraries and puts them in the plugins/imageformats directory. However, the build system does not include the entire plugins directory in the image. Rather, it just includes the plugins/sqldrivers directory. As a result, the qt4 image format libraries are not included.

If you add

Code: Select all

mm_USER_LIB_LIST+=qt4/plugins/imageformats/
to your minimyth.conf.mk, then it should include the needed directory.

I will change the build system so that it includes this directory.

Re: Mythtv trunk & Mythbrowser plugin

Posted: Fri May 29, 2009 12:46 am
by pleeke
Pablo,

Many thanks, that works fine in mythbrowser now and I get mythvideo covers. Still no channel icons in the epg but thats probably either a myth issue or more likely a cfg issue at my end.

Thanks
Peter

Re: Mythtv trunk & Mythbrowser plugin

Posted: Fri May 29, 2009 1:04 am
by Pablo
Thank you for testing it so quickly.

If you ever have the time and inclination, then could you test the Flash support using Adobe's libflashplayer.so plugin? MiniMyth can fetch and save this plugin using the command ' mm_command flash_fetch_and_save' (assuming you have the read-write MiniMyth configuration directory configured on you TFTP server). After that, MiniMyth should download and use the driver on its next reboot.

Re: Mythtv trunk & Mythbrowser plugin

Posted: Fri May 29, 2009 10:41 pm
by pleeke
pablo,


Not sure I've tested this as you wanted, but I've copied the libflashplayer.so file to /usr/lib directory (couldn't seem to get minimyth fetch & save script to work) so used confro_get in my minimyth.pm file & then set permissions appropriately. Flash doesn't seem to work (at least on the couple of websites I tested; youtube and on news.bbc.co.uk).


I'll try to take another look at this after I've got my wiimote to work as I'd like the flash plugins to work.

Thanks
Peter

Re: Mythtv trunk & Mythbrowser plugin

Posted: Fri May 29, 2009 11:21 pm
by Pablo
Whether or not it is the best location, I have MiniMyth put the file in /usr/lib/browser/plugins/libflashplayer.so. I do not believe QtWebKit will look for it at /usr/lib/libflashplayer.so.

Re: Mythtv trunk & Mythbrowser plugin

Posted: Fri May 29, 2009 11:53 pm
by pleeke
Pablo,

Just tried it there;

root@intel:~ # ls -l /usr/lib/browser/plugins/
-rw-r--r-- 1 root root 10131640 May 29 23:48 libflashplayer.so


Still no success I'm afraid.

Re: Mythtv trunk & Mythbrowser plugin

Posted: Sat May 30, 2009 3:56 pm
by Guierrmo
I just downloaded ram-minimyth-trunk.20635-67b10 and flash is still not working, when I open hulu it segfaults.

Code: Select all

May 30 10:47:05 (none) local0.info mythfrontend: (process:3160): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed
May 30 10:47:05 (none) local0.info mythfrontend: (process:3160): GLib-GObject-CRITICAL **: g_object_set_data: assertion `G_IS_OBJECT (object)' failed
May 30 10:47:05 (none) local0.info mythfrontend: (process:3160): GLib-GObject-WARNING **: invalid (NULL) pointer instance
May 30 10:47:05 (none) local0.info mythfrontend: (process:3160): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
May 30 10:47:05 (none) user.info kernel: mythbrowser[3160]: segfault at 84 ip af366ba2 sp bfb935a0 error 4 in libgdk-x11-2.0.so.0[af33c000+62000]
May 30 10:47:05 (none) local0.info mythfrontend: Segmentation fault
Please let me know anything you would like me to try. I am trying to setup my own build, however I have been building for 12 hours now ans still not done.

Re: Mythtv trunk & Mythbrowser plugin

Posted: Sat May 30, 2009 8:03 pm
by pleeke
Pablo,

After rebuilding MM (ver 4853) rather than using your suggested USER_LIB_LIST line above, I also see this crash when viewing flash enabled pages. Removing the libflashplayer.so file stops that crash, using the same version of mythbrowser on my ubuntu backend and I can view flash enabled pages fine, so possibly its something in MM?

Re: Mythtv trunk & Mythbrowser plugin

Posted: Sun May 31, 2009 3:44 am
by Pablo
It is very possible that one or more gtk files is missing. If you are not already doing so, then you might add gtk-2.0/ to you library list,

It is also possible that a package version or a package configuration option is causing the problem.

Re: Mythtv trunk & Mythbrowser plugin

Posted: Mon Jun 01, 2009 2:46 pm
by pleeke
Hi,

I've rebuilt with the suggested gtk-2.0 added to the user lib list, but I still get a segfault;

Code: Select all

(process:3648): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed

(process:3648): GLib-GObject-CRITICAL **: g_object_set_data: assertion `G_IS_OBJECT (object)' failed

(process:3648): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(process:3648): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Segmentation fault

I've no idea whats going on here, but have noticed that the gtk dir on my ubuntu server has more files & directories than the corresponding one on MM, so I guess you are probably right about a build option being to blame.

I'm going to have to leave this as its all getting a bit too complex for me - I'll just live without flash support for a while.


Thanks
Peter