Ask Your Question
0

ROS Hydro source install cmake build error at Ubuntu 14.04

asked 2014-10-04 20:07:28 -0500

updated 2014-11-17 10:27:39 -0500

jbohren gravatar image

when I entered

./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release

in the ros_catkin_ws directory,

-- Searching for Poco library...
CMake Error at cmake/PocoConfig.cmake:186 (MESSAGE):
  Poco was not found.  Set the Poco_INCLUDE_DIR cmake cache entry to the
  top-level directory containing the poco include directories.  E.g
  /usr/local/include/ or c:\poco\include\poco-1.3.2
Call Stack (most recent call first):
  CMakeLists.txt:6 (find_package)


CMake Error at CMakeLists.txt:6 (find_package):
  Found package configuration file:

    /home/kendemu/ros_catkin_ws/src/class_loader/cmake/PocoConfig.cmake

  but it set Poco_FOUND to FALSE so package "Poco" is considered to be NOT
  FOUND.


-- Configuring incomplete, errors occurred!
See also "/home/kendemu/ros_catkin_ws/build_isolated/class_loader/CMakeFiles/CMakeOutput.log".
<== Failed to process package 'class_loader': 
  Command '/home/kendemu/ros_catkin_ws/install_isolated/env.sh cmake /home/kendemu/ros_catkin_ws/src/class_loader -DCATKIN_DEVEL_PREFIX=/home/kendemu/ros_catkin_ws/devel_isolated/class_loader -DCMAKE_INSTALL_PREFIX=/home/kendemu/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release' returned non-zero exit status 1

Reproduce this error by running:
==> cd /home/kendemu/ros_catkin_ws/build_isolated/class_loader && /home/kendemu/ros_catkin_ws/install_isolated/env.sh cmake /home/kendemu/ros_catkin_ws/src/class_loader -DCATKIN_DEVEL_PREFIX=/home/kendemu/ros_catkin_ws/devel_isolated/class_loader -DCMAKE_INSTALL_PREFIX=/home/kendemu/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release

Command failed, exiting.

: this error has occured.

So I reproduced the error with:

cd /home/kendemu/ros_catkin_ws/build_isolated/class_loader && /home/kendemu/ros_catkin_ws/install_isolated/env.sh cmake /home/kendemu/ros_catkin_ws/src/class_loader -DCATKIN_DEVEL_PREFIX=/home/kendemu/ros_catkin_ws/devel_isolated/class_loader -DCMAKE_INSTALL_PREFIX=/home/kendemu/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release

-- Searching for Poco library...
CMake Error at cmake/PocoConfig.cmake:186 (MESSAGE):
  Poco was not found.  Set the Poco_INCLUDE_DIR cmake cache entry to the
  top-level directory containing the poco include directories.  E.g
  /usr/local/include/ or c:\poco\include\poco-1.3.2
Call Stack (most recent call first):
  CMakeLists.txt:6 (find_package)


CMake Error at CMakeLists.txt:6 (find_package):
  Found package configuration file:

    /home/kendemu/ros_catkin_ws/src/class_loader/cmake/PocoConfig.cmake

  but it set Poco_FOUND to FALSE so package "Poco" is considered to be NOT
  FOUND.

-- Configuring incomplete, errors occurred!
See also "/home/kendemu/ros_catkin_ws/build_isolated/class_loader/CMakeFiles/CMakeOutput.log".

I'm stuck in this error. Could someone solve this problem? I installed gazebo for ubuntu 14.04,python-empy, and libgtest-dev. I did the source install from pip.

This is the cmake log:

The system is: Linux - 3.13.0-36-generic - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc 
Build flags: 
Id flags: 

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"

The C compiler identification is GNU, found in "/home/kendemu/ros_catkin_ws/build_isolated/class_loader/CMakeFiles/2.8.12.2/CompilerIdC/a.out"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++ 
Build flags: 
Id flags: 

The output was:
0


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is GNU, found in "/home/kendemu/ros_catkin_ws/build_isolated/class_loader/CMakeFiles/2.8.12.2/CompilerIdCXX/a.out"

Determining if the C compiler works passed with the following output:
Change Dir: /home/kendemu/ros_catkin_ws/build_isolated ...
(more)
edit retag flag offensive close merge delete

Comments

Please use the formatting tools to differentiate your comments and the content. Without it this post is unintelligable. It's good you have put a lot of info into it, but without clena formatting it is too hard to digest everything. (Click edit, highlight the ouputs and click the 1010101 button)

tfoote gravatar image tfoote  ( 2014-10-04 21:52:30 -0500 )edit

Forgive me if I'm wrong, it's too early in the morning and I have't finished my coffee yet, but isn't Hydro only supported up to 13.04, and Indigo only from 14.04 onwards?

Rabe gravatar image Rabe  ( 2014-11-18 01:49:10 -0500 )edit

Package install in ubuntu14.04 is not supported, but I think the source install is possible in any Linux/UNIX distributution. However, I found that hydro package can be installed on other ros distro, so I'm going to use Indigo.

kendemu gravatar image kendemu  ( 2014-11-18 06:36:01 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2014-11-17 20:38:24 -0500

ahendrix gravatar image

It looks like cmake is having a hard time finding the poco library. Do you have it installed? Try:

sudo apt-get install libpoco-dev

More generally, this is probably happening because you don't have all of the dependencies for ROS installed. Have you set up rosdep and used it to install your dependencies yet? (Step 1.2 and 2.1.2 on http://wiki.ros.org/hydro/Installatio... )

sudo rosdep init
rosdep update
rosdep install --from-paths src -i --rosdistro hydro -y -r
edit flag offensive delete link more

Comments

I didn't know about the existance of poco package! Thanks for your advice!

kendemu gravatar image kendemu  ( 2014-11-18 06:32:37 -0500 )edit
0

answered 2014-11-18 06:28:42 -0500

Thank you for your advice and modifing my code log format! I figured it out how to source install ros-hydro supported package in other distros, so I'll use the indigo igloo distro!

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

2 followers

Stats

Asked: 2014-10-04 20:07:28 -0500

Seen: 1,880 times

Last updated: Nov 18 '14