conan, pkg-config(pkg_config), meson can't find .pc files for fruit package #11565
roninracer
started this conversation in
General
Replies: 1 comment 4 replies
-
Inside build_dir (seems to be the directory which is passed as the builddir to meson?) there should be a meson-logs/meson-log.txt file (the error message would print out the path) that contains a few more details on the failure, such as the exact failing pkg-config invocation and possibly some stderr as well. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, we're using meson version 0.63 as our build system and conan 1.55 for package management.
We were successfully able to get meson to "see" the gtest package that conan pulled in, from jfrog artifactory, but attempts at getting the fruit dependency injection package to be seen has not worked.
In both the case for gtest and fruit, conan's pkg_config generator produces the .pc files in the same area.
So why would it be that meson can't find the fruit.pc file when it can find the gtest.pc file?
Found pkg-config: /usr/bin/pkg-config (1.4.2) Found CMake: /usr/bin/cmake (3.20.2) Run-time dependency fruit found: NO (tried pkgconfig and cmake) ../src/meson.build:14:0: ERROR: Dependency "fruit" not found, tried pkgconfig and cmake/
I have tried to explicitly add the folder as a passed in ENV variable via the recommended method using conan as well as specifying the directory in the meson config:
But these didn't have the expected effect. If I remove the line specifying the fruit dependency (shown here):
the other executable I'm building that requires gtest pulls gtest in just fine using this line:
I know my setup might be a little odd but it's strange one works but the other doesn't.
Any help would be appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions