[cairo] Cairo 1.2.6 fails to compile on Mac OS X 10.5.1
Baz
brian.ewins at gmail.com
Sun Nov 25 07:44:34 PST 2007
On Nov 24, 2007 8:48 PM, John Musbach <johnmusbach at gmail.com> wrote:
> On Nov 24, 2007 12:39 PM, John Musbach <johnmusbach at gmail.com> wrote:
> > Configured via: ./configure --enable-atsui --enable-quartz --disable-png
> >
> > make failed with: Undefined symbols:
> > "_FcNameConstant", referenced from:
> > _get_integer_default in cairo-xlib-screen.o
> > ld: symbol(s) not found
> > collect2: ld returned 1 exit status
> > make[3]: *** [libcairo.la] Error 1
> > make[2]: *** [all] Error 2
> > make[1]: *** [all-recursive] Error 1
> > make: *** [all] Error 2
>
>
> I realize that atsui and quartz support is apparently experimental but
> for some reason even though fontconfig is installed:
>
> ----------------------------------------------------------------------
> Libraries have been installed in:
> /usr/local/lib
>
> If you ever happen to want to link against installed libraries
> in a given directory, LIBDIR, you must either use libtool, and
> specify the full pathname of the library, or use the `-LLIBDIR'
> flag during linking and do at least one of the following:
> - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
> during execution
>
> See any operating system documentation about shared libraries for
> more information, such as the ld(1) and ld.so(8) manual pages.
> ----------------------------------------------------------------------
>
> the configure script never finds it and thus does not enable freetype
> support, if there is a way to point the configure script to the
> location of fontconfig then obviously that'd be preferable
There is - pkg-confg. Most people are building cairo on mac in a fink,
macports, or jhbuild environment - installing software into /sw,
/opt/local, or /opt/gtk respectively; with those, the build process
will detect freetype because pkg-config is aware of it in those
environments. It looks like you're avoiding using a package manager?
In the case of freetype, cairo's configure script will fall back to
looking for it via freetype-config if that's on your path. I'm
guessing that's in /usr/local/bin - have you added that to your path?
Its possible to build all the packages by hand for yourself, but its
much easier to rely on a package manager. For example, to install
xchat under macports, including cairo, gtk, etc, it's just one
command:
sudo port install xchat2
Hope this helps,
Baz
More information about the cairo
mailing list