[cairo] Getting up and Running with Cairo (OS X)
Dominic Lachowicz
domlachowicz at gmail.com
Wed Nov 14 07:55:31 PST 2007
Hi Peter,
On Nov 14, 2007 10:45 AM, <laurens at cs.york.ac.uk> wrote:
> Dominic, thanks for your help re compiling with Cairo,
>
> At the risk of bothering you further, I'm still not succeeding in
> compiling, I tried your suggestion as follows:
>
> cc -o hello -L/opt/local/lib -I/opt/local/include/cairo 'pkg-config
> --cflags --libs cairo' hello.c
>
> and get the following error:
>
> i686-apple-darwin9-gcc-4.0.1: pkg-config --cflags --libs cairo: No such
> file or directory
>
> Is that anything you can advise on?
It looks like you're using ' instead of ` to execute an embedded
command, and that won't work. Try running "pkg-config --cflags --libs
cairo" from your shell and then paste its results into your "cc -o
hello" compile line.
Cheers,
Dom
More information about the cairo
mailing list