|
My first usage of meson in a long long time. I am trying to build libxkbcommon, either v1.3.1 or the latest v1.13.2, on an old macos 10.13. Meson latest v1.11.2. libxml2 is installed: but not matter which version of libxkbcommon I try to build it always end as follows: also: Logfile reports: For some reason Perhaps a missing option to Thanks. |
Replies: 2 comments 7 replies
This original question was correct. It is the absence of libxml-2.0.pc that is the problem.
This is entirely normal. That variable refers to "additional directories to augment the builtin system locations", and homewbrew etc often augment that variable.
The compiler is totally uninvolved in looking up dependencies. |
|
This works no different from e.g. autotools as well. If you want to build software against other software, you need the other software to be available, both as runtime dylibs and as development headers / pkgconfig files. On macOS, typically the former will be installed but not the latter. This is because... macOS isn't really intended to be a developer platform, the libraries that ship with the OS are intended just for the OS itself to use. That is basically why homebrew exists... so you can install developer libraries via homebrew and build all your software against homebrew instead of against the macOS system libraries. Same basic logic applies to macports, etc. Attempting to build software without using homebrew is... challenging. |
No the extra search procedure is specific to libraries found via the
-Fand-frameworkcompiler options that are available on macOS; it's not for any path.