Having trouble getting started - can you advise if I should perserve
peter shadbolt <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAPJ2SOgmvCP+fTpkC3f44w458DOTAFTt-YkRLKXNcOaCRKa5NQ@mail.gmail.com> |
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