I have a need to use the gtkmozembed widget, but cannot get it to
compile. My machine is an x86_64 running Fedora Core 6.
[alan@erie gtkmozembed]$ export PKG_CONFIG_PATH=/usr/lib/pkgconfig
[alan@erie gtkmozembed]$ ruby extconf.rb
checking for GCC… yes
checking for rb_define_alloc_func()… yes
checking for rb_block_proc()… yes
checking for new allocation framework… yes
checking for attribute assignment… yes
xulrunner-gtkmozembed is not found.
firefox-gtkmozembed is found.
checking for gtk±2.0… yes
checking for firefox-gtkmozembed… yes
checking for G_PLATFORM_WIN32… no
checking for main() in -lgtkembedmoz… no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
It complains that it doesn’t find xulrunner-gtkmozembed, but…
[root@erie ruby-gnome2-all-0.16.0]# ls
/usr/lib/pkgconfig/*gtkmozembed.pc
/usr/lib/pkgconfig/firefox-gtkmozembed.pc
/usr/lib/pkgconfig/xulrunner-gtkmozembed.pc
The only thing I can think of is that after downloading xulrunner and
trying to “register-global”, it complained that it couldn’t find
libstdc++.so.5. I pointed it to the copy in /usr/lib64, but it didn’t
like it, so I copied the libstdc++.so.5 from my vmware installation to
the xulrunner directory and it worked just fine, creating
/usr/lib/pkgconfig/xulrunner-gtkmozembed.pc. It is possible that
gtkmozembed just doesn’t like it for some reason. I am attaching the
mkmf.log file with the hope that it may mean something to you.
Thanks for your help.
Alan