[cairo] Compile error with Cairo 1.0.0/1.0.2 on Mac OS X
Bogdan Nicula
bogdanni at hotmail.com
Thu Nov 17 00:37:36 PST 2005
Hi.
Mac OS X has an older version of fontconfig (which is also crash prone). If
you compiled your own, as it seems, please make sure the linker is using it
instead of the system one. In general you'll get better results by compiling
the full stack (freetype, fontconfig, libXft, maybe also libXrender),
instead of using the rather obsolete system provided ones. To make sure
'pkg_config' finds the right ones, please set PKG_CONFIG_PATH. You may need
something like
PKG_CONFIG_PATH=$YOUR_INSTALLATION/lib/pkgconfig:/usr/lib/pkgconfig.
With the right set of environment variables (e.g. C_INCLUDE_PATH,
LIBRARY_PATH, ACLOCAL_FLAGS) you should be able to bypass all the system
provided libraries.
Also, if you generate dynamic libraries, check with 'otool -L' if they link
to the versions you want.
Cheers,
Bogdan
More information about the cairo
mailing list