From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?UGV0ZXIgS8O8bW1lbA==?= Date: Sat, 31 May 2014 06:34:18 +0200 Subject: [Buildroot] [PATCH 1/1] ti-gfx: pkg-config should also set parent include dir In-Reply-To: <87ha476j19.fsf@dell.be.48ers.dk> References: <1401462022-10744-1-git-send-email-syntheticpp@gmx.net> <5388A9DC.1010204@gmx.net> <20140530222718.5cb42dd5@free-electrons.com> <5388ECDC.6050909@gmx.net> <8761kn7zw8.fsf@dell.be.48ers.dk> <5388F853.1020406@gmx.net> <87ha476j19.fsf@dell.be.48ers.dk> Message-ID: <53895BCA.8020900@gmx.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 30.05.2014 23:41, Peter Korsgaard wrote: >>>>>> "Peter" == Peter K?mmel 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 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