ROS - 由于 Bzip2 库导致编译失败
ROS - Compilation fails due to Bzip2 libraries
我正在尝试使用 Ros Indigo 编译一个包。我正在使用 Raspberry Pi 运行ning Raspbian。 BZIP2_LIBRARIES BZIP2_INCLUDE_DIR 不见了。当我 运行 make 命令时,出现以下错误:
-- +++ processing catkin package: 'rosbag_storage'
-- ==> add_subdirectory(ros_comm/rosbag_storage)
-- Boost version: 1.49.0
-- Found the following Boost libraries:
-- date_time
-- filesystem
-- program_options
-- regex CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindBZip2.cmake:47 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) ros_comm/rosbag_storage/CMakeLists.txt:8 (find_package)
-- Configuring incomplete, errors occurred! Invoking "cmake" failed
如何添加这些库?
您需要安装 libbz2-dev,它应该包含编译您的包所需的头文件。
对于Ubuntu,使用:
sudo apt-get install libbz2-dev
我正在尝试使用 Ros Indigo 编译一个包。我正在使用 Raspberry Pi 运行ning Raspbian。 BZIP2_LIBRARIES BZIP2_INCLUDE_DIR 不见了。当我 运行 make 命令时,出现以下错误:
-- +++ processing catkin package: 'rosbag_storage'
-- ==> add_subdirectory(ros_comm/rosbag_storage)
-- Boost version: 1.49.0
-- Found the following Boost libraries:
-- date_time
-- filesystem
-- program_options
-- regex CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindBZip2.cmake:47 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) ros_comm/rosbag_storage/CMakeLists.txt:8 (find_package)
-- Configuring incomplete, errors occurred! Invoking "cmake" failed
如何添加这些库?
您需要安装 libbz2-dev,它应该包含编译您的包所需的头文件。
对于Ubuntu,使用:
sudo apt-get install libbz2-dev