* [Buildroot] [PATCH 1/2] package/cegui: force libglew when libepoxy is also enabled
@ 2020-04-28 19:58 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:50 ` [Buildroot] [PATCH 1/2] package/cegui: force libglew when libepoxy is also enabled Thomas Petazzoni
0 siblings, 2 replies; 11+ messages in thread
From: Bartosz Bilas @ 2020-04-28 19:58 UTC (permalink / raw)
To: buildroot
Cegui doesn't allow to have enabled both opengl libraries so disable
libepoxy when both are enabled.
Fixes:
- http://autobuild.buildroot.net/results/2881bbcc2dcfcaa5ed663817ff39f7574430ba5a/build-end.log
Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
---
package/cegui/cegui.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/cegui/cegui.mk b/package/cegui/cegui.mk
index 434201b1f8..0e3d015948 100644
--- a/package/cegui/cegui.mk
+++ b/package/cegui/cegui.mk
@@ -18,7 +18,7 @@ CEGUI_DEPENDENCIES = glm \
$(if $(BR2_PACKAGE_LIBGLEW),libglew) \
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
-ifeq ($(BR2_PACKAGE_LIBEPOXY),y)
+ifeq ($(BR2_PACKAGE_LIBEPOXY)$(BR2_PACKAGE_LIBGLEW),y)
CEGUI_DEPENDENCIES += libepoxy
CEGUI_CONF_OPTS += -DCEGUI_USE_EPOXY=ON
else
--
2.26.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package/cegui: select libglu when libgl is detected
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 ` Bartosz Bilas
2020-04-29 20:53 ` Thomas Petazzoni
2020-05-03 17:16 ` Bernd Kuhls
2020-04-29 20:50 ` [Buildroot] [PATCH 1/2] package/cegui: force libglew when libepoxy is also enabled Thomas Petazzoni
1 sibling, 2 replies; 11+ messages in thread
From: Bartosz Bilas @ 2020-04-28 19:58 UTC (permalink / raw)
To: buildroot
Fixes:
include/GL/glew.h:1205:14: fatal error: GL/glu.h: No such file or directory
Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
---
package/cegui/Config.in | 1 +
package/cegui/cegui.mk | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/package/cegui/Config.in b/package/cegui/Config.in
index f917be0cc5..0c7932098c 100644
--- a/package/cegui/Config.in
+++ b/package/cegui/Config.in
@@ -9,6 +9,7 @@ config BR2_PACKAGE_CEGUI
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_WCHAR
select BR2_PACKAGE_GLM
+ select BR2_PACKAGE_LIBGLU if BR2_PACKAGE_HAS_LIBGL
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
help
Crazy Eddie's GUI System is a free library providing windowing
diff --git a/package/cegui/cegui.mk b/package/cegui/cegui.mk
index 0e3d015948..4aaa065818 100644
--- a/package/cegui/cegui.mk
+++ b/package/cegui/cegui.mk
@@ -16,7 +16,8 @@ CEGUI_DEPENDENCIES = glm \
$(if $(BR2_PACKAGE_HAS_LIBGL),libgl) \
$(if $(BR2_PACKAGE_HAS_LIBGLES),libgles) \
$(if $(BR2_PACKAGE_LIBGLEW),libglew) \
- $(if $(BR2_PACKAGE_LIBICONV),libiconv)
+ $(if $(BR2_PACKAGE_LIBICONV),libiconv) \
+ $(if $(BR2_PACKAGE_LIBGLU),libglu)
ifeq ($(BR2_PACKAGE_LIBEPOXY)$(BR2_PACKAGE_LIBGLEW),y)
CEGUI_DEPENDENCIES += libepoxy
--
2.26.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package/cegui: force libglew when libepoxy is also enabled
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:50 ` Thomas Petazzoni
2020-04-30 19:50 ` Bartosz Bilas
1 sibling, 1 reply; 11+ messages in thread
From: Thomas Petazzoni @ 2020-04-29 20:50 UTC (permalink / raw)
To: buildroot
On Tue, 28 Apr 2020 21:58:43 +0200
Bartosz Bilas <b.bilas@grinn-global.com> wrote:
> Cegui doesn't allow to have enabled both opengl libraries so disable
> libepoxy when both are enabled.
>
> Fixes:
> - http://autobuild.buildroot.net/results/2881bbcc2dcfcaa5ed663817ff39f7574430ba5a/build-end.log
>
> Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
> ---
> package/cegui/cegui.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/cegui/cegui.mk b/package/cegui/cegui.mk
> index 434201b1f8..0e3d015948 100644
> --- a/package/cegui/cegui.mk
> +++ b/package/cegui/cegui.mk
> @@ -18,7 +18,7 @@ CEGUI_DEPENDENCIES = glm \
> $(if $(BR2_PACKAGE_LIBGLEW),libglew) \
> $(if $(BR2_PACKAGE_LIBICONV),libiconv)
>
> -ifeq ($(BR2_PACKAGE_LIBEPOXY),y)
> +ifeq ($(BR2_PACKAGE_LIBEPOXY)$(BR2_PACKAGE_LIBGLEW),y)
This way of solving the problem doesn't work: if BR2_PACKAGE_LIBEPOXY
is false, but BR2_PACKAGE_LIBGLEW=y, then the condition is true, and we
add a dependency on libepoxy. Not what we want. So I've replaced with
+# libepoxy support cannot be enabled together with libglew
+ifeq ($(BR2_PACKAGE_LIBEPOXY):$(BR2_PACKAGE_LIBGLEW),y:)
instead.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package/cegui: select libglu when libgl is detected
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-03 17:16 ` Bernd Kuhls
1 sibling, 1 reply; 11+ messages in thread
From: Thomas Petazzoni @ 2020-04-29 20:53 UTC (permalink / raw)
To: buildroot
Hello,
Adding Bernd for libglew/libglu questions.
On Tue, 28 Apr 2020 21:58:44 +0200
Bartosz Bilas <b.bilas@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@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.
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?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package/cegui: force libglew when libepoxy is also enabled
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
0 siblings, 0 replies; 11+ messages in thread
From: Bartosz Bilas @ 2020-04-30 19:50 UTC (permalink / raw)
To: buildroot
Hello Thomas,
On 29.04.2020 22:50, Thomas Petazzoni wrote:
> On Tue, 28 Apr 2020 21:58:43 +0200
> Bartosz Bilas <b.bilas@grinn-global.com> wrote:
>
>> Cegui doesn't allow to have enabled both opengl libraries so disable
>> libepoxy when both are enabled.
>>
>> Fixes:
>> - http://autobuild.buildroot.net/results/2881bbcc2dcfcaa5ed663817ff39f7574430ba5a/build-end.log
>>
>> Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
>> ---
>> package/cegui/cegui.mk | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/package/cegui/cegui.mk b/package/cegui/cegui.mk
>> index 434201b1f8..0e3d015948 100644
>> --- a/package/cegui/cegui.mk
>> +++ b/package/cegui/cegui.mk
>> @@ -18,7 +18,7 @@ CEGUI_DEPENDENCIES = glm \
>> $(if $(BR2_PACKAGE_LIBGLEW),libglew) \
>> $(if $(BR2_PACKAGE_LIBICONV),libiconv)
>>
>> -ifeq ($(BR2_PACKAGE_LIBEPOXY),y)
>> +ifeq ($(BR2_PACKAGE_LIBEPOXY)$(BR2_PACKAGE_LIBGLEW),y)
> This way of solving the problem doesn't work: if BR2_PACKAGE_LIBEPOXY
> is false, but BR2_PACKAGE_LIBGLEW=y, then the condition is true, and we
> add a dependency on libepoxy. Not what we want. So I've replaced with
>
> +# libepoxy support cannot be enabled together with libglew
> +ifeq ($(BR2_PACKAGE_LIBEPOXY):$(BR2_PACKAGE_LIBGLEW),y:)
>
> instead.
Ouch, good catch! You are right - I've tested that with libepoxy=y and
liblgew=y only. Thanks for the fix :)
>
> Thanks!
>
> Thomas
Best
Bartek
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package/cegui: select libglu when libgl is detected
2020-04-29 20:53 ` Thomas Petazzoni
@ 2020-04-30 19:54 ` Bartosz Bilas
2020-05-02 9:39 ` Thomas Petazzoni
2020-05-03 17:15 ` Bernd Kuhls
0 siblings, 2 replies; 11+ messages in thread
From: Bartosz Bilas @ 2020-04-30 19:54 UTC (permalink / raw)
To: buildroot
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@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@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
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package/cegui: select libglu when libgl is detected
2020-04-30 19:54 ` Bartosz Bilas
@ 2020-05-02 9:39 ` Thomas Petazzoni
2020-05-03 17:15 ` Bernd Kuhls
1 sibling, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2020-05-02 9:39 UTC (permalink / raw)
To: buildroot
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package/cegui: select libglu when libgl is detected
2020-04-30 19:54 ` Bartosz Bilas
2020-05-02 9:39 ` Thomas Petazzoni
@ 2020-05-03 17:15 ` Bernd Kuhls
1 sibling, 0 replies; 11+ messages in thread
From: Bernd Kuhls @ 2020-05-03 17:15 UTC (permalink / raw)
To: buildroot
Hi,
Am Thu, 30 Apr 2020 21:54:15 +0200 schrieb Bartosz Bilas:
> 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
sent http://patchwork.ozlabs.org/project/buildroot/patch/
20200503171227.1411086-1-bernd.kuhls at t-online.de/
which removes the libglu dependency coming from upstream-included glew.h.
> package/supertux/Config.in:??? select BR2_PACKAGE_LIBGLU # GL/glu.h
dito, sent http://patchwork.ozlabs.org/project/buildroot/patch/
20200503171227.1411086-2-bernd.kuhls at t-online.de/
> package/lugaru/Config.in:?? ?select BR2_PACKAGE_LIBGLU # GL/glu.h
This package directly includes GL/glu.h:
https://bitbucket.org/osslugaru/lugaru/src/
f6049187585733143f2fb2d688097cc711e15cf0/Source/gamegl.h#lines-42
and does not make use of libglew at all.
Cegui also directly includes GL/glu.h:
https://github.com/cegui/cegui/blob/master/cegui/include/CEGUI/
RendererModules/OpenGL/GL.h#L49
which makes libglu a hard dependency for this package even when
-DGLEW_NO_GLU was added to CXXFLAGS.
Regards, Bernd
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package/cegui: select libglu when libgl is detected
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-05-03 17:16 ` Bernd Kuhls
2020-05-09 8:28 ` Bartosz Bilas
1 sibling, 1 reply; 11+ messages in thread
From: Bernd Kuhls @ 2020-05-03 17:16 UTC (permalink / raw)
To: buildroot
Am Tue, 28 Apr 2020 21:58:44 +0200 schrieb Bartosz Bilas:
> Fixes:
> include/GL/glew.h:1205:14: fatal error: GL/glu.h: No such file or
> directory
Cegui directly includes GL/glu.h:
https://github.com/cegui/cegui/blob/master/cegui/include/CEGUI/
RendererModules/OpenGL/GL.h#L49
which makes libglu a hard dependency for this package even when
-DGLEW_NO_GLU was added to CXXFLAGS.
Reviewed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package/cegui: select libglu when libgl is detected
2020-05-03 17:16 ` Bernd Kuhls
@ 2020-05-09 8:28 ` Bartosz Bilas
2020-05-17 20:18 ` Bartosz Bilas
0 siblings, 1 reply; 11+ messages in thread
From: Bartosz Bilas @ 2020-05-09 8:28 UTC (permalink / raw)
To: buildroot
Hi guys,
On 03.05.2020 19:16, Bernd Kuhls wrote:
> Am Tue, 28 Apr 2020 21:58:44 +0200 schrieb Bartosz Bilas:
>
>> Fixes:
>> include/GL/glew.h:1205:14: fatal error: GL/glu.h: No such file or
>> directory
> Cegui directly includes GL/glu.h:
>
> https://github.com/cegui/cegui/blob/master/cegui/include/CEGUI/
> RendererModules/OpenGL/GL.h#L49
>
> which makes libglu a hard dependency for this package even when
> -DGLEW_NO_GLU was added to CXXFLAGS.
>
> Reviewed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Thomas could you give some feedback with that patch then?
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
Best
Bartek
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package/cegui: select libglu when libgl is detected
2020-05-09 8:28 ` Bartosz Bilas
@ 2020-05-17 20:18 ` Bartosz Bilas
0 siblings, 0 replies; 11+ messages in thread
From: Bartosz Bilas @ 2020-05-17 20:18 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On 09.05.2020 10:28, Bartosz Bilas wrote:
> Hi guys,
>
> On 03.05.2020 19:16, Bernd Kuhls wrote:
>> Am Tue, 28 Apr 2020 21:58:44 +0200 schrieb Bartosz Bilas:
>>
>>> Fixes:
>>> ?? include/GL/glew.h:1205:14: fatal error: GL/glu.h: No such file or
>>> ?? directory
>> Cegui directly includes GL/glu.h:
>>
>> https://github.com/cegui/cegui/blob/master/cegui/include/CEGUI/
>> RendererModules/OpenGL/GL.h#L49
>>
>> which makes libglu a hard dependency for this package even when
>> -DGLEW_NO_GLU was added to CXXFLAGS.
>>
>> Reviewed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> Thomas could you give some feedback with that patch then?
gently ping due to the fact that the issue is still there and causing
autobuilders failure.
>>
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
> Best
> Bartek
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
Best
Bartek
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2020-05-17 20:18 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.