Thursday
Apr202006
Compiling Cairo on Mac OS X
Thursday, April 20, 2006 at 11:29PM Trying to compile Cairo on Mac OS X and having trouble? The problem seems to be finding fontconfig. The solution is to create a .pc file for
prefix=/usr/X11R6/
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
Name: fontconfig
Description: mmmhmmm
Version: 1.0.2
Libs -L${libdir} -lfontconfig
Cflags: -I${includedir}
This will allow cairo to detect fontconfig. I originally tried setting the FONTCONFIG_CFLAGS and _LIBS variables, but then pkg-config cairo --cflags would fail because it depends on fontconfig.
in
Code,
General,
MacOS,
Operating Systems
Code,
General,
MacOS,
Operating Systems 
Reader Comments (2)
Thanks for the tip. It was really helpul. I also noticed that there is alread a fontconfig.pc file in /usr/X11R6/lib/pkgconfig. I copied this to /usr/local/lib/pkgconfig and it worked as well.
Thanx too! managed to install Chart::Clicker after some darwinports installations but prefere the Mac OS X way over the ports-stuff...
Your hint made that one possible *THX A LOT*
PS: http://www.onemogin.com/clicker/ is down @ the moment (12/29/2006 4:41 pm MEZ), looking for a way to draw graphs with other colors than the default red/green/... ones on the example in cpan.... Would be cool if you could fix the database...