Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 2/2] sunxi-mali: use only -I${includedir} as pkg-config Cflags
  2014-06-01  9:50 Peter Kümmel
@ 2014-06-01  9:50 ` Peter Kümmel
  2014-06-01 10:20   ` Yann E. MORIN
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Kümmel @ 2014-06-01  9:50 UTC (permalink / raw)
  To: buildroot

    Using only -I${includedir} in common practice.

    Settings only -I${includedir}/GLES2 breaks Qt5's CMake files,
    because at configure time CMake only searchs the paths reported
    by pkg-config, and not even /usr/include is used as default.

Signed-off-by: Peter K?mmel <syntheticpp@gmx.net>
---
 package/sunxi-mali/egl.pc    |    2 +-
 package/sunxi-mali/glesv2.pc |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/sunxi-mali/egl.pc b/package/sunxi-mali/egl.pc
index b062ad1..2823209 100644
--- a/package/sunxi-mali/egl.pc
+++ b/package/sunxi-mali/egl.pc
@@ -8,5 +8,5 @@ Description: ARM Mali implementation of EGL
 Version: 1.4
 Requires:
 Libs: -L${libdir} -lEGL -lGLESv2 -lUMP
-Cflags: -I${includedir}/EGL/ -I${includedir}
+Cflags: -I${includedir}
 
diff --git a/package/sunxi-mali/glesv2.pc b/package/sunxi-mali/glesv2.pc
index 9273678..4702d13 100644
--- a/package/sunxi-mali/glesv2.pc
+++ b/package/sunxi-mali/glesv2.pc
@@ -8,5 +8,5 @@ Description: ARM Mali implementation of OpenGL ESv2
 Version: 2.0
 Requires:
 Libs: -L${libdir} -lGLESv2 -lGLESv1_CM -lUMP
-Cflags: -I${includedir}/GLES2
+Cflags: -I${includedir}
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 1/2] ti-gfx: use only -I${includedir} as pkg-config Cflags
@ 2014-06-01 10:18 Peter Kümmel
  2014-06-01 10:18 ` [Buildroot] [PATCH 2/2] sunxi-mali: " Peter Kümmel
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Peter Kümmel @ 2014-06-01 10:18 UTC (permalink / raw)
  To: buildroot

Using only -I${includedir} in common practice.

Settings only -I${includedir}/GLES2 breaks Qt5's CMake files,
because at configure time CMake only searchs the paths reported
by pkg-config, and not even /usr/include is used as default.

Even though pkg-config strips out standard include path, that's not
the case with pkgconf (which we are using) in cross-compilation,
which correctly reports the /usr/include dir prefixed with the
sysroot.

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter K?mmel <syntheticpp@gmx.net>
---
 package/ti-gfx/egl.pc    |    2 +-
 package/ti-gfx/glesv2.pc |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/ti-gfx/egl.pc b/package/ti-gfx/egl.pc
index 223fb04..36ea413 100644
--- a/package/ti-gfx/egl.pc
+++ b/package/ti-gfx/egl.pc
@@ -8,4 +8,4 @@ Description: TI Graphics SDK implementation of EGL
 Version: 1.9.2188537
 Requires:
 Libs: -L${libdir} -lEGL -lGLESv2 -lIMGegl
-Cflags: -I${includedir}/EGL/ -I${includedir}
+Cflags: -I${includedir}
diff --git a/package/ti-gfx/glesv2.pc b/package/ti-gfx/glesv2.pc
index 4c70aec..b458133 100644
--- a/package/ti-gfx/glesv2.pc
+++ b/package/ti-gfx/glesv2.pc
@@ -8,4 +8,4 @@ Description: TI Graphics SDK implementation of OpenGL ESv2
 Version: 1.9.2188537
 Requires:
 Libs: -L${libdir} -lGLESv2 -lGLES_CM -lsrv_um -lusc -lEGL -lIMGegl
-Cflags: -I${includedir}/GLES2
+Cflags: -I${includedir}
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 2/2] sunxi-mali: use only -I${includedir} as pkg-config Cflags
  2014-06-01 10:18 [Buildroot] [PATCH 1/2] ti-gfx: use only -I${includedir} as pkg-config Cflags Peter Kümmel
@ 2014-06-01 10:18 ` Peter Kümmel
  2014-06-03  4:54   ` Peter Kümmel
  2014-06-03  4:54 ` [Buildroot] [PATCH 1/2] ti-gfx: " Peter Kümmel
  2014-06-08 16:53 ` Thomas Petazzoni
  2 siblings, 1 reply; 7+ messages in thread
From: Peter Kümmel @ 2014-06-01 10:18 UTC (permalink / raw)
  To: buildroot

Using only -I${includedir} in common practice.

Settings only -I${includedir}/GLES2 breaks Qt5's CMake files,
because at configure time CMake only searchs the paths reported
by pkg-config, and not even /usr/include is used as default.

Even though pkg-config strips out standard include path, that's not
the case with pkgconf (which we are using) in cross-compilation,
which correctly reports the /usr/include dir prefixed with the
sysroot.

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter K?mmel <syntheticpp@gmx.net>
---
 package/sunxi-mali/egl.pc    |    2 +-
 package/sunxi-mali/glesv2.pc |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/sunxi-mali/egl.pc b/package/sunxi-mali/egl.pc
index b062ad1..2823209 100644
--- a/package/sunxi-mali/egl.pc
+++ b/package/sunxi-mali/egl.pc
@@ -8,5 +8,5 @@ Description: ARM Mali implementation of EGL
 Version: 1.4
 Requires:
 Libs: -L${libdir} -lEGL -lGLESv2 -lUMP
-Cflags: -I${includedir}/EGL/ -I${includedir}
+Cflags: -I${includedir}
 
diff --git a/package/sunxi-mali/glesv2.pc b/package/sunxi-mali/glesv2.pc
index 9273678..4702d13 100644
--- a/package/sunxi-mali/glesv2.pc
+++ b/package/sunxi-mali/glesv2.pc
@@ -8,5 +8,5 @@ Description: ARM Mali implementation of OpenGL ESv2
 Version: 2.0
 Requires:
 Libs: -L${libdir} -lGLESv2 -lGLESv1_CM -lUMP
-Cflags: -I${includedir}/GLES2
+Cflags: -I${includedir}
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 2/2] sunxi-mali: use only -I${includedir} as pkg-config Cflags
  2014-06-01  9:50 ` [Buildroot] [PATCH 2/2] sunxi-mali: " Peter Kümmel
@ 2014-06-01 10:20   ` Yann E. MORIN
  0 siblings, 0 replies; 7+ messages in thread
From: Yann E. MORIN @ 2014-06-01 10:20 UTC (permalink / raw)
  To: buildroot

Peter, All,

On 2014-06-01 11:50 +0200, Peter K?mmel spake thusly:
>     Using only -I${includedir} in common practice.
> 
>     Settings only -I${includedir}/GLES2 breaks Qt5's CMake files,
>     because at configure time CMake only searchs the paths reported
>     by pkg-config, and not even /usr/include is used as default.

Do not indent the commit log, please.

Also, I'd add the same blurb as for ti-gfx. BTW, adding this blurb would
clarify Peter's cncern about the change.

> Signed-off-by: Peter K?mmel <syntheticpp@gmx.net>

With the blurb added:
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
>  package/sunxi-mali/egl.pc    |    2 +-
>  package/sunxi-mali/glesv2.pc |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/package/sunxi-mali/egl.pc b/package/sunxi-mali/egl.pc
> index b062ad1..2823209 100644
> --- a/package/sunxi-mali/egl.pc
> +++ b/package/sunxi-mali/egl.pc
> @@ -8,5 +8,5 @@ Description: ARM Mali implementation of EGL
>  Version: 1.4
>  Requires:
>  Libs: -L${libdir} -lEGL -lGLESv2 -lUMP
> -Cflags: -I${includedir}/EGL/ -I${includedir}
> +Cflags: -I${includedir}
>  
> diff --git a/package/sunxi-mali/glesv2.pc b/package/sunxi-mali/glesv2.pc
> index 9273678..4702d13 100644
> --- a/package/sunxi-mali/glesv2.pc
> +++ b/package/sunxi-mali/glesv2.pc
> @@ -8,5 +8,5 @@ Description: ARM Mali implementation of OpenGL ESv2
>  Version: 2.0
>  Requires:
>  Libs: -L${libdir} -lGLESv2 -lGLESv1_CM -lUMP
> -Cflags: -I${includedir}/GLES2
> +Cflags: -I${includedir}
>  
> -- 
> 1.7.10.4
> 

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 2/2] sunxi-mali: use only -I${includedir} as pkg-config Cflags
  2014-06-01 10:18 ` [Buildroot] [PATCH 2/2] sunxi-mali: " Peter Kümmel
@ 2014-06-03  4:54   ` Peter Kümmel
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Kümmel @ 2014-06-03  4:54 UTC (permalink / raw)
  To: buildroot

Any reason why this is not committed?

On 01.06.2014 12:18, Peter K?mmel wrote:
> Using only -I${includedir} in common practice.
>
> Settings only -I${includedir}/GLES2 breaks Qt5's CMake files,
> because at configure time CMake only searchs the paths reported
> by pkg-config, and not even /usr/include is used as default.
>
> Even though pkg-config strips out standard include path, that's not
> the case with pkgconf (which we are using) in cross-compilation,
> which correctly reports the /usr/include dir prefixed with the
> sysroot.
>
> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Signed-off-by: Peter K?mmel <syntheticpp@gmx.net>
> ---
>   package/sunxi-mali/egl.pc    |    2 +-
>   package/sunxi-mali/glesv2.pc |    2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/package/sunxi-mali/egl.pc b/package/sunxi-mali/egl.pc
> index b062ad1..2823209 100644
> --- a/package/sunxi-mali/egl.pc
> +++ b/package/sunxi-mali/egl.pc
> @@ -8,5 +8,5 @@ Description: ARM Mali implementation of EGL
>   Version: 1.4
>   Requires:
>   Libs: -L${libdir} -lEGL -lGLESv2 -lUMP
> -Cflags: -I${includedir}/EGL/ -I${includedir}
> +Cflags: -I${includedir}
>
> diff --git a/package/sunxi-mali/glesv2.pc b/package/sunxi-mali/glesv2.pc
> index 9273678..4702d13 100644
> --- a/package/sunxi-mali/glesv2.pc
> +++ b/package/sunxi-mali/glesv2.pc
> @@ -8,5 +8,5 @@ Description: ARM Mali implementation of OpenGL ESv2
>   Version: 2.0
>   Requires:
>   Libs: -L${libdir} -lGLESv2 -lGLESv1_CM -lUMP
> -Cflags: -I${includedir}/GLES2
> +Cflags: -I${includedir}
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 1/2] ti-gfx: use only -I${includedir} as pkg-config Cflags
  2014-06-01 10:18 [Buildroot] [PATCH 1/2] ti-gfx: use only -I${includedir} as pkg-config Cflags Peter Kümmel
  2014-06-01 10:18 ` [Buildroot] [PATCH 2/2] sunxi-mali: " Peter Kümmel
@ 2014-06-03  4:54 ` Peter Kümmel
  2014-06-08 16:53 ` Thomas Petazzoni
  2 siblings, 0 replies; 7+ messages in thread
From: Peter Kümmel @ 2014-06-03  4:54 UTC (permalink / raw)
  To: buildroot

Any reason why this is not committed?

On 01.06.2014 12:18, Peter K?mmel wrote:
> Using only -I${includedir} in common practice.
>
> Settings only -I${includedir}/GLES2 breaks Qt5's CMake files,
> because at configure time CMake only searchs the paths reported
> by pkg-config, and not even /usr/include is used as default.
>
> Even though pkg-config strips out standard include path, that's not
> the case with pkgconf (which we are using) in cross-compilation,
> which correctly reports the /usr/include dir prefixed with the
> sysroot.
>
> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Signed-off-by: Peter K?mmel <syntheticpp@gmx.net>
> ---
>   package/ti-gfx/egl.pc    |    2 +-
>   package/ti-gfx/glesv2.pc |    2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/package/ti-gfx/egl.pc b/package/ti-gfx/egl.pc
> index 223fb04..36ea413 100644
> --- a/package/ti-gfx/egl.pc
> +++ b/package/ti-gfx/egl.pc
> @@ -8,4 +8,4 @@ Description: TI Graphics SDK implementation of EGL
>   Version: 1.9.2188537
>   Requires:
>   Libs: -L${libdir} -lEGL -lGLESv2 -lIMGegl
> -Cflags: -I${includedir}/EGL/ -I${includedir}
> +Cflags: -I${includedir}
> diff --git a/package/ti-gfx/glesv2.pc b/package/ti-gfx/glesv2.pc
> index 4c70aec..b458133 100644
> --- a/package/ti-gfx/glesv2.pc
> +++ b/package/ti-gfx/glesv2.pc
> @@ -8,4 +8,4 @@ Description: TI Graphics SDK implementation of OpenGL ESv2
>   Version: 1.9.2188537
>   Requires:
>   Libs: -L${libdir} -lGLESv2 -lGLES_CM -lsrv_um -lusc -lEGL -lIMGegl
> -Cflags: -I${includedir}/GLES2
> +Cflags: -I${includedir}
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 1/2] ti-gfx: use only -I${includedir} as pkg-config Cflags
  2014-06-01 10:18 [Buildroot] [PATCH 1/2] ti-gfx: use only -I${includedir} as pkg-config Cflags Peter Kümmel
  2014-06-01 10:18 ` [Buildroot] [PATCH 2/2] sunxi-mali: " Peter Kümmel
  2014-06-03  4:54 ` [Buildroot] [PATCH 1/2] ti-gfx: " Peter Kümmel
@ 2014-06-08 16:53 ` Thomas Petazzoni
  2 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2014-06-08 16:53 UTC (permalink / raw)
  To: buildroot

Dear Peter K?mmel,

On Sun,  1 Jun 2014 12:18:27 +0200, Peter K?mmel wrote:
> Using only -I${includedir} in common practice.
> 
> Settings only -I${includedir}/GLES2 breaks Qt5's CMake files,
> because at configure time CMake only searchs the paths reported
> by pkg-config, and not even /usr/include is used as default.
> 
> Even though pkg-config strips out standard include path, that's not
> the case with pkgconf (which we are using) in cross-compilation,
> which correctly reports the /usr/include dir prefixed with the
> sysroot.
> 
> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Signed-off-by: Peter K?mmel <syntheticpp@gmx.net>

Both patches applied, thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-08 16:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-01 10:18 [Buildroot] [PATCH 1/2] ti-gfx: use only -I${includedir} as pkg-config Cflags Peter Kümmel
2014-06-01 10:18 ` [Buildroot] [PATCH 2/2] sunxi-mali: " Peter Kümmel
2014-06-03  4:54   ` Peter Kümmel
2014-06-03  4:54 ` [Buildroot] [PATCH 1/2] ti-gfx: " Peter Kümmel
2014-06-08 16:53 ` Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2014-06-01  9:50 Peter Kümmel
2014-06-01  9:50 ` [Buildroot] [PATCH 2/2] sunxi-mali: " Peter Kümmel
2014-06-01 10:20   ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox