Open donlk opened 2 weeks ago
Another relvevant issue: https://github.com/pkgconf/pkgconf/issues/213
Hi @donlk
Thanks a lot for reporting this! Yes, you're completely right. A way to work around this could be:
sys_root
Meson property:$ conan [YOUR COMMAND] -c "tools.meson.mesontoolchain:extra_machine_files=['/path/to/file/sys_root_empty.ini']"
Where that sys_root_empty.ini
looks like:
[properties]
sys_root = ''
Let me know if it worked or if we need to look into it more.
What is your question?
Hi! I'm trying to build Qt with a prebuilt GCC compiler, having an external sysroot containing libc and relevant libraries (pthread, libm, libdl, etc), meaning that the toolchain itself does not have these libraries inside.
So I defined a toolchain profile with a sysroot:
So far every dependency built successfully, except freetype:
The problem is this line (replaced the hard-coded paths with a reference):
The sysroot path is directly prepended to all dependent includes, zlib included, making the zlib header lookup messed up. I've done some research and found a relevant official meson issue. It says:
Here's the pc file for zlib:
build-release/conan/zlib.pc
:I've tried nullifying the
PKG_CONFIG_SYSROOT_DIR
variable via [buildenv] in my profile to force pkgconfig to disregard it, to no avail. Any ideas? This is a very basic cross-compile issue for conan -> meson, it should be straightforward.Have you read the CONTRIBUTING guide?