Ask Your Question


asked 2015-03-13 11:12:48 -0500

zurish gravatar image

Hello all, I was trying to catkin_make "robot_pose_ekf" package I cloned from github and it's CMakeLists.txt is: link text. The output error was:

checking for module 'orocos-bfl'

--   package 'orocos-bfl' not found

CMake Error at /usr/local/Cellar/cmake/3.1.3/share/cmake/Modules/FindPkgConfig.cmake:340 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.1.3/share/cmake/Modules/FindPkgConfig.cmake:502 (_pkg_check_modules_internal)
  CMakeLists.txt:13 (pkg_check_modules)

-- Configuring incomplete, errors occurred!

<== Failed to process package 'robot_pose_ekf':

Then I cloned "orocos-bfl" package from github and when I catkin_make it, the output was:

Packages not found in the workspace: orocos-bfl

Then I followed the following lines to CMakeLists.txt of "robot_pose_ekf" package:

   1 find_package(PkgConfig)
   3 pkg_check_modules(BFL REQUIRED bfl)
   5 message("BFL include dirs:" ${BFL_INCLUDE_DIRS})
   6 message("BFL library dirs:" ${BFL_LIBRARY_DIRS})
   8 include_directories(${BFL_INCLUDE_DIRS})
   9 link_directories(${BFL_LIBRARY_DIRS})
  11 [..]
  13 # for every target using BFL:
  14 target_link_libraries(your_executable ${BFL_LIBRARIES})

In the original CMakeLists.txt there is a line:

pkg_check_modules(BFL REQUIRED orocos-bfl)

and I just substituted is orocos-bfl with bfl as suggested and insert rest of above lines. The result was, this did not work, output was:

package 'bfl' not found

which is installed already and can be found by rospack:

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-03-13 12:29:58 -0500

demmeln gravatar image

updated 2015-03-13 12:56:23 -0500

orocos-bfl is not a catkin package but a plain cmake package. The package 'bfl' not found comes from cmake / pkgconfig, not catkin.

You cannot build orocos-bfl with caktin_make. Either use catkin_make_isolated or catkin build in the same workspace as robot_pose_ekf, or first build orocos-bfl in an underlying workspace (with catkin_make_isolated or catkin_build) and then build robot_pose_ekf ontop of that in a separate workspace using catkin_make.


The following works for me:

rosinstall_generator robot_pose_ekf --tar --wet-only --rosdistro indigo --deps > robot_pose_ekf.rosinstall
wstool init -j8 src robot_pose_ekf.rosinstall 

as does with catkin build instead of src/catkin/bin/catkin_make_isolated.

edit flag offensive delete link more


This works for me too. Thanks a lot and I think I learnt a lot from you!

zurish gravatar image zurish  ( 2015-03-13 14:23:10 -0500 )edit

Good to know. Happy hacking :-).

demmeln gravatar image demmeln  ( 2015-03-13 14:49:05 -0500 )edit

answered 2017-01-24 23:44:22 -0500

howardcochran gravatar image

Update: If using ROS-kinetic, you can just apt-get install ros-kinetic-bfl. This must be present to compile the navigation stack (move_base).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-03-13 11:12:48 -0500

Seen: 5,138 times

Last updated: Jan 24 '17