Closed SkyWhiteEagle closed 10 months ago
It is a known Conan bug: https://github.com/conan-io/conan/issues/7192
Note that libzip::zip
is a private dependency of Celix::utils
.
We also encountered this in Celix, so a workaround is adopted: https://github.com/apache/celix/blob/master/conanfile.py#L424-L428 This workaround only ignores this particular link time error. At runtime, dynamic loader should be able to find all dependencies.
I'll close it now. If the issue remains, feel free to reopen it.
Thanks, not sure where GitHub notifications are going.
I think I'll keep the explicit link workaround for now since I understand it better. I looked around the documents file, seeing if I could add note just to find I had missed the already existing section. Sorry.
Hi,
I am trying to make a project using Celix. I am using Conan V2 and CMake to build the project.
I locally exported the Conan recipe from the master branch (e1d7fc1b544bc2c43cbcdb6b76f1b66fffccad96, as far as I can tell, the previous release is not Conan V2 compatible) and required it in my consumer recipe. I set the following options:
I have the following generators:
In my CMake I have:
Running CMake, I get the warning following warning, but the build files are written nonetheless.
I then proceed to build and get
warning: libzip.so.5, needed by
followed by undefined from libzip.Manually adding the following to the CMake fixes the issue:
I don't think this is the intended behavior, is there maybe a way for the Celix recipe or helper function to add the missing link?