[igt-dev] [PATCH i-g-t 1/2] Alter arm64 cross compile pkg-config library selections

Lucas De Marchi lucas.demarchi at intel.com
Mon Oct 18 16:55:37 UTC 2021


On Mon, Oct 18, 2021 at 02:21:34PM +0300, Petri Latvala wrote:
>On Fri, Oct 15, 2021 at 01:32:37PM -0700, Casey Bowman wrote:
>> Specifies to use 'aarch64-linux-gnu-pkg-config' as the
>> pkg-config binary to use, as the normal /usr/bin/pkg-config
>> binary will be used on a host system. If we use this binary
>> we will observe that the shared object libraries will be
>> pulled from the x86_64 libraries instead of the aarch64 ones.
>
>PKG_CONFIG_PATH can also be set accordingly, as is done in
>.gitlab-ci.yml

is this something generally not setup in all distros?  using
arch + -pkg-config matches the documentation at
https://mesonbuild.com/Machine-files.html

Indeed, checking my archlinux installation it seems I don't have a
aarch64-linux-gnu-pkg-config and nothing provides it (even though there
is a aarch64 crosscompiler). It looks like I even mentioned this issue
in the past for another project at https://politreco.com/2019/09/side-load-on-embedded-linux-with-buildroot/

I wonder if we could rather set pkg_config_libdir like mentioned in
https://mesonbuild.com/Cross-compilation.html and be compatible out of
the box with more distros.

>
>>
>> We also specify nouveau here as our libdrm driver library
>> because there is no support for libdrm-intel on arm64 yet.
>
>Why the automatic option doesn't work here? There's no reason to
>limit/enforce everyone to libdrm-nouveau, and only libdrm-nouveau.
>

agreed.

Lucas De Marchi


More information about the igt-dev mailing list