[cairo] Setting up scratchbox (was: Speedup _cairo_matrix_to_pixman_matrix)

Bryce Harrington bryce at osdl.org
Mon Nov 27 16:04:52 PST 2006


On Thu, Nov 23, 2006 at 07:48:12AM -0600, Matt Hoosier wrote:
> On 11/23/06, Bryce Harrington <bryce at osdl.org> wrote:
> >On Wed, Nov 22, 2006 at 07:19:43PM -0800, Carl Worth wrote:
> >> On Wed, 22 Nov 2006 19:08:45 -0800, Bryce Harrington wrote:
> >> > I've also attempted with 'no_root_squash' and a few other nfs options,
> >> > but no go.
> >> >
> >> > Anyone got ideas?
> >>
> >> Oh, I ran into problems like this until I manually did a modprobe of
> >> some modules on the n770 itself. I think "modprobe nfs" might do the
> >> trick.
> >>
> >> Easiest way to test is to just try to run the mount command manually
> >> on the n770 as well.
> >
> >Yup, that did it.  hello-world now builds.
> >
> >Cairo still does not configure, but there's a different error:
> >
> >/home/crucible/cairo-1.3.2-gdb603d6/autogen.sh: running `aclocal'
> >/scratchbox/tools/share/aclocal/pkg.m4:5: warning: underquoted
> >definition of PKG_CHECK_MODULES
> >  run info '(automake)Extending aclocal'
> >  or see
> >  http://sources.redhat.com/automake/automake.html#Extending%20aclocal
> >/usr/share/aclocal/gconf-2.m4:8: warning: underquoted definition of
> >AM_GCONF_SOURCE_2
> >/usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of
> >AM_PATH_AUDIOFILE
> >/scratchbox/tools/share/aclocal/pkg.m4:5: error: m4_defn: undefined
> >macro: _m4_divert_diversion
> >/usr/share/aclocal/pkg.m4:114: PKG_CHECK_MODULES is expanded from...
> >/scratchbox/tools/share/aclocal/pkg.m4:5: the top level
> >autom4te: /scratchbox/tools/bin/m4 failed with exit status: 1
> 
> I've run into similar problems when trying to do full autotools cycles
> under Scratchbox. You might try telling aclocal not to use the
> Scratchbox versions of the macros:
> 
>  my-aclocal.sh:
>  -------------------
>  #! /bin/sh
>  /usr/bin/env aclocal -I /usr/share/aclocal "$@"
> 
> Then you explicitly set this wrapper to be used in place of the real 
> aclocal:
> 
>  ACLOCAL=my-aclocal.sh autoreconf ...

Thanks, that helps; I was able to run it like this:

 ACLOCAL=./my-aclocal.sh ./autogen.sh

It appears that cairo requires pkg-config >= 0.19, but the Nokia770 only
has 0.17.2 available - did you need to upgrade the 770 in order to get
cairo building?

Thanks,
Bryce



More information about the cairo mailing list