[PLUG] Cairo cross compile

zoyd emailzoyd at yahoo.com
Sun Sep 12 21:36:09 PDT 2010


cairo, freetype and fontconfig make use of pkg-config to get and provide compiler flags/paths. Make sure that pkg-config is finding all the dependencies correctly by setting the PKG_CONFIG_PATH variable, containing paths to these .pc files. 

export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/opt/lib/pkgconfig

Also, when you run configure with a '--prefix=/opt' it will automatically find the respective .pc files(freetype2.pc/fontconfig.pc/etc) in '/opt/lib/pkgconfig'

You can inspect the config.log of the package you're trying to build, this file contains the configure script's log. 

--
zoyd
--- On Sat, 9/11/10, Giriprasad Deviprasad <g_pr21 at yahoo.in> wrote:

> From: Giriprasad Deviprasad <g_pr21 at yahoo.in>
> Subject: [PLUG] Cairo cross compile
> To: plug-mail at plug.org.in, ilugd at lists.linux-delhi.org
> Date: Saturday, September 11, 2010, 4:41 PM
> 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
> 
> _______________________________________
> Pune GNU/Linux Users Group Mailing List 
> 


      




More information about the plug-mail mailing list