Repository navigation
Conversation
osqp_vendor appended the plain name osqp to osqp_vendor_TARGETS. No target with this name exists, because the OSQP package defines osqp::osqp.
ament_target_dependencies() uses only the entries that are targets, so on Humble and Jazzy the wrong name did no harm. ament_cmake_auto on Lyrical links ${osqp_vendor_TARGETS} directly, so CMake passes -losqp to the linker without a library path, and the link fails with "cannot find -losqp".
Signed-off-by: Mete Fatih Cırıt <mfc@autoware.org>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Author
|
@nbbrooks @christianrauch, could you take a look when you have time? It is a one-line fix in |
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cmake/osqp_vendor-extras.cmakeappends the plain nameosqptoosqp_vendor_TARGETS. No target with this name exists. The OSQP package exports its library asosqp::osqp, andosqp_vendoralready loads it throughament_export_dependencies(osqp).On Humble and Jazzy, the wrong name does no harm, because
ament_target_dependencies()uses only the entries that are targets and falls back to the library paths. On Lyrical (ament_cmake2.8.8),ament_auto_depend_on_packages()links${osqp_vendor_TARGETS}directly. A package that depends onosqp_vendorthen passes-losqpto the linker without a library path:This PR exports
osqp::osqpinstead. On Humble and Jazzy,ament_target_dependencies()now takes the target path forosqp_vendor, so consumers also getOSQP_SHARED_LIBand<install>/include/osqpas a system include directory from the target. The link line keeps the full library path.Tests:
osqp_vendorfrom this branch, thenautoware_osqp_interfaceagainst it. The link line holds only<install>/osqp_vendor/lib/libosqp.so, and the 9 tests of that package pass. With the releasedros-lyrical-osqp-vendor1.0.0, the same package fails with the error above.Found while porting Autoware to Lyrical: