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 bfl-ROS.wiki the following lines to CMakeLists.txt of "robot_pose_ekf" package:
1 find_package(PkgConfig)
2
3 pkg_check_modules(BFL REQUIRED bfl)
4
5 message("BFL include dirs:" ${BFL_INCLUDE_DIRS})
6 message("BFL library dirs:" ${BFL_LIBRARY_DIRS})
7
8 include_directories(${BFL_INCLUDE_DIRS})
9 link_directories(${BFL_LIBRARY_DIRS})
10
11 [..]
12
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:
/Users/hxin1/ros_catkin_ws/src/bfl-release-release-indigo-bfl-0.7.0-6
Originally posted by zurish on ROS Answers with karma: 25 on 2015-03-13
Post score: 1