[cairo] Having trouble getting started - can you advise if I should perserve

peter shadbolt peter.shadbolt at gmail.com
Mon Jan 14 01:01:43 PST 2013


Simon, thank you for your response and feedback. I had to use apt-get to
download and install Cairo and was then able to compile using the commands
you suggested.

I know that it seems obvious now.but your contribution saved me hours of
effort. I don't think you know how much help you were. Thank you.
On Jan 14, 2013 8:28 PM, "Simon Sapin" <simon.sapin at exyr.org> wrote:

> Le 14/01/2013 08:19, peter shadbolt a écrit :
>
>> No - that would be a bad assumption on my part.  When I tried compiling
>> my program I encountered
>> fatal error cairo.h no such file or directory
>> so I assumed I needed to download and install the libraries.
>> I'll look more closely at that error.
>>
>
> You need to tell your compiler where to find cairo.h with something like
> -I/usr/include/cairo.
>
> However you probably need more of these compiler flags.
> On Linux, the pkg-config can give them to you. In turn, you should tell
> pkg-config which cairo backends you’ll be using.
>
> gcc $(pkg-config --cflags --libs cairo cairo-ft cairo-pdf) …
>
> I’m sure you can find many resources on the web about building C programs,
> header files, compiler flags, pkg-config etc.
>
> --
> Simon Sapin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20130114/56059218/attachment.html>


More information about the cairo mailing list