Could not find a package configuration file provided by “pcl_conversions“ ...Problem solved

question:

-- Could NOT find pcl_conversions (missing: pcl_conversions_DIR)
-- Could not find the required component 'pcl_conversions'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "pcl_conversions"
  with any of the following names:

    pcl_conversionsConfig.cmake
    pcl_conversions-config.cmake

  Add the installation prefix of "pcl_conversions" to CMAKE_PREFIX_PATH or
  set "pcl_conversions_DIR" to a directory containing one of the above files.
  If "pcl_conversions" provides a separate development package or SDK, be
  sure it has been installed.

 

reason:

If some packages are missing, just install some packages.

Solution:

Execute the following command in the terminal:

sudo apt-get install libvtk6-jni
sudo apt-get install libvtk6-java
sudo apt-get install libvtk6-dev
sudo apt-get install libvtk6-qt-dev
sudo apt-get install libpcl-dev
sudo apt-get install ros-melodic-pcl-conversions
sudo apt-get install ros-melodic-pcl-ros
sudo apt-get install ros-melodic-navigation

Note: The above is for melodic of ubuntu18.04 version. If it is other versions of ros, just replace melodic with other versions.

Guess you like

Origin blog.csdn.net/qq_49959714/article/details/129097332