[cairo] cairo iOs

Whiteunicorn Whiteunicorn whiteunicorn2009 at yahoo.com
Tue Aug 1 11:55:07 UTC 2017


Hello
My goal is to compile cairo (maybe cairomm) for iOs in a bare minimum form, so that i can convert png (binary black and white, no gray tones) to svg and nothing more. I don't need other kind of support from it such as rendering based on hardware acceleration and such. The png files are so tiny that i can live with quartz graphics. With that said I was wondering if I could get some help/tips on doing that. 
My current effort was to attempt including the source cairo files into a iOs library project and try to compile that, but even after disabling everything unnecessary (xlib, etc) I've got stuck with gl support. Disabling this as well results in a compilation error 
i.e. # error Cairo was not compiled with support for the GL backend
below defines were generated/tweaked using the configure tool provided with the package, run in terminal#ifndef CAIRO_FEATURES_H
#define CAIRO_FEATURES_H

#define CAIRO_HAS_FC_FONT 0
//era CAIRO_HAS_FC_FONT 1
#define CAIRO_HAS_FT_FONT 1
#define CAIRO_HAS_GOBJECT_FUNCTIONS 1
#define CAIRO_HAS_IMAGE_SURFACE 1
#define CAIRO_HAS_MIME_SURFACE 1
#define CAIRO_HAS_OBSERVER_SURFACE 1
#define CAIRO_HAS_PDF_SURFACE 1
#define CAIRO_HAS_PNG_FUNCTIONS 1
#define CAIRO_HAS_PS_SURFACE 1
#define CAIRO_HAS_QUARTZ_FONT 1
#define CAIRO_HAS_QUARTZ_SURFACE 1
#define CAIRO_HAS_RECORDING_SURFACE 1
#define CAIRO_HAS_SCRIPT_SURFACE 1
#define CAIRO_HAS_SVG_SURFACE 1
#define CAIRO_HAS_USER_FONT 1

//era 1
#define CAIRO_HAS_XLIB_SURFACE 0
#define CAIRO_HAS_XLIB_XRENDER_SURFACE 0
//adaugat de mine
//#define CAIRO_HAS_EGL_FUNCTIONS 1
//#define CAIRO_HAS_WGL_FUNCTIONS 0
#define CAIRO_HAS_GLESV2_SURFACE 1
#define CAIRO_HAS_XML_SURFACE 1
#define CAIRO_HAS_VG_SURFACE 1

//end adaugat de mine
/*#undef CAIRO_HAS_BEOS_SURFACE */
/*#undef CAIRO_HAS_COGL_SURFACE */
/*#undef CAIRO_HAS_DIRECTFB_SURFACE */
/*#undef CAIRO_HAS_DRM_SURFACE */
/*#undef CAIRO_HAS_EGL_FUNCTIONS */
/*#undef CAIRO_HAS_GALLIUM_SURFACE */
//era comentat
/*#undef CAIRO_HAS_GLESV2_SURFACE*/
/*#undef CAIRO_HAS_GLX_FUNCTIONS*/
/*#undef CAIRO_HAS_GL_SURFACE*/
/*#undef CAIRO_HAS_OS2_SURFACE */
#undef CAIRO_HAS_QT_SURFACE
/*#undef CAIRO_HAS_QUARTZ_IMAGE_SURFACE */
/*#undef CAIRO_HAS_SKIA_SURFACE */
/*#undef CAIRO_HAS_TEE_SURFACE */
/*#undef CAIRO_HAS_VG_SURFACE */
/*#undef CAIRO_HAS_WGL_FUNCTIONS*/
/*#undef CAIRO_HAS_WIN32_FONT */
/*#undef CAIRO_HAS_WIN32_SURFACE */
/*#undef CAIRO_HAS_XCB_SHM_FUNCTIONS */
/*#undef CAIRO_HAS_XCB_SURFACE */

//era comentat
/*#undef CAIRO_HAS_XLIB_XCB_FUNCTIONS*/
/*#undef CAIRO_HAS_XML_SURFACE */

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20170801/435cacca/attachment.html>


More information about the cairo mailing list