ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Error while installing package "cob_read_text".

asked 2015-03-17 04:51:44 -0500

Kishore Kumar gravatar image

updated 2015-03-17 04:58:01 -0500

gvdhoorn gravatar image

I am working on character recognition. I cloned the package in src folder in my catkin_ws using the following code git clone https://github.com/ipa320/cob_object_perception.git the cloning is perfect but once i try to build the workspace using catkin_make i am getting following error

CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
  Could not find a configuration file for package cob_vision_utils.

  Set cob_vision_utils_DIR to the directory containing a CMake configuration
  file for cob_vision_utils.  The file will have one of the following names:

  cob_vision_utilsConfig.cmake
  cob_vision_utils-config.cmake

Call Stack (most recent call first):
  cob_object_perception/cob_fiducials/CMakeLists.txt:28 (find_package)


CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
  Could not find a configuration file for package cmake_modules.

  Set cmake_modules_DIR to the directory containing a CMake configuration
  file for cmake_modules.  The file will have one of the following names:

  cmake_modulesConfig.cmake
  cmake_modules-config.cmake

Call Stack (most recent call first):
  cob_object_perception/cob_fiducials/CMakeLists.txt:28 (find_package)


CMake Error at cob_object_perception/cob_fiducials/CMakeLists.txt:33 (find_package):
  Could not find module FindTinyXML.cmake or a configuration file for package
  TinyXML.

  Adjust CMAKE_MODULE_PATH to find FindTinyXML.cmake or set TinyXML_DIR to
  the directory containing a CMake configuration file for TinyXML.  The file
  will have one of the following names:

 TinyXMLConfig.cmake
 tinyxml-config.cmake



CMake Error at /opt/ros/hydro/share/catkin/cmake/catkin_package.cmake:156 (message):
  catkin_package() DEPENDS on 'TinyXML' which must be find_package()-ed
  before.  If it is a catkin package it can be declared as CATKIN_DEPENDS
  instead without find_package()-ing it.
Call Stack (most recent call first):
  /opt/ros/hydro/share/catkin/cmake/catkin_package.cmake:98 (_catkin_package)
  cob_object_perception/cob_fiducials/CMakeLists.txt:46 (catkin_package)


-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
user@ubuntu:~/catkin_ws$ roslaunch cob_read_text
[cob_read_text] is not a launch file name
user@ubuntu:~/catkin_ws$ roscd
user@ubuntu:~/catkin_ws/devel$ roslaunch cob_read_text
[cob_read_text] is not a launch file name
user@ubuntu:~/catkin_ws/devel$ ^C
user@ubuntu:~/catkin_ws/devel$

Request you to help me to get through this

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-03-17 05:04:08 -0500

gvdhoorn gravatar image

updated 2015-03-17 05:10:42 -0500

Cloning isn't enough, you'll have to make sure you have all other dependencies installed as well.

You can use something like rosdep check --from-paths /path/to/catkin_ws/src --ignore-src to check, and rosdep install .. to actually install all missing dependencies.

Also: make sure you have the correct branch checked out in your workspace. The cob_object_perception repository has branches for Electric, Fuerte, Groovy, Hydro and Indigo.

PS: in general, you'll want to first check and see whether a package has been released, as installing it using apt-get is much easier than building from source. Only if it hasn't been released, clone the repository.

PPS: This has also been asked many times before and is essentially a CMake / Linux dependency management issue. The fact you can use tools like rosdep to make this a little easier does not make this a ROS issue.


Edit:

user@ubuntu:~/catkin_ws$ roslaunch cob_read_text

Why would you attempt this if it is clear that the package hasn't been built successfully?

Also: after building the workspace, you'll have to first do a source /path/to/catkin_ws/deve/setup.bash before you can use the packages. Do this in a new terminal.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-03-17 04:51:44 -0500

Seen: 451 times

Last updated: Mar 17 '15