<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> </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> </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) –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> </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'> ./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> </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=”-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”<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=”-L$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 FREETYPE_CFLAGS=”-I$BUILD_DEST/include/
-I$BUILD_DEST/include/freetype2”<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=”-L$BUILD_DEST/lib
–lfreetype”<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=”-I$BUILD_DEST/include/cairo”<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=”-L$BUILD_DEST/lib
–lcairo”<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=”-I$BUILD_DEST/include/pango-1.0
-I$BUILD_DEST/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'>export PANGO_LIBS=”-L$BUILD_DEST/lib
–lpango-1.0 –lpangocairo-1.0 –lpangoft2-1.0”<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=”-I$BUILD_DEST/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'>export FONTCONFIG_LIBS=”-L$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> </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'># … a bunch of stuff in between to
build glib, pixman, freetype, atk, and all other dependencies…<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'>./configure –prefix=
--enable-shared --enable-libxml2 --with-freetype-config=$BUILD_DEST/bin/freetype-config
--disable-docs --host=i686-linux && \<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 && \<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'> 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'> 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'> 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'> 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'> 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'> 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> </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> </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 “prefix” 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’
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> </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> </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> </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 “worked” 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> </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> </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>