[pygtk] pygtkmozembed LoadPlugin: failed to initialize shared library of java plugins on FF3 beta1.But gtkmozemed works well

bocheng cheng steven.david.cheng at gmail.com
Tue Dec 11 16:37:45 WST 2007


I down load pygtkmozembed from
http://ftp.gnome.org/pub/GNOME/sources/gnome-python-extras/2.19/gnome-pytho=
n-extras-2.19.1.tar.bz2
Also I have a FF3 beta1 works well .
So I modify the configure.ac file to  compile gnome-python-extras on
FF3 . The FF3  has installed  two plugins:
Java plugin and Flash plugins:

/usr/lib/firefox-3.0b1/plugins/libjavaplugin_oji.so -> /usr/java/
jdk1.6.0_10/jre/plugin/i386/ns7/libjavaplugin_oji.so

the FF3 and the app base gtkmozemd works well with java plugin .But
pygtkmozembed not work .
Following is a pygtkembed test program
#!/usr/bin/python

import gtk
import gtkmozembed
import urllib
import urlparse
class TinyGecko:
   def __init__(self):
       self.moz =3D gtkmozembed.MozEmbed()

       win =3D gtk.Window()
       win.add(self.moz)
       self.moz.load_url('about:plugins')
   win.show_all()
if __name__ =3D=3D '__main__':
 TinyGecko()
 gtk.main()

the output of the program is :
LoadPlugin: failed to initialize shared library /usr/java/jdk1.6.0_10/
jre/plugin/i386/ns7/libjavaplugin_oji.so [/usr/java/jdk1.6.0_10/jre/
plugin/i386/ns7/libjavaplugin_oji.so: undefined symbol:
_ZTVN10__cxxabiv121__vmi_class_type_infoE]

I found the symbol in  std c++ librarys which located in /usr/lib/
libstdc++.so.5.0.7  and /usr/lib/libstdc++.so.6.0.8
rpm -qa |grep std
output:
compat-libstdc++-33-3.2.3-61
libstdc++-devel-4.1.2-19
libstdc++-4.1.2-19

the FF3 and app base gtkmozembed links to std c++ of version 6
I even remove the stdc++ of version 5 ,but the pygtkmozembed test
program still not work .
Maybe I should modify the test program or it maybe a small bug of
pygtkmozembed??

Any guide will be helpful
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20071211/586c5532/at=
tachment.htm


More information about the pygtk mailing list