Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ROS - Compilation fails due to Bzip2 libraries

I'm trying to compile a package using Ros Indigo. I'm using a Raspberry Pi running Raspbian. The BZIP2_LIBRARIES BZIP2_INCLUDE_DIR are missing. When I run the make command, I get the following error:

-- +++ 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

How can I add these libraries?

like image 339
UserK Avatar asked Dec 03 '22 16:12

UserK


2 Answers

You need to install libbz2-dev, it should contain the header files required to compile your package.

like image 182
Dr. Snoopy Avatar answered Dec 11 '22 11:12

Dr. Snoopy


For Ubuntu, use:

sudo apt-get install libbz2-dev
like image 30
Diego Mariano Avatar answered Dec 11 '22 11:12

Diego Mariano