[Buildroot] [PATCH 1/1] ti-gfx: pkg-config should also set parent include dir
Peter Kümmel
syntheticpp at gmx.net
Sat May 31 04:34:18 UTC 2014
On 30.05.2014 23:41, Peter Korsgaard wrote:
>>>>>> "Peter" == Peter Kümmel <syntheticpp at gmx.net> writes:
>
> Hi,
>
> > I don't know if Ubuntu is a reference here, but when you install gles2
> > sudo apt-get install libgles2-mesa-dev
> > and have a look at the.pc file,
> > cat /usr/lib/x86_64-linux-gnu/pkgconfig/glesv2.pc
> > (or gl.pc) you see, that there also the path to the dir containing GLES2 is set:
>
> > prefix=/usr
> > exec_prefix=${prefix}
> > libdir=${prefix}/lib/x86_64-linux-gnu
> > includedir=${prefix}/include
>
> > Name: glesv2
> > Description: Mesa OpenGL ES 2.0 library
> > Requires.private:
> > Version: 9.0.3
> > Libs: -L${libdir} -lGLESv2
> > Libs.private: -lm -lpthread -ldl
> > Cflags: -I${includedir}
>
> And what does pkg-config --cflags glesv2.pc show? pkg-config afaik
> strips -I<standard-include-dir> away.
>
Yes, on the desktop pkg-config --cflags glesv2.pc shows nothing.
But the generated cmake code for desktop Qt5 does not have the
find_package() command which fails when cross-compiling.
(And I don't wanna figure out why the cmake file is different
for the desktop).
The pkg-config used by buildroot lists the path in sysroot.
Anyway, seems Cflags: -I${includedir} is the minimum for all
GL config files.
Peter
More information about the buildroot
mailing list