admin 管理员组文章数量: 1086019
I need to configure geos dependency in a meson project. geos provide a geos-config
program, but doesn't provide pkg-config file in rocky linux.
According to the documentation, meson dependency
function provide a method
argument which can be config-tool
.
I have tried
geos_dep = dependency('geos', method: 'config-tool')
But that doesn't work:
Run-time dependency geos found: NO
Nothing more in meson-log.txt
I need to configure geos dependency in a meson project. geos provide a geos-config
program, but doesn't provide pkg-config file in rocky linux.
According to the documentation, meson dependency
function provide a method
argument which can be config-tool
.
I have tried
geos_dep = dependency('geos', method: 'config-tool')
But that doesn't work:
Run-time dependency geos found: NO
Nothing more in meson-log.txt
1 Answer
Reset to default 0config-tool
is used by a hardcoded list of supported tools: https://mesonbuild/Dependencies.html#dependencies-with-custom-lookup-functionality
So you will have to manually use the tool with run_command()
and parse its output.
You could also request/add this tool to meson itself.
本文标签: How to find dependency with configtool method in mesonbuildStack Overflow
版权声明:本文标题:How to find dependency with config-tool method in meson-build? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744090447a2531934.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论