-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vulkan-validationlayers] Fix discovery of libVkLayer_khronos_validation #19606
[vulkan-validationlayers] Fix discovery of libVkLayer_khronos_validation #19606
Conversation
* Add libdirs to the runtime lib discovery path to enable libVlLayer_khronos_validation.{so,dll,dylib} to be discovered appropriately at runtime. This package exports both a static library and a shared library, of which, only the static library should be linked against. The shared library is loaded dynamically by vulkan-loader, and still needs to be discoverable. Because this is not a shared library, these paths are not exported automatically and therefore are required to be explicitly set. Closes conan-io#19605
// cc @ericLemanissier @SpaceIm |
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit 9353b84vulkan-validationlayers/1.3.239.0@#27caa1728c64d78e642a3a14eb92453c
vulkan-validationlayers/1.3.236.0@#1e3692580ab87d25eb3fb49835d65cca
|
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit 0091dbevulkan-validationlayers/1.3.239.0@#3262f83f79381c7f3b170f6afe604069
vulkan-validationlayers/1.3.236.0@#32fc5b2d87b522dad4e5db2c250399f9
|
@RubenRBS how's this one going? Last update you provided you were going to check with the team that this was the best way forward |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your patience. After looking into it with the team, we've seen that while Conan lacks some built-in support for cases like these (See conan-io/conan#15216 for tracking), this PR is correct :)
IMO, since the See also #21495. The static utility library together with its headers has been removed in the latest versions and only the runtime one remains. |
This comment has been minimized.
This comment has been minimized.
A couple of points:
|
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit 836f103vulkan-validationlayers/1.3.239.0@#badb48246ad9137d129e1ca51cd51fba
vulkan-validationlayers/1.3.236.0@#57c74f0cd23ae14df0b425d1f0c2db15
|
This comment has been minimized.
This comment has been minimized.
@RubenRBS @franramirez688 could either of you trigger a build of the necessary |
I triggered the build this morning, it's progressing nicely now, I'll relaunch the PR once it's done, thanks a lot for your patience |
Conan v1 pipeline ✔️All green in build 7 (
Conan v2 pipeline ✔️
All green in build 6 (
|
Sorry that it took so long to get this merged after approval, my bad on that one, thanks a lot for your patience :) |
…r_khronos_validation * [vulkan-validationlayers] Fix discovery of libVkLayer_khronos_validation * Add libdirs to the runtime lib discovery path to enable libVlLayer_khronos_validation.{so,dll,dylib} to be discovered appropriately at runtime. This package exports both a static library and a shared library, of which, only the static library should be linked against. The shared library is loaded dynamically by vulkan-loader, and still needs to be discoverable. Because this is not a shared library, these paths are not exported automatically and therefore are required to be explicitly set. Closes conan-io#19605 * Remove notification of runtime_lib_discovery_path update Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com> --------- Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com> Co-authored-by: Rubén Rincón Blanco <rubenrb@jfrog.com>
Please read #19605 for a full description of the bug this PR solves
Add libdirs to the runtime lib discovery path to enable
libVlLayer_khronos_validation.{so,dll,dylib}
to be discovered appropriately at runtime. This package exports both a static library and a shared library, of which, only the static library should be linked against. The shared library is loaded dynamically by vulkan-loader, and still needs to be discoverable. Because this is not a shared library, these paths are not exported automatically and therefore are required to be explicitly set.I felt that option 1 was the most desirable solution here because:
package_type="shared-library"
would have, and potential complications when people actually want to use this only as the static library that it is. Particularly as this relates to the difference in package_id implicationsrun=True
in therequires()
callAdditional discussion available in https://cpplang.slack.com/archives/C41CWV9HA/p1693906666122339
Closes #19605