Re: Building Cairo on Windows
Dimiter 'malkia' Stanev <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
Latest (git) is broken for me on Windows, I'm using Windows WDK 7.1 to compile it. e:\p\cairo>git log -1 commit 5c4087af810763ee98682b3bcc1c759ad8b4c27b Author: Martin Robinson <[email protected]> Date: Tue Feb 28 10:50:16 2012 -0800 Here is what I'm getting: cairo-win32-display-surface.c win32/cairo-win32-display-surface.c(467) : error C2039: 'base' : is not a member of '_cairo_surface' E:\p\cairo\src\cairo-surface-private.h(51) : see declaration of '_cairo_surface' win32/cairo-win32-display-surface.c(467) : warning C4090: 'function' : different 'const' qualifiers win32/cairo-win32-display-surface.c(467) : error C2198: '_cairo_surface_map_to_image' : too few arguments for call win32/cairo-win32-display-surface.c(502) : error C2039: 'base' : is not a member of '_cairo_surface' E:\p\cairo\src\cairo-surface-private.h(51) : see declaration of '_cairo_surface' win32/cairo-win32-display-surface.c(502) : warning C4133: 'function' : incompatible types - from 'cairo_image_surface_t *' to 'cairo_surface_t *' win32/cairo-win32-display-surface.c(502) : error C2198: '_cairo_surface_unmap_image' : too few arguments for call ../build/Makefile.win32.common:55: recipe for target `release/win32/cairo-win32-display-surface.obj' failed e:\p\cairo>cat build/Makefile.win32.features CAIRO_HAS_XLIB_SURFACE=0 CAIRO_HAS_XLIB_XRENDER_SURFACE=0 CAIRO_HAS_XCB_SURFACE=0 CAIRO_HAS_XLIB_XCB_FUNCTIONS=0 CAIRO_HAS_XCB_SHM_FUNCTIONS=0 CAIRO_HAS_QT_SURFACE=0 CAIRO_HAS_QUARTZ_SURFACE=0 CAIRO_HAS_QUARTZ_FONT=0 CAIRO_HAS_QUARTZ_IMAGE_SURFACE=0 CAIRO_HAS_SKIA_SURFACE=0 CAIRO_HAS_OS2_SURFACE=0 CAIRO_HAS_BEOS_SURFACE=0 CAIRO_HAS_DRM_SURFACE=0 CAIRO_HAS_GALLIUM_SURFACE=0 CAIRO_HAS_GLESV2_SURFACE=0 CAIRO_HAS_DIRECTFB_SURFACE=0 CAIRO_HAS_VG_SURFACE=0 CAIRO_HAS_EGL_FUNCTIONS=0 CAIRO_HAS_GLX_FUNCTIONS=0 CAIRO_HAS_FC_FONT=0 CAIRO_HAS_PTHREAD=0 CAIRO_HAS_GOBJECT_FUNCTIONS=0 CAIRO_HAS_FT_FONT=1 CAIRO_HAS_SCRIPT_SURFACE=1 CAIRO_HAS_XML_SURFACE=1 CAIRO_HAS_SVG_SURFACE=1 CAIRO_HAS_GL_SURFACE=1 CAIRO_HAS_WGL_FUNCTIONS=1 CAIRO_HAS_PNG_FUNCTIONS=1 CAIRO_HAS_PS_SURFACE=1 CAIRO_HAS_PDF_SURFACE=1 CAIRO_HAS_WIN32_SURFACE=1 CAIRO_HAS_WIN32_FONT=1 CAIRO_HAS_TEST_SURFACES=1 CAIRO_HAS_TEE_SURFACE=1 CAIRO_HAS_TRACE=1 CAIRO_HAS_INTERPRETER=1 CAIRO_HAS_SYMBOL_LOOKUP=1 On 8/22/2012 9:01 AM, Mohit Sindhwani wrote: > Hi All, > > Just a bump since it's been a few days.. hope that someone is > successfully building Cairo on Windows under MinGW :) > > Best Regards, > Mohit. > 23/8/2012 | 12:01 AM. > > On 19/8/2012 8:05 PM, Mohit Sindhwani wrote: >> Hi All, >> >> I have spent quite a bit of time trying to get Cairo to build on >> Windows under MinGW (on Windows). There are a number of different >> guides in different places, and I may have ended up in a corner >> basically because of following different guides for different steps. >> My intent is to build the Cairo DLL, followed by Pango and then, >> maybe, on to Clutter. >> >> I've installed MinGW and MSYS and followed through a few guides, most >> notably, the guide for building Spatialite: >> http://www.gaia-gis.it/spatialite-2.4.0-4/mingw_how_to.html >> >> This gave a good introduction to making sure that some of the >> dependencies for building under MinGW were met. In the libCairo >> section, it says that if we do "make" and "make install-strip", it >> should install both the static library and the DLL as well. >> >> I can't seem to find the DLL anywhere (maybe, I'm looking in the wrong >> places). >> * the PixMan DLL is in /usr/local/bin >> * there is a libcairo.a in /usr/local/lib - but I can't find the DLL >> any place >> >> Also, where would the .def files be created for linking against the DLL? >> >> I do understand that life would be easier if I just took the >> pre-compiled binaries from the Gtk+ project, but I want to (first) use >> Cairo in an Embarcadero RAD Studio application (C++ Builder) and >> building the DLL myself is also a first step towards wanting to use >> Cairo in a Windows CE application (if things have improved for Win32 >> compatibility in the past couple of years, especially for using fonts). >> >> Best Regards, >> Mohit. >> 19/8/2012 | 7:56 PM. >> >> >> > -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo