[Cogl] Error when compiling with mingw-w64
Eugen Dedu
Eugen.Dedu at pu-pm.univ-fcomte.fr
Mon Jan 27 06:02:19 PST 2014
It works, thank you very much!!
I was pretty sure that I tried with GL/ too, but it seems I was wrong
elsewhere...
Eugen
On 27/01/14 13:59, Neil Roberts wrote:
> 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
More information about the Cogl
mailing list