[cairo] Cross configure and compile

Ali Sarlak ali.sarlak at aol.com
Tue Mar 10 13:32:26 PDT 2015

 Hi ,
I work with PKG_CONFIG_LIBDIR & PKG_CONFIG_SYSROOT_DIR that you said but the problem still exist could you please write 
some example for cross configuring the Cairo, I don't know where the problem lies!



-----Original Message-----
From: suzuki toshiya <mpsuzuki at hiroshima-u.ac.jp>
To: Ali Sarlak <ali.sarlak at aol.com>
Cc: cairo <cairo at cairographics.org>
Sent: Tue, Mar 10, 2015 10:59 am
Subject: Re: [cairo] Cross configure and compile

Hi Ali,

Because you set PKG_CONFIG_PATH, you may already mind
pkg-config behaviour. If you check pkg-config manual
page, you will find that
PKG_CONFIG_PATH cannot prevent
the search of .pc file in the building
environment (so
you should use PKG_CONFIG_LIBDIR to replace it), and,
there is
another environment variable PKG_CONFIG_SYSROOT_DIR
which can manipulate -I and
-L flags to fit the chrooted
environment. However, I don't know what kind of
are returned from the pc files in your environment, I
cannot tell
whether it should be used, or should not be
used. Please check pkg-config
manual page, what kind
of the flags your .pc files have, and how the


Ali Sarlak wrote:
> Dear reader

> I do a lot of effort to configure the Cairo graphic library with OpenVG
or EGL surface back-end for my ARM target, at first please check my
configuration command :
> 1-
> ./configure --enable-egl=yes
--enable-vg=yes --host=arm-none-linux-gnueabi
> 2-
./configure --enable-egl=yes --host=arm-none-linux-gnueabi 
> after configuration I think
that configuration file get require library from my host machine(--build) not
from Target machine(--host) because Cairo can find libpng that it exists on my
host rootfs not on my target rootfs and also Cairo configuration file couldn't
find headers file for EGL or OpenVG even after set the PKG_CONFIG_PATH variable
(I have suitable headers and libraries on my target rootfs)  but it can find 
OpenVG header files by using CFLAGS variable.
> What is the problem? 
How can I solve it?
> My target  information
> ARCH : ARM cortex A9
COMPILER prefix : arm-non-gnueabi-
> Best Regards:
> Sarlak

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20150310/bf1ea0b2/attachment-0001.html>

More information about the cairo mailing list