waffle-gl / waffle

A C library for selecting an OpenGL API and window system at runtime
https://waffle.freedesktop.org
BSD 2-Clause "Simplified" License
35 stars 16 forks source link

build failed for Android #41

Closed Ding34 closed 7 years ago

Ding34 commented 8 years ago

I put waffle in external directory in Android source tree, build Android framework, then run $ m libwaffle-1 to build waffle for Android

build failed with error:

external/waffle/src/waffle/egl/wegl_context.c: In function 'create_real_context': external/waffle/src/waffle/egl/wegl_context.c:102:40: error: 'EGL_CONTEXT_OPENGL_ROBUST_ACCESS' undeclared (first use in this function) attrib_list[i++] = EGL_CONTEXT_OPENGL_ROBUST_ACCESS; ^ external/waffle/src/waffle/egl/wegl_context.c:102:40: note: each undeclared identifier is reported only once for each function it appears in

make: *\ [cm/out/target/product/generic/obj/SHARED_LIBRARIES/libwaffle-1_intermediates/src/waffle/egl/wegl_context.o] Error 1

evelikov commented 8 years ago

Hmm nice one thanks. Let me spin a patch. Edit: here it is - https://lists.freedesktop.org/archives/waffle/2016-July/001535.html

linyaa-kiwi commented 8 years ago

TODO:

tpalli commented 7 years ago

tested current master (dccb750) on oandroid-ia, builds ok!

evelikov commented 7 years ago

Closing as per Tapani's comment.