Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] package/cegui: select libglu when libgl is detected
Date: Sat, 2 May 2020 11:39:43 +0200	[thread overview]
Message-ID: <20200502113943.6d9dfe49@windsurf.home> (raw)
In-Reply-To: <605471f7-f313-6c79-af48-a36b928013f3@grinn-global.com>

On Thu, 30 Apr 2020 21:54:15 +0200
Bartosz Bilas <b.bilas@grinn-global.com> wrote:

> >> Signed-off-by: Bartosz Bilas <b.bilas@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

And these packages are similarly wrong I believe. And yes, I am sure,
see the code below:

> > 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

This clearly shows that glew is including <GL/glu.h>. So it should be
the responsibility of glew to depend on glu, or to make it properly
optional by defining GLEW_NO_GLU.

Hopefully Bernd will be able to comment on this.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2020-05-02  9:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-28 19:58 [Buildroot] [PATCH 1/2] package/cegui: force libglew when libepoxy is also enabled Bartosz Bilas
2020-04-28 19:58 ` [Buildroot] [PATCH 2/2] package/cegui: select libglu when libgl is detected Bartosz Bilas
2020-04-29 20:53   ` Thomas Petazzoni
2020-04-30 19:54     ` Bartosz Bilas
2020-05-02  9:39       ` Thomas Petazzoni [this message]
2020-05-03 17:15       ` Bernd Kuhls
2020-05-03 17:16   ` Bernd Kuhls
2020-05-09  8:28     ` Bartosz Bilas
2020-05-17 20:18       ` Bartosz Bilas
2020-04-29 20:50 ` [Buildroot] [PATCH 1/2] package/cegui: force libglew when libepoxy is also enabled Thomas Petazzoni
2020-04-30 19:50   ` Bartosz Bilas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200502113943.6d9dfe49@windsurf.home \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox