I am trying to install PyCairo (from a tarball source) on my OS X 10.5 using 32-bit Python 2.7 (from python.org) and cairo 1.10.2 from MacPorts. Therefore, I install "py2cairo". When I run python ./waf configure, I get
Checking for 'cairo' >= 1.10.0 : not found
I have cairo files here ...
$ ls /opt/local/include/cairo
cairo-deprecated.h cairo-gobject.h cairo-script-interpreter.h cairo-tee.h cairo-xlib-xrender.h cairo.h
cairo-features.h cairo-pdf.h cairo-script.h cairo-version.h cairo-xlib.h
cairo-ft.h cairo-ps.h cairo-svg.h cairo-xcb.h cairo-xml.h
$ ls /opt/local/lib/cairo
cairo-fdr.0.so* cairo-fdr.la* cairo-sphinx.0.so* cairo-sphinx.la* libcairo-trace.0.dylib* libcairo-trace.dylib@
cairo-fdr.a cairo-fdr.so@ cairo-sphinx.a cairo-sphinx.so@ libcairo-trace.a libcairo-trace.la*
But which directory can I pass to which parameter? They do not look appropriate when specifying the cairo library:
$ python ./waf
./options()
waf [commands] [options]
Main commands (example: ./waf build -j4)
build : executes the build
clean : cleans the project
configure: configures the project
dist :
distcheck: checks if the project compiles (tarball from 'dist')
distclean: removes the build directory
install : installs the targets on the system
list : lists the targets to execute
step : executes tasks in a step-by-step fashion, for debugging
uninstall: removes the targets installed
update : updates the plugins from the *waflib/extras* directory
Options:
-h,
-j JOBS,
-k,
-v,
configure options:
-o OUT,
-t TOP,
build and install options:
-p,
step options:
install/uninstall options:
-f,
Installation directories:
By default, "waf install" will put the files in "/usr/local/bin", "/usr/local/lib" etc. An installation prefix other than "/usr/local" can be given using "--prefix", for example "
--prefix=$HOME"
installation prefix [Default: ${PREFIX}]
Pre-defined installation directories:
program executables [Default: ${EXEC_PREFIX}/libexec]
read-only single-machine data [Default: ${PREFIX}/etc]
modifiable architecture-independent data [Default: ${PREFIX}/com]
modifiable single-machine data [Default: ${PREFIX}/var]
C header files [Default: ${PREFIX}/include]
C header files for non-gcc [Default: /usr/include]
read-only arch.-independent data root [Default: ${PREFIX}/share]
locale-dependent data [Default: ${DATAROOTDIR}/locale]
C Compiler Options:
On this platform (darwin) the following C-Compiler will be checked by default: "gcc"
source
share