# Lgtkembedmoz?

**URL:** <https://www.ruby-forum.com/t/lgtkembedmoz/89533>\
**Category:** Ruby-Gnome 2\
**Created:** [March 21, 2007, 12:51am UTC](https://www.ruby-forum.com/t/lgtkembedmoz/89533 "2007-03-21T00:51:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@alake](https://www.ruby-forum.com/u/alake)\
**Post date:** [March 21, 2007, 12:51am UTC](https://www.ruby-forum.com/t/lgtkembedmoz/89533/1 "2007-03-21T00:51:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![alake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@alake](https://www.ruby-forum.com/u/alake)\
**Post date:** [March 21, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/lgtkembedmoz/89533/2 "2007-03-21T16:30:46Z")

</div>

Le mercredi 21 mars 2007 à 01:50 +0200, Alan L. a écrit :

> 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  
> Why ?  
> It should be /usr/lib64/pkgconfig on x86\_64, else you will link against  
> 32 bits libraries

> -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/cairo  
> -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl  
> /usr/bin/ld: skipping incompatible /lib/libglib-2.0.so when searching  
> for -lglib-2.0  
> /usr/bin/ld: skipping incompatible /lib/libglib-2.0.a when searching  
> for -lglib-2.0  
> /usr/bin/ld: skipping  
> incompatible /usr/lib/firefox-1.5.0.10/libgtkembedmoz.so when  
> searching for -lgtkembedmoz  
> /usr/bin/ld: cannot find -lgtkembedmoz

Indeed it only finds a 32 bits firefox (and finds some 32 bits versions  
of some other libs) while you are building for x86\_64

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys-and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)

---

<div class="post-metadata">

**Author:** ![alake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@alake](https://www.ruby-forum.com/u/alake)\
**Post date:** [March 21, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/lgtkembedmoz/89533/3 "2007-03-21T18:24:01Z")

</div>

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys-and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)
