У меня есть этот meson.build
deps = []
files = []
includes = []
deps += dependency('zlib', fallback: ['zlib', 'zlib_dep'])
executable('p0', 'src/main.cc',
files, include_directories: includes, dependencies: deps, install: true)
при запуске meson build
выдает следующую ошибку:
Using zlib from cache.
Using zlib-1.2.11-4-wrap.zip from cache.
Executing subproject zlib.
Project name: zlib
Native C compiler: cc (gcc 7.4.0 "cc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0")
Compiler for C supports arguments -Wno-implicit-fallthrough -Wno-implicit-function-declaration: YES
Also couldn't find a fallback subproject in subprojects/zlib for the dependency zlib
Reason: Pkgconfig_gen takes no positional arguments.
Dependency zlib not found but it is available in a sub-subproject.
To use it in the current project, promote it by going in the project source
root and issuing the following command.
meson wrap promote subprojects/zlib.wrap
meson.build:68:0: ERROR: Native dependency 'zlib' not found
Я загружаю zlib.wrap
со следующей страницы: https://wrapdb.mesonbuild.com/zlib
В корневом каталоге проекта p0
при запуске meson wrap promote subprojects/zlib.wrap
Я получаю следующую ошибку:
Subproject zlib.wrap not found in directory tree.