[Cogl] Error when compiling with mingw-w64

Eugen Dedu Eugen.Dedu at pu-pm.univ-fcomte.fr
Mon Jan 27 03:16:26 PST 2014


Hi all,

I need cogl (and clutter) for Windows.  I am compiling cogl 1.14.0 and 
1.16.2 and both give compile error when compiling with mingw-w64:

   CC       libcogl_path_la-cogl1-path.lo
In file included from ../cogl/winsys/cogl-winsys-private.h:29:0,
                  from ../cogl/cogl-context-private.h:28,
                  from cogl1-path.c:32:
../cogl/gl-prototypes/cogl-in-gles-core-functions.h:116:21: error: 
unknown type name 'GLsizeiptr'
                      GLsizeiptr   size,
                      ^
../cogl/cogl-gles2.h:117:16: note: in definition of macro 
'COGL_EXT_FUNCTION'
    ret (* name) args;
                 ^
../cogl/gl-prototypes/cogl-in-gles-core-functions.h:121:21: error: 
unknown type name 'GLintptr'
                      GLintptr   offset,

etc. etc.

I copied http://cgit.freedesktop.org/mesa/mesa/plain/include/GL/gl.h in 
include/OpenGL directory and the compile error went away, but another 
error surfaced: With gl.h found, cogl configure gives:
checking for OpenGL/gl.h... yes

and I have an error later, when compiling clutter:

   CCLD     libclutter-1.0.la
.libs/clutter-event-win32.o: In function `clutter_win32_handle_event':
/home/ededu/softs/ekiga/windows-svn/clutter-1.14.6/clutter/./win32/clutter-event-win32.c:373: 
undefined reference to `cogl_win32_renderer_handle_event'
.libs/clutter-stage-win32.o: In function `clutter_stage_win32_realize':
/home/ededu/softs/ekiga/windows-svn/clutter-1.14.6/clutter/./win32/clutter-stage-win32.c:488: 
undefined reference to `cogl_win32_onscreen_set_foreign_window'
collect2: error: ld returned 1 exit status

How to fix it?

-- 
Eugen


More information about the Cogl mailing list