遇到dpkg-shlibdeps: error: no dependency information found for,找不到依赖的问题。
解决方法:
在debian/rules中修改内容如下,加入 --dpkg-shlibdeps-params=--ignore-missing-info
修改前:
override_dh_shlibdeps:
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree that was dropped by catkin, and source it. It will
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/melodic/setup.sh" ]; then . "/opt/ros/melodic/setup.sh"; fi && \
dh_shlibdeps -l$(CURDIR)/debian/ros-melodic-lidar-nodelet//opt/ros/melodic/lib/
修改后
override_dh_shlibdeps:
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree that was dropped by catkin, and source it. It will
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/melodic/setup.sh" ]; then . "/opt/ros/melodic/setup.sh"; fi && \
dh_shlibdeps - - dpkg-shlibdeps-params= - - ignore-missing-info -l$(CURDIR)/debian/ros-melodic-lidar-nodelet//opt/ros/melodic/lib/