Perlmint / glew-cmake

GLEW(https://github.com/nigels-com/glew, source updated nightly) with Cmake and pre-generated sources
Other
234 stars 95 forks source link

How to use EGLEW in Linux ? #66

Closed Gpinchon closed 3 months ago

Gpinchon commented 8 months ago

I'm trying to use EGL on Linux and on linking it cannot find any of EGLEW symbols. Are they only defined in the shared libraries ? Up to this point I only linked against GLEW's static libs... Am I missing something there ?

[EDIT] After looking a bit more it seems there is no support for EGL, is there a reason for this ?

nigels-com commented 8 months ago

GLEW needs to build in EGL mode, -DGLEW_EGL=1

Perlmint commented 3 months ago

CMakeLists.txt in glew-cmake does not support EGL. If you want to use EGL with glew-cmake, modify it or use CMakeLists.txt in GLEW. In CMakeLists.txt of GLEW, you can enable EGL with GLEW_EGL=1.