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

Share Improve this question asked Mar 27 at 12:14 BalaïtousBalaïtous 8966 silver badges9 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

config-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