Re: Having trouble getting started - can you advise if I should perserve

peter shadbolt <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAPJ2SOgcgZSsPOSQ5YO4gLKCsantDSkYVTkwrPpF31+Dh5qyBw@mail.gmail.com>
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.

Thanks



On Mon, Jan 14, 2013 at 8:10 PM, Carlos López González
<[email protected]>wrote:

> Is there any reason why you need to build cairo instead of use your
> binaries and headers included in your Ubuntu distribution?
> Possibly with the packaged version of Cairo you have enough to achieve
> what you want.
> Cheers
>
>
> 2013/1/14 peter shadbolt <[email protected]>
>
>> Hi,
>>
>> I'm struggling to get Cairo compiled on an ubuntu PC.  Before I spend any
>> more time on the make problems I wanted to ask if it's worth carrying on.
>>
>> I have an existing program using an XLIB window and just want to display
>> a PNG image (could be a BMP if that's easier) in the XLIB window.  It looks
>> like the Cairo functions make it easy to read a PNG file into a surface and
>> then copy that to a XLib surface (or device - not quite sure about the
>> terminology).
>>
>> Is this feasible or just not the right way to do it.  I don;t want to
>> spend another couple of hours getting cairo compiled to only find I can't
>> use it to show an image file.
>>
>> Many thanks
>>  Shadsnz
>>
>> As an aside, here are the errors I'm getting with the make command:
>>
>> mike@mike-965GM-S2:~/Desktop/Peter/cairo/cairo-1.12.8$ make
>> make all-recursive
>> make[1]: Entering directory `/home/mike/Desktop/Peter/cairo/cairo-1.12.8'
>> Making all in src
>> make[2]: Entering directory
>> `/home/mike/Desktop/Peter/cairo/cairo-1.12.8/src'
>> make all-am
>> make[3]: Entering directory
>> `/home/mike/Desktop/Peter/cairo/cairo-1.12.8/src'
>> CC cairo-xlib-display.lo
>> In file included from cairo-xlib-private.h:41:0,
>> from cairo-xlib-display.c:40:
>> cairo-xlib-xrender-private.h:102:16: error: redefinition of 'struct
>> _XLinearGradient'
>> /usr/include/X11/extensions/Xrender.h:186:16: note: originally defined
>> here
>> cairo-xlib-xrender-private.h:105:3: error: conflicting types for
>> 'XLinearGradient'
>> /usr/include/X11/extensions/Xrender.h:189:3: note: previous declaration
>> of 'XLinearGradient' was here
>> cairo-xlib-xrender-private.h:111:16: error: redefinition of 'struct
>> _XCircle'
>> /usr/include/X11/extensions/Xrender.h:146:16: note: originally defined
>> here
>> cairo-xlib-xrender-private.h:115:3: error: conflicting types for 'XCircle'
>> /usr/include/X11/extensions/Xrender.h:150:3: note: previous declaration
>> of 'XCircle' was here
>> cairo-xlib-xrender-private.h:116:16: error: redefinition of 'struct
>> _XRadialGradient'
>> /usr/include/X11/extensions/Xrender.h:191:16: note: originally defined
>> here
>> cairo-xlib-xrender-private.h:119:3: error: conflicting types for
>> 'XRadialGradient'
>> /usr/include/X11/extensions/Xrender.h:194:3: note: previous declaration
>> of 'XRadialGradient' was here
>> cairo-xlib-xrender-private.h:125:16: error: redefinition of 'struct
>> _XConicalGradient'
>> /usr/include/X11/extensions/Xrender.h:196:16: note: originally defined
>> here
>> cairo-xlib-xrender-private.h:128:3: error: conflicting types for
>> 'XConicalGradient'
>> /usr/include/X11/extensions/Xrender.h:199:3: note: previous declaration
>> of 'XConicalGradient' was here
>> make[3]: *** [cairo-xlib-display.lo] Error 1
>> make[3]: Leaving directory
>> `/home/mike/Desktop/Peter/cairo/cairo-1.12.8/src'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory
>> `/home/mike/Desktop/Peter/cairo/cairo-1.12.8/src'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/mike/Desktop/Peter/cairo/cairo-1.12.8'
>> make: *** [all] Error 2
>>
>> --
>> cairo mailing list
>> [email protected]
>> http://lists.cairographics.org/mailman/listinfo/cairo
>>
>
>
>
> --
> Carlos
> http://synfig.org
>



-- 
Peter Shadbolt
Cell: +64 21 712 567

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.