mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.49k stars 1.59k forks source link

meson.build:1:0: ERROR: Unknown options: "pkg_config_libdir" #10878

Open nassimus-jedi opened 1 year ago

nassimus-jedi commented 1 year ago

During the build of VLC for tizen, (a discontinuted project), I had a first an issue with meson 0.55.1

It was showing :

Running "/home/nas/tizen-studio/tools/arm-linux-gnueabi-gcc-9.2/bin/arm-linux-gnueabi-gcc --sysroot=/home/nas/tizen-studio/platforms/tizen-6.5/mobile/rootstraps/mobile-6.5-device.core --version" returns file not found ... but when I run this on the shell I get : /home/nas/tizen-studio/tools/arm-linux-gnueabi-gcc-9.2/bin/arm-linux-gnueabi-gcc --sysroot=/home/nas/tizen-studio/platforms/tizen-6.5/mobile/rootstraps/mobile-6.5-device.core --version

arm-linux-gnueabi-gcc (Tizen/GNU GCC 9.2.0 2020.02) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I thought maybe it's a bug, so I decided to upgrade meson to 0.63.2

then I run make distclean in the folder to clean the previous build. but now I am having this issue :

Build started at 2022-10-01T19:57:27.680447
Main binary: /usr/bin/python3
Build Options: -Dpkg_config_libdir=/usr/arm-linux-gnueabi/lib/pkgconfig:/usr/lib/arm-linux-gnueabi/pkgconfig -Dpkg_config_path=/mnt/c/Users/cd_bo/StudioProjects/g-vlc-tizen/vlc/contrib/arm-linux-gnueabi/lib/pkgconfig:/usr/share/pkgconfig -Dlibdir=lib -Dglslang=enabled -Dshaderc=disabled -Dprefix=/mnt/c/Users/cd_bo/StudioProjects/g-vlc-tizen/vlc/contrib/arm-linux-gnueabi -Dbackend=ninja -Dbuildtype=debugoptimized -Ddefault_library=static '--cross-file /mnt/c/Users/cd_bo/StudioProjects/g-vlc-tizen/vlc/contrib/contrib-tizen-arm-linux-gnueabi/crossfile.meson'
Python system: Linux
The Meson build system
Version: 0.63.2
Source dir: /mnt/c/Users/cd_bo/StudioProjects/g-vlc-tizen/vlc/contrib/contrib-tizen-arm-linux-gnueabi/libplacebo
Build dir: /mnt/c/Users/cd_bo/StudioProjects/g-vlc-tizen/vlc/contrib/contrib-tizen-arm-linux-gnueabi/libplacebo/build
Build type: cross build

meson.build:1:0: ERROR: Unknown options: "pkg_config_libdir"
eli-schwartz commented 1 year ago

I'm not sure where you got -Dpkg_config_libdir=/usr/arm-linux-gnueabi/lib/pkgconfig:/usr/lib/arm-linux-gnueabi/pkgconfig but pkg_config_libdir is a setting that can be added to a cross file -- it's not an option.

-Dpkg_config_path is a command line option.

...

Either one corresponds to the uppercase environment variable that pkg-config itself uses.

ePirat commented 1 year ago

If anything this does not seem like a meson bug but a VLC contrib system one, so I think this should be closed?