Error compiling Cairo 0.92 and how to fix it



I'm getting along compiling the newest versions of the Gtk2 packages. Glib still fails the 64 bit test suites, but for now I ignored that. Now I've tried to compile the new Cairo 0.92 release and during the run of nmake I got the following:

------------------------------------------------------------------------
[...]
cl -c -I. -Ibuild -IC:/Gtk/include/cairo -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1 -DVERSION=\"0.92\" -DXS_VERSION=\"0.92\" "-IC:\usr\lib\CORE" cairo-perl-enums.c cl : Befehlszeile warning D4029 : Die Optimierung ist im Standardcompiler nicht verfügbar.
cairo-perl-enums.c
cairo-perl-enums.c(799) : error C2065: 'CAIRO_SVG_VERSION_1_1': nichtdeklarierter Bezeichner cairo-perl-enums.c(801) : error C2065: 'CAIRO_SVG_VERSION_1_2': nichtdeklarierter Bezeichner
NMAKE : fatal error U1077: 'cl': R³ckgabe-Code '0x2'
Stop.
------------------------------------------------------------------------

To fix this, run "perl Makefile.PL" and open the file "cairo-perl-enums.c" (it is created by Makefile.PL). At the beginning find:

------------------------------------------------------------------------
/*
 * This file was automatically generated.  Do not edit.
 */

#include <cairo-perl.h>
------------------------------------------------------------------------

Add this line below:

------------------------------------------------------------------------

typedef enum {
    CAIRO_SVG_VERSION_1_1,
    CAIRO_SVG_VERSION_1_2
} cairo_svg_version_t;

------------------------------------------------------------------------

Now save and close the file. After this modification nmake runs without any errors.

I hope that will help.

I'll keep you updated about my progress on compiling Gtk2 with MSVC.

Mario Fischer



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]