Meson reports failed/mismatched patches and doesn't compile some targets - how could I fix it?

Hi,

after running meson setup --reconfigure builddir I’ve got a lot of similar lines like

opus                       : NO Failed to apply diff file "opus-1.5.1\fixes-from-main-branch.patch"

If I try to find smth related to opus in meson-log.txt, I get these lines

Run-time dependency opus found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency opus
Using opus source from cache.
Applying diff file "opus-1.5.1\fixes-from-main-branch.patch"
patching file `silk/meson.build'
Assertion failed: hunk, file patch.c, line 321
Failed to apply diff file "opus-1.5.1\fixes-from-main-branch.patch"
Subproject  opus is buildable: NO (disabling)
Dependency opus from subproject opus found: NO (subproject failed to configure)

when I manually try to apply this patch, I get smth like

>git apply subprojects\packagefiles\opus-1.5.1\fixes-from-main-branch.patch
error: silk/meson.build: No such file or directory
error: patch failed: meson.build:490
error: meson.build: patch does not apply
error: celt/x86/x86cpu.h: No such file or directory
error: patch failed: meson.build:662
error: meson.build: patch does not apply
error: dnn/meson.build: No such file or directory
error: patch failed: meson.build:146
error: meson.build: patch does not apply
error: patch failed: meson_options.txt:7
error: meson_options.txt: patch does not apply
error: patch failed: tests/meson.build:8
error: tests/meson.build: patch does not apply

Full meson-log.txt is available here

Thus my gstreamer distribution lacks many modules I need to compile. What am I doing wrong?

Windows 11, git 2.45.1.windows.1, meson 1.4.1, VS2017 15.9.63, Python 3.12.4

WMBR, George Hazan.

No ideas?..


WMBR, George Hazan.

Did you follow the set-up instructions for Windows (esp re. git and python) or re-used existing tools/configs?

1 Like

Awww… snap! Seems that I’ve found the root of evil - there was standalone ninja.exe in the PATH, I removed it and replaced with pip3 install ninja - now the configuration looks much better.

Thanks, I’ll continue digging