[Cogl] Error when compiling with mingw-w64
Neil Roberts
neil at linux.intel.com
Mon Jan 27 04:59:11 PST 2014
Hi,
I think the problem may be with how you've named the gl header. The name
OpenGL/gl.h is only used on OS X whereas everywhere else calls it
GL/gl.h. It looks like if the configure script finds OpenGL/gl.h it will
enable the quartz platform and that stops it from enabling WGL.
So I guess you just need to rename the GL header to GL/gl.h and then
when you rerun configure verify that it has the following lines at the
end:
• Features:
Drivers: gl
GL Window System APIs: wgl
Hope that helps.
Regards,
- Neil
Eugen Dedu <Eugen.Dedu at pu-pm.univ-fcomte.fr> writes:
> 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
> _______________________________________________
> Cogl mailing list
> Cogl at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/cogl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/cogl/attachments/20140127/b707acf2/attachment.pgp>
More information about the Cogl
mailing list