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

Failed rosmake [pcl_ros] on ubuntu 11.10 ros-electric pandaboard

asked 2012-12-20 02:53:28 -0500

Karan gravatar image

updated 2014-01-28 17:14:38 -0500

ngrennan gravatar image

I have been working on Kinect sensor integration on Panda board. Because i am using panda board i removed "pcl_visualization" from manifest.xml in pcl directory in perception_pcl stack in Ros.

When i rosmake the pcl_ros package i get the following error..

Building CXX object src/tools/CMakeFiles/convert_pcd_to_image.dir/convert_pcd_to_image.o make[3]: Leaving directory /home/panda/ros/perception_pcl/pcl_ros/build' [ 29%] Building CXX object CMakeFiles/pcl_ros_tf.dir/src/pcl_ros/transforms.o Building CXX object CMakeFiles/pcl_ros_surface.dir/src/pcl_ros/surface/convex_hull.o make[3]: Entering directory/home/panda/ros/perception_pcl/pcl_ros/build' [ 31%] Building CXX object CMakeFiles/pcl_ros_features.dir/src/pcl_ros/features/feature.o /home/panda/ros/perception_pcl/pcl_ros/src/pcl_ros/features/feature.cpp:50:23:fatal error: pcl/io/io.h: No such file or directory compilation terminated. make[3]: * [CMakeFiles/pcl_ros_features.dir/src/pcl_ros/features/feature.o] Error 1 make[3]: Leaving directory /home/panda/ros/perception_pcl/pcl_ros/build' make[2]: *** [CMakeFiles/pcl_ros_features.dir/all] Error 2 make[2]: *** Waiting for unfinished jobs.... [ 33%] Building CXX object CMakeFiles/pcl_ros_surface.dir/src/pcl_ros/surface/moving_least_squares.o <b> /home/panda/ros/perception_pcl/pcl_ros/src/pcl_ros/transforms.cpp:38:23: fatal error: pcl/io/io.h: No such file or directory</b> compilation terminated. In file included from /home/panda/ros/perception_pcl/pcl_ros/include/pcl_ros/surface/convex_hull.h:41:0, from /home/panda/ros/perception_pcl/pcl_ros/src/pcl_ros/surface/convex_hull.cpp:39: <b> /home/panda/ros/perception_pcl/pcl_ros/include/pcl_ros/pcl_nodelet.h:51:29: fatal error: pcl/point_types.h: No such file or directory</b> compilation terminated. In file included from /home/panda/ros/perception_pcl/pcl_ros/include/pcl_ros/surface/moving_least_squares.h:41:0, from /home/panda/ros/perception_pcl/pcl_ros/src/pcl_ros/surface/moving_least_squares.cpp:39: <b>/home/panda/ros/perception_pcl/pcl_ros/include/pcl_ros/pcl_nodelet.h:51:29: fatal error: pcl/point_types.h: No such file or directory</b> compilation terminated. /home/panda/ros/perception_pcl/pcl_ros/src/tools/convert_pcd_to_image.cpp:51:23: fatal error: pcl/io/io.h: No such file or directory compilation terminated. make[3]: *** [CMakeFiles/pcl_ros_surface.dir/src/pcl_ros/surface/convex_hull.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: *** [CMakeFiles/pcl_ros_tf.dir/src/pcl_ros/transforms.o] Error 1 make[3]: Leaving directory/home/panda/ros/perception_pcl/pcl_ros/build' make[2]: [CMakeFiles/pcl_ros_tf.dir/all] Error 2 make[3]: [CMakeFiles/pcl_ros_surface.dir/src/pcl_ros/surface/moving_least_squares.o] Error 1 make[3]: Leaving directory /home/panda/ros/perception_pcl/pcl_ros/build' make[2]: *** [CMakeFiles/pcl_ros_surface.dir/all] Error 2 make[3]: *** [src/tools/CMakeFiles/convert_pcd_to_image.dir/convert_pcd_to_image.o] Error 1 make[3]: Leaving directory/home/panda/ros/perception_pcl/pcl_ros/build' make[2]: * [src/tools/CMakeFiles/convert_pcd_to_image.dir/all] Error 2 make[2]: Leaving directory /home/panda/ros/perception_pcl/pcl_ros/build' make[1]: *** [all] Error 2 make[1]: Leaving directory/home/panda/ros/perception_pcl/pcl_ros/build' -------------------------------------------------------------------------------} [ rosmake ] Output from build of package pcl_ros written to: [ rosmake ] /home/panda/.ros/rosmake/rosmake_output-20121220-190754/pcl_ros/build_output.log [rosmake-0] Finished <<< pcl_ros [FAIL] [ 63.39 seconds ]
[ rosmake ] Halting due to failure in package ...
(more)

edit retag flag offensive close merge delete

Comments

Could you include the output of "make VERBOSE=1" from within the pcl_ros directory? Specifically, just for one of the objects that fails to compile so that we can see the include lines.

Eric Perko gravatar image Eric Perko  ( 2012-12-20 06:55:44 -0500 )edit

Is there a "pcl/io/io.h" file inside /home/panda/ros/perception_pcl/pcl/include/pcl-1.1 ? That looks like the path that actually points to PCL and is the path that that header should be under.

Eric Perko gravatar image Eric Perko  ( 2012-12-21 21:21:41 -0500 )edit
1

The thing is that the directory structure of pcl package of Ros in perception_pcl stack is very different from the one directory included in PCLConfig.cmake so i dont know which path to add in PCL_DIR and PCL_INCLUDE_DIRS in PCLConfig.cmake. There is no include directory in pcl package directory.!

Karan gravatar image Karan  ( 2012-12-21 21:39:11 -0500 )edit

Thanks a lot Eric!!! I downloaded the makefile from the above link and then replaced the old one with this one in pcl package. I used "make" command in the directory. It did the building and installed all the files in directories as required by PCLConfig.cmake.. It Worked like a charm after that...

Karan gravatar image Karan  ( 2012-12-22 01:45:04 -0500 )edit

Excellent. I've converted that comment to an answer. If that solved your problem, accept it so others can easily find the solution in the future.

Eric Perko gravatar image Eric Perko  ( 2012-12-22 07:46:49 -0500 )edit

hi everybody, is there anyone with a running pandaboard + ros + kinect? if so could you please upload an image of your system? that would be greatful help for me. thanks!

RodBelaFarin gravatar image RodBelaFarin  ( 2013-01-10 03:15:15 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-12-21 21:51:10 -0500

Eric Perko gravatar image

updated 2012-12-22 07:45:35 -0500

Can you make sure the PCL package is actually built? According to http://svn.pointclouds.org/ros/tags/perception_pcl-1.0.2/pcl/Makefile (which is the best reference I could find for Electric), making the package should download and build a PCL tarball.

Update:

You shouldn't have needed to download and replace the existing pcl package Makefile with that file. If you were using a properly installed Electric, that Makefile should have already existed. Maybe something didn't get checked out or downloaded properly when you were first installing ROS Electric.

edit flag offensive delete link more

Comments

I installed Ros on the pandaboard from source. So what i did was just run the rosinstall command and then add the environment variables to bashrc. What else should have i done?? At the current time all the ros commands work including the roscore. So what am i missing??

Karan gravatar image Karan  ( 2012-12-22 20:31:27 -0500 )edit

Not sure. I'm mainly curious if you actually needed to replace the Makefile or if they were actually the same and the key was that, for whatever reason, rosmake had not previously been building PCL, which is what happened when you called "make" in the pcl package directory.

Eric Perko gravatar image Eric Perko  ( 2012-12-27 09:47:05 -0500 )edit

Question Tools

Stats

Asked: 2012-12-20 02:53:28 -0500

Seen: 745 times

Last updated: Dec 22 '12