编译报错pcl_conversions及pcl_rosConfig解决方法

Posted X uuuer.

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了编译报错pcl_conversions及pcl_rosConfig解决方法相关的知识,希望对你有一定的参考价值。

1、报错1

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.
Call Stack (most recent call first):
  uav_simulator/map_generator/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/labh/Fast-Drone-250-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/labh/Fast-Drone-250-master/build/CMakeFiles/CMakeError.log".
Makefile:3932: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

解决方法:

sudo apt-get install ros-melodic-pcl-conversions

2、报错2

CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "pcl_ros" with any
  of the following names:

    pcl_rosConfig.cmake
    pcl_ros-config.cmake

  Add the installation prefix of "pcl_ros" to CMAKE_PREFIX_PATH or set
  "pcl_ros_DIR" to a directory containing one of the above files.  If
  "pcl_ros" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  uav_simulator/local_sensing/CMakeLists.txt:69 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/labh/Fast-Drone-250-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/labh/Fast-Drone-250-master/build/CMakeFiles/CMakeError.log".
Makefile:3932: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

解决方法:

sudo apt-get install ros-melodic-pcl-ros

编译安装mysql5.6.29及安装报错的解决方法

1.安装必要的库文件

yum install -y gcc*


2.yum安装camke

yum install -y cmake

编译安装cmake

cd /usr/local/src

wget http://www.cmake.org/files/v2.8/cmake-2.8.7.tar.gz

tar zxvf cmake-2.8.7.tar.gz

cd cmake-2.8.7

./configure

make

make install


3.安装 MYSQL

cd /usr/local/src

wget http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.29.tar.gz

groupadd mysql

useradd -g mysql -M -s /sbin/nologin mysql

tar zxf mysql-5.6.29.tar.gz

cd mysql-5.6.29

cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/data/mysql -DDEFAULT_CHARSET=utf8  -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS:STRING=all -DWITH_DEBUG=0 -DWITH_SSL=yes -DWITH_READLINE=1 -DENABLED_LOCAL_INFILE=1

make && make install

cd /usr/local/mysql 

chown -R mysql:mysql  /usr/local/mysql 

./scripts/mysql_install_db --user=mysql  -datadir=/data/mysql

cp support-files/my-default.cnf /etc/my.cnf

cp support-files/mysql.server /etc/init.d/mysqld

bin/mysqld_safe --user=mysql &

/etc/init.d/mysqld start


错误1:

-- Could NOT find Git (missing:  GIT_EXECUTABLE)
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

解决:

-- Could NOT find Git (missing:  GIT_EXECUTABLE)这项应该缺少git包,yum install -y git

-- The C compiler identification is unknown

-- The CXX compiler identification is unknown 这两项缺少gcc和gcc-c++的包,yum install -y gcc gcc-c++


错误2:

-- Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH)
CMake Error at cmake/readline.cmake:85 (MESSAGE):
  Curses library not found.  Please install appropriate package,
      remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.
Call Stack (most recent call first):
  cmake/readline.cmake:128 (FIND_CURSES)
  cmake/readline.cmake:202 (MYSQL_USE_BUNDLED_EDITLINE)
  CMakeLists.txt:409 (MYSQL_CHECK_EDITLINE)
-- Configuring incomplete, errors occurred!

解决:

-- Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH)

缺少ncurses-devel包,yum install -y ncurses-devel

删除CMakeCache.txt

file=find / -name CMakeCache.txt 

rm -f $file


错误3:

Warning: Bison executable not found in PATH

解决

Warning: Bison executable not found in PATH  缺少Bison,yum install -y bison

以上是关于编译报错pcl_conversions及pcl_rosConfig解决方法的主要内容,如果未能解决你的问题,请参考以下文章

mysql5.5 免编译安装及脚本启动报错深入

关于Code Blocks无编译器版本及VC6.0插入打开报错

问题排查低版本内核驱动移植到高版本内核中编译报错,部分编译异常记录及解决

问题排查低版本内核驱动移植到高版本内核中编译报错,部分编译异常记录及解决

vue-echarts的使用及编译报错解决方法

DRBD简介 安装编译报错解决 DRBD的配置初始化及同步