Thursday, January 17, 2013

getting py2cairo installed on osx w/ brew

(this is more of an gist that a post)
> ./waf configure

  ./options()
Setting top to                           : /Volumes/HDD/Downloads/py2cairo-1.10.0
Setting out to                           : /Volumes/HDD/Downloads/py2cairo-1.10.0/build_directory
  ./configure()
Checking for 'gcc' (c compiler)          : ok
Checking for program python              : /usr/bin/python
Checking for python version              : (2, 7, 1, 'final', 0)
Checking for library python2.7           : yes
Checking for program python2.7-config    : /usr/bin/python2.7-config
Checking for header Python.h             : yes
Checking for program pkg-config          : /usr/local/bin/pkg-config
Checking for 'cairo' >= 1.10.0           : not found
The configuration failed
(complete log in /Volumes/HDD/Downloads/py2cairo-1.10.0/build_directory/config.log)


 After a TON of trial and error, followed by brew install , here's what I came up with: 
 export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig:/usr/local/Cellar/libpng/1.5.13/lib/pkgconfig:/usr/local/Cellar/freetype/2.4.10/lib/pkgconfig:/usr/local/Cellar/fontconfig/2.10.1/lib/pkgconfig:/usr/local/Cellar/pixman/0.28.0/lib/pkgconfig:/usr/local/Cellar/cairo/1.12.8/lib/pkgconfig:/opt/local/lib/pkgconfig

> ./waf configure
> sudo ./waf install

1 comment:

Anonymous said...

you could do "/usr/local/Cellar/*/*/lib/pkgconfig" instead of specifying each package..