[svlug] Cairo cross compile

Andrew Wilcox andrew.r.wilcox at gmail.com
Sun Sep 12 22:00:08 PDT 2010


I'm not sure that you've built the other cross-compile libraries correctly (you normally have the prefix acting as a faux-/usr directory -- as in freetype and fontconfig should coexist in one lib directory), but you should be able to configure it with something such as
./configure --prefix=/opt/asdlab --with-freetype=/opt/asdlab/freetype --with-fontconfig=/opt/asdlab/fontconfig

As I'm an embedded developer I've cross-compiled Cairo for many different platforms (linux-mips, meander-arm, and awos-486 to name a few), so if you need any further help feel free to ask away. :)

HTH,
Andrew

On 11 Sep 2010, at 07:37, Giriprasad Deviprasad wrote:

> Hi All,
> 
>  I am trying to cross compile GTK+ in hawkboard (www.hawkboard.org). I have already cross compiled the following successfully for hawkboard:
> atk  fontconfig  freetype  glib  libxml2  pixman
> 
> Now when I try to cross compile cairo, configure gives the following error:
> configure: error: Cairo requires at least one font backend.
>           Please install freetype and fontconfig, then try again:
> 
> But, I have already installed both freetype and fontconfig for this architecture.
> 
> ls -l /opt/asdlab/freetype/lib
> total 2640
> -rw-r--r-- 1 root root 2688158 2010-09-03 20:08 libfreetype.a
> -rwxr-xr-x 1 root root     764 2010-09-03 20:08 libfreetype.la
> drwxr-xr-x 2 root root    4096 2010-09-03 20:08 pkgconfig
> 
> [root at localhost cairo-1.6.4]# ls -l /opt/asdlab/freetype/include
> total 8
> drwxr-xr-x 3 root root 4096 2010-09-03 20:08 freetype2
> -rw-r--r-- 1 root root 3890 2010-09-03 20:08 ft2build.h
> 
> ls -l /opt/asdlab/fontconfig/lib/
> total 776
> -rw-r--r-- 1 root root 778546 2010-09-04 19:28 libfontconfig.a
> -rwxr-xr-x 1 root root    922 2010-09-04 19:28 libfontconfig.la
> drwxr-xr-x 2 root root   4096 2010-09-04 19:28 pkgconfig
> 
> Any ideas why cairo is not cross compiling?
> 
> Thanks & Regards,
> D.Giriprasad

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.svlug.org/archives/svlug/attachments/20100913/45bb995e/attachment.htm


More information about the svlug mailing list