[cairo] Can't build on OSX
cworth at cworth.org
Tue Mar 18 09:55:13 PDT 2008
On Tue, 18 Mar 2008 08:15:36 -0700, Travis Griggs wrote:
> I tried to get a fresh git clone of pixman last night and build it on
> OSX. But ./autogen.sh dies. The sequence I do is this:
> 1) git clone git://anongit.freedesktop.org/git/pixman
> 2) cd pixman
> 3) ./autogen.sh
That's all correct. Though for OS X you might also need:
as mentioned in cairo's INSTALL file, (so there are some notes in
cairo/INSTALL that should be copied down into pixman/INSTALL).
> I use macports for the various tools supposedly needed. port installed
> I put below the sig. And after that the output/error I'm seeing from
> the autogen.sh. Any help/hint I can get would be muchly appreciated.
You've clearly got some pkg-config installed as your "port installed"
> pkgconfig @0.23_0 (active)
But this error:
> ./configure: line 19785: syntax error near unexpected token `GTK,'
> ./configure: line 19785: `PKG_CHECK_MODULES(GTK, gtk+-2.0,
> HAVE_GTK=yes, HAVE_GTK=no)'
suggests that aclocal did not find the pkg.m4 file and substitute the
PKG_CHECK_MODULES macro invocation properly. And sadly, it didn't give
you a kind error message at all.
So two things here:
1. From talking in IRC, we know that you couldn't find a pkg.m4
file anywhere on your system. So you should investigate how you
came to have such a broken pkgconfig installation, (that pkg.m4
file is its most essential component), and file a bug if
2. Cairo's autogen.sh makes an explicit check for pkg.m4 and should
have given you the following (hopefully more helpful) error
message very early in the process:
autogen.sh Error: Could not find pkg-config macros.
(Looked in $acdir/pkg.m4)
If pkg.m4 is available in /another/directory, please set"
Otherwise, please install pkg-config.
pkg-config is available from:
So that's a check and error message that should be copied from cairo's
autogen.sh to pixman's.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20080318/021407b1/attachment.pgp
More information about the cairo