Closed rayvburn closed 2 years ago
Seems that devel/lib
gets added to LD_LIBRARY_PATH
(https://github.com/ros-simulation/gazebo_ros_pkgs/pull/923) and this is where libhubero_gazebo_actor.so
would be exported normally, without:
set_target_properties(${ACTOR_PLUGIN_LIB_NAME} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib
)
in hubero_gazebo/CMakeLists.txt
. Deletion of additional target properties would allow to maintain current hubero_bringup_gazebo_ros/CMakeLists.txt
.
This error happens when
hubero_bringup_gazebo_ros/CMakeLists.txt
tries to findhubero_gazebo
package:Build error descrption:
In fact
libhubero_gazebo_actor.so
is generated, but is located insrc/hubero/hubero_gazebo/lib
directory. The problem is that I could not manage to add this directory tohubero_gazebo_LIBRARY_DIRS
.I've tried to put into
hubero_gazebo/CMakeLists.txt
:and then in
hubero_bringup_gazebo_ros/CMakeLists.txt
:and
hubero_bringup_gazebo_ros/package.xml
:did not help.
Note that
.so
file path relative to package src is needed to extendGAZEBO_PLUGIN_PATH
env variable. So it's not handy to export the library somewhere intodevel/.private/...
.Possible workaround: PAL, for example, do not place any packages to be found in CMakeLists example. Then, there is no need to find libraries, but lack of any package is detected when trying to launch an executable.