Closed marek22k closed 9 months ago
It is fine to ask here, no problem. We do not provide a .pc
file for the project which is probably why you can't use pkg-config
.
Workaround / Alternative when using meson: https://github.com/mesonbuild/meson/issues/7281#issuecomment-932887170
cpp_compiler = meson.get_compiler('cpp')
libtuntap_dep = dependency('libtuntap', required: false)
if not libtuntap_dep.found()
libtuntap_dep = cpp_compiler.find_library('libtuntap', has_headers: ['tuntap.h'], required: true)
endif
It would still be best to actually provide a pkg-config file. Using find_library is a hack to work around the lack of one, but it is not as flexible.
Hello,
I would like to use libtuntap in my program. I use Meson, which in turn uses cmake and pkg-config to search for libraries. I have now built and installed libtuntap:
But when I try to find the library with pkg-config, it doesn't work.
pkg-config --list-all | grep tuntap
returns nothing.Is there a mistake on my part? Is there a way to use the library with pkg-config?
I hope it's ok if I ask here.