application icongmusicbrowser

This is an old revision of the document!


To use the mozembed plugin, you need to install the gtkmozembed perl bindings

Important

This shouldn't be necessary, but it is for now on most install, if it is not done gmusicbrowser will crash (segmentation fault) as soon as it tries to display a mozembed widget. Add “/usr/lib/firefox” to the library path, either everytime by doing “export LD_LIBRARY_PATH=/usr/lib/firefox”, or only once by adding the path to /etc/ld.so.conf and running ldconfig (needs root/sudo)

Pre-packaged

Mandriva 2007

install the perl-Gtk2-MozEmbed-0.06 package. And follow the Important instructions above.

Ubuntu / Debian

There is currently no package for it in debian/ubuntu so follow the instructions to install from source, for this, on a ubuntu feisty, you will need to install these packages :

  • libextutils-pkgconfig-perl
  • libextutils-depends-perl
  • libgtk2.0-dev
  • firefox-dev

Install from source

These instructions will install the gtkmozembed perl bindings in a sandbox, that way, you don't need root permissions and can't break your system. Replace /home/login/sandbox by a valid folder, this is where the files will be installed

  1. mkdir /home/login/sandbox
  2. Download and untar Gtk2-MozEmbed-0.06.tar.gz from sourceforge
  3. cd Gtk2-MozEmbed-0.06
  4. perl Makefile.PL PREFIX=/home/login/sandbox && make && make install

And this must be run each time before running gmusicbrowser, so it can find the installed Gtk2::MozEmbed (should be placed in .bashrc) :
export PERL5LIB=/home/login/sandbox/lib/perl/:$PERL5LIB

You can also modify the way you launch gmusicbrowser :

  • create a new script, for example, gmusicbrowser.sh with these lines in it :

#!/bin/bash
export PERL5LIB=/home/bbrice/sandbox/lib/perl/:$PERL5LIB;
gmusicbrowser;

  • save this script
  • make this script executable :

chmod +x gmusicbrowser.sh

  • modify the command in the launcher's properties by : /home/login/gmusicbrowser.sh

Follow the Important instructions above

You can test everything works by running “perl examples/pumpzilla”

install/mozembed.1180361195.txt.gz · Last modified: 2013/04/03 06:28 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0