[Buildroot] [PATCH 2/2] package/cegui: select libglu when libgl is detected

Bartosz Bilas b.bilas at grinn-global.com
Thu Apr 30 19:54:15 UTC 2020


Hello all,

On 29.04.2020 22:53, Thomas Petazzoni wrote:
> Hello,
>
> Adding Bernd for libglew/libglu questions.
>
> On Tue, 28 Apr 2020 21:58:44 +0200
> Bartosz Bilas <b.bilas at grinn-global.com> wrote:
>
>> Fixes:
>>    include/GL/glew.h:1205:14: fatal error: GL/glu.h: No such file or directory
>>
>> Signed-off-by: Bartosz Bilas <b.bilas at grinn-global.com>
> This should not be solved inside cegui: it's the glew.h header that
> includes GL/glu.h, so from the look of it, glew should depend on glu.

Are you sure? There is a couple of packages which have similar fix such as:


package/ogre/Config.in:    select BR2_PACKAGE_LIBGLU # GL/glu.h
package/supertux/Config.in:    select BR2_PACKAGE_LIBGLU # GL/glu.h
package/lugaru/Config.in:    select BR2_PACKAGE_LIBGLU # GL/glu.h

>
> However, it turns out that glew has a GLEW_NO_GLU flag:
>
> #ifndef GLEW_NO_GLU
> /* this is where we can safely include GLU */
> #  if defined(__APPLE__) && defined(__MACH__)
> #    include <OpenGL/glu.h>
> #  else
> #    include <GL/glu.h>
> #  endif
> #endif
>
> I'm not sure how we should use that GLEW_NO_GLU flag. Should it be the
> responsibility of the package using glew to define it?
>
> Could you do a bit of research on this?
I will but not in the near future.
> Thanks, Thomas 
Best
Bartek


More information about the buildroot mailing list