<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Georgia;
        color:navy;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>Hello,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>I am trying to get GTK working for an
IA32 system. I am using an Ubuntu 8.04.1 development box. I am using a gcc and
ld specific to my IA32 system.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>This is my makefile:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>###################################<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>BUILD_DEST = /i686-custom-kernel<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>CC = $(BUILD_DEST)/bin/i686-linux-gcc<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>CPP = $(CC) &#8211;E<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>CXX = $(BUILD_DEST)/bin/i686-linux-g++<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>LD = $(BUILD_DEST)/bin/i686-linux-ld<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>GTKINSTALLPATH = $(BUILD_DEST)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>all:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./buildgtk<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>###################################<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>And this is the fontconfig portion of my
buildgtk script:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>###################################<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export LD_LIBRARY_PATH=$BUILD_DEST/lib<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export
PKG_CONFIG_PATH=$BUILD_DEST/lib/pkgconfig<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export CPPFLAGS=&#8221;-I$BUILD_DEST/include
-I$BUILD_DEST/include/libxml2 -I$BUILD_DEST/include/freetype2 -I$BUILD_DEST/include/glib-2.0
-I$BUILD_DEST/include/atk-1.0 -I$BUILD_DEST/include/pango-1.0 -I$BUILD_DEST/include/pixman-1
-I$BUILD_DEST/include/cairo&#8221;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export CFLAGS=${CPPFLAGS}<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export CXXFLAGS=${CPPFLAGS}<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export LDFLAGS=&#8221;-L$BUILD_DEST/lib&#8221;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export FREETYPE_CFLAGS=&#8221;-I$BUILD_DEST/include/
-I$BUILD_DEST/include/freetype2&#8221;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export FREETYPE_LIBS=&#8221;-L$BUILD_DEST/lib
&#8211;lfreetype&#8221;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export
FREETYPE_CONFIG=$BUILD_DEST/bin/freetype-config<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export CAIRO_CFLAGS=&#8221;-I$BUILD_DEST/include/cairo&#8221;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export CAIRO_LIBS=&#8221;-L$BUILD_DEST/lib
&#8211;lcairo&#8221;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export PANGO_CFLAGS=&#8221;-I$BUILD_DEST/include/pango-1.0
-I$BUILD_DEST/include&#8221;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export PANGO_LIBS=&#8221;-L$BUILD_DEST/lib
&#8211;lpango-1.0 &#8211;lpangocairo-1.0 &#8211;lpangoft2-1.0&#8221;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export FONTCONFIG_CFLAGS=&#8221;-I$BUILD_DEST/include&#8221;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>export FONTCONFIG_LIBS=&#8221;-L$BUILD_DEST/lib&#8221;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'># &#8230; a bunch of stuff in between to
build glib, pixman, freetype, atk, and all other dependencies&#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>./configure &#8211;prefix=
--enable-shared --enable-libxml2 --with-freetype-config=$BUILD_DEST/bin/freetype-config
--disable-docs --host=i686-linux &amp;&amp; \<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>make &amp;&amp; \<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>make bindir=${GTKINSTALLPATH}/bin \<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sbindir=${GTKINSTALLPATH}/sbin
\<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; includedir=${GTKINSTALLPATH}/include
\<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libdir=${GTKINSTALLPATH}/lib
\<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; datarootdir=${GTKINSTALLPATH}/share
\<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mandir=${GTKINSTALLPATH}/share/man
\<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; install<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>###################################<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>The problem arises because I am building
this so then I can transfer it to my IA32 system. The contents of $BUILD_DEST
are actually the contents of the root on my IA32 system. But because I need to
build all of the components for GTK on my system, the paths are set
incorrectly.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>I fix the &#8220;prefix&#8221; portion
of all of the .pc files to make them point to $BUILD_DEST. However, when I try
to compile pango, I get the following error:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>###################################<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>grep: /lib/libfontconfig.la: No such
file or directory<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>libtool: link: `/lib/libfontconfig.la&#8217;
is not a valid libtool archive<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>###################################<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>This is caused because fontconfig thinks
that its path is actually in /lib when in reality on my dev system it is in
$BUILD_DEST/lib<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>So my question is:<o:p></o:p></span></font></p>

<p class=MsoNormal><b><font size=2 color=navy face=Georgia><span
style='font-size:10.0pt;font-family:Georgia;color:navy;font-weight:bold'>Is
there any way to package up something like fontconfig so that I can build
against it properly on my dev system but I can also easily transfer it to my
IA32 system and it work properly? Namely I do not want for fontconfig to look
inside $BUILD_DEST/etc/fonts for fonts.conf, but to look in /etc/fonts when I
put it on my IA32 system.<o:p></o:p></span></font></b></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>The method that &#8220;worked&#8221; for
me was by setting the prefix to $BUILD_DEST and the conf file to /etc/fonts.
But I had to rename my system /etc/fonts, install my package, take the
/etc/fonts and move it to $BUILD_DEST, and then restore my normal /etc/fonts.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>Thank you,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText style='margin:0in;margin-bottom:.0001pt'><font size=2
color=navy face=Georgia><span style='font-size:10.0pt;font-family:Georgia;
color:navy'>Razvan A. Lupusoru<o:p></o:p></span></font></p>

</div>

</body>

</html>