In this package, osqp_vendor_TARGETS is set to osqp, which I think is never properly defined
Example:
remove dependency to osqp_vendor in autoware osqp_interface package.xml
add find_package(osqp_vendor REQUIRED) before the find_package(osqp REQUIRED)
These changes are just a trick to prevent amentauto* macros to link ${osqp_vendor_LIBRARIES}
Normally it should compile with no problem, but on my machine I get a link error because -losqp is not found. When looking at the compilation command, I see the link args are incorrect: ... -Wl,-rpath,/opt/ros/humble/lib: -losqp .... I think "rpath" is not correct and I should normally have something like -L/opt/ros/humble/lib -losqp. When it is the case, the library compiles with no problem
In this package,
osqp_vendor_TARGETS
is set toosqp
, which I think is never properly definedExample:
osqp_vendor
in autowareosqp_interface
package.xmlfind_package(osqp_vendor REQUIRED)
before thefind_package(osqp REQUIRED)
These changes are just a trick to prevent amentauto* macros to link${osqp_vendor_LIBRARIES}
target_link_libraries(osqp_interface osqp::osqp)
Normally it should compile with no problem, but on my machine I get a link error because
-losqp
is not found. When looking at the compilation command, I see the link args are incorrect:... -Wl,-rpath,/opt/ros/humble/lib: -losqp ...
. I think "rpath" is not correct and I should normally have something like-L/opt/ros/humble/lib -losqp
. When it is the case, the library compiles with no problem