mesonbuild / meson

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

meson doesn't recognize custom harfbuzz 10.1.0 build #13959

Open lucebac opened 19 hours ago

lucebac commented 19 hours ago

Describe the bug Hi all! I'm currently (unsuccessfully) trying to build freetype with harfbuzz enabled. The chain of compilation, because of a circular dependency, is said to be as follow: 1) freetype without harfbuzz support 2) harfbuzz with freetype from (1) 3) freetype with harfbuzz from (2)

This should result in a freetype build which is linked to harfbuzz with freetype support enabled. However, I'm stuck at step 3 because meson doesn't recognize the harfbuzz build from (2) - at least not fully. According to the build output after a lot of fiddling around with --cmake-prefix-path and --pkg-config-path, harfbuzz is generally detected but meson is unable to retrieve the version.

I'm trying to build freetype-2.13.3 with harfbuzz 10.1.0, both of which from their official source releases of the given versions (links below).

To Reproduce 1) Grab the releases of freetype and harfbuzz:

Since I don't know how meson determines the validity of project dependencies, I'm utterly confused by this. Because apparently, if I compile harfbuzz manually, meson doesn't recognize it. However, if I use harfbuzz via the wrap file, meson is able to correctly identify harfbuzz despite being the same version that I used manually.

Expected behavior Meson correctly identifies harfbuzz if built customly.

system parameters

eli-schwartz commented 17 hours ago

At stage four, I assume failure to recognize means meson errors out. It should print the log file containing debug details -- can you post that for inspection?