我需要使用 GTK 4 库来创建我的程序的 GUI,我需要将其包含在 Microsoft Visual Studio C++ 项目中。
我使用 Windows 10 64 位。
所以在网上查了一下,我唯一发现的那个我的特罗卡托就是这个。
我执行了指南中描述的所有步骤:
确实执行命令后:
meson setup build --prefix C:/gnome
.
我发现有些库还没有找到,作为某些结果的值我得到NO(我不知道这是否正常),并且我在最后得到以下错误:
modules\media\meson.build:42:16: ERROR: Dependency lookup for gstreamer-player-1.0 with method 'pkgconfig' failed: Pkg-config binary for machine 1 not found. Giving up.
我将所有输出放入this文本文件中。
我尝试多次重新执行所有步骤,但仍然遇到相同的错误,我也尝试继续执行相同的操作,然后运行命令:
meson compile -C build
,但出现以下错误:
C:\src\gtk>meson compile -C build
ERROR: Current directory is not a meson build directory: `C:\src\gtk\build`.
Please specify a valid build dir or change the working directory to it.
It is also possible that the build directory was generated with an old
meson version. Please regenerate it in this case.
正如错误消息所示,您需要 Pkg-config 二进制文件作为依赖项。检查这个答案。