[cairo-bugs] [Bug 54319] New: [EGL] compile error in cairo-egl-context.c at line 189

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 31 05:12:54 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=54319

             Bug #: 54319
           Summary: [EGL] compile error in cairo-egl-context.c at line 189
    Classification: Unclassified
           Product: cairo
           Version: 1.12.2
          Platform: IA64 (Itanium)
        OS/Version: Windows (All)
            Status: NEW
          Severity: blocker
          Priority: medium
         Component: gl backend
        AssignedTo: cairo-bugs at cairographics.org
        ReportedBy: candideus at gmail.com
         QAContact: cairo-bugs at cairographics.org


Hi cairo-team!

My target is to get a cairo library that supports OpenVG and EGL (currently on
Windows, later on on Linux). I noticed, that enabling EGL also enforces
enabling OpenGL or OpenGLES. So I ended up activating the following settings on
top of plain 1.12.2 release:

    CAIRO_HAS_GL_SURFACE=1
    CAIRO_HAS_VG_SURFACE=1
    CAIRO_HAS_EGL_FUNCTIONS=1

Using Visual Studio 11 compiler (VC11) this configuration produces these
warnings and compile errors:
    ...
    cairo-gl-msaa-compositor.c
    cairo-gl-spans-compositor.c
    cairo-gl-traps-compositor.c
    cairo-gl-traps-compositor.c(329) : warning C4133: '=' : incompatible types
- fro
    m 'cairo_surface_t *' to 'cairo_gl_surface_t *'
    cairo-gl-source.c
    cairo-gl-surface.c
    cairo-vg-surface.c
    cairo-egl-context.c
    cairo-egl-context.c(189) : error C2440: 'function' : cannot convert from
'__eglM
    ustCastToProperFunctionPointerType (__stdcall *)(const char *)' to
'cairo_gl_get
    _proc_addr_func_t'
    cairo-egl-context.c(189) : warning C4024: '_cairo_gl_dispatch_init' :
different
    types for formal and actual parameter 2
    make[1]: *** [debug/cairo-egl-context.obj] Error 2
    make[1]: Leaving directory `/c/Users/kog/xxx/CairoBuild/cairo/src'
    make: *** [cairo] Error 2

I also tested the very same configuration on latest 1.12 git branch and latest
master git branch. Everywhere the very same warnings and errors (apart from
slightly differing line numbers of course). Enabling CAIRO_HAS_EGL_FUNCTIONS=1
breaks the build.

Many thanks for your support!

Kind regards,
Fred

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the cairo-bugs mailing list