Error in openni_grabber.cpp while installing ROS Groovy from source on Ubuntu 13.10
Hi there,
When running the command ./src/catkin/bin/catkin_make_isolated --install
I get the following error:
Linking CXX executable ../../../bin/pcl_ply2obj
[ 4%] Built target pcl_ply2obj
Linking CXX executable ../../../bin/pcl_ply2raw
make[2]: ** [octree/CMakeFiles/pcl_octree.dir/src/octree_impl.cpp.o] Erro 1
make[1]: ** [octree/CMakeFiles/pcl_octree.dir/all] Erro 2
[ 4%] Built target pcl_ply2raw
Linking CXX executable ../../../bin/pcl_ply2ply
[ 4%] Built target pcl_ply2ply
make: ** [all] Erro 2
<== Failed to process package 'pcl':
Command '/home/nuno/ros_catkin_ws/install_isolated/env.sh make -j8 -l8' returned non-zero exit status 2
Reproduce this error by running:
==> cd /home/nuno/ros_catkin_ws/build_isolated/pcl && /home/nuno/ros_catkin_ws/install_isolated/env.sh make -j8 -l8
Command failed, exiting.
I corrected the above error using the solution of the Eigen h file, now I get the following:
/home/nuno/ros_catkin_ws_groovy/src/pcl/common/include/pcl/impl/point_types.hpp:143:9: note: attribute for ‘union pcl::_PointSurfel::<anonymous>’ must follow the ‘union’ keyword
union { \
^
/home/nuno/ros_catkin_ws_groovy/src/pcl/common/include/pcl/impl/point_types.hpp:1264:5: note: in expansion of macro ‘PCL_ADD_NORMAL4D’
PCL_ADD_NORMAL4D; // This adds the member normal[3] which can also be accessed using the point (which is float[4])
^
/home/nuno/ros_catkin_ws_groovy/src/pcl/io/src/openni_grabber.cpp: In member function ‘pcl::PointCloud<pcl::PointXYZ>::Ptr pcl::OpenNIGrabber::convertToXYZPointCloud(const boost::shared_ptr<openni_wrapper::DepthImage>&) const’:
/home/nuno/ros_catkin_ws_groovy/src/pcl/io/src/openni_grabber.cpp:576:63: error: no matching function for call to ‘boost::shared_array<short unsigned int>::shared_array(int)’
static boost::shared_array<unsigned short> depth_buffer (0);
^
/home/nuno/ros_catkin_ws_groovy/src/pcl/io/src/openni_grabber.cpp:576:63: note: candidates are:
In file included from /usr/include/boost/shared_array.hpp:17:0,
from /home/nuno/ros_catkin_ws_groovy/src/roscpp_serialization/include/ros/serialized_message.h:33,
from /home/nuno/ros_catkin_ws_groovy/src/roscpp_serialization/include/ros/serialization.h:36,
from /home/nuno/ros_catkin_ws_groovy/devel_isolated/std_msgs/include/std_msgs/Header.h:47,
from /home/nuno/ros_catkin_ws_groovy/src/pcl/common/include/pcl/point_cloud.h:45,
from /home/nuno/ros_catkin_ws_groovy/src/pcl/io/src/openni_grabber.cpp:42:
/usr/include/boost/smart_ptr/shared_array.hpp:126:5: note: template<class Y> boost::shared_array<T>::shared_array(const boost::shared_array<Y>&, boost::shared_array<T>::element_type*)
shared_array( shared_array<Y> const & r, element_type * p ) BOOST_NOEXCEPT : px( p ), pn( r.pn )
^
/usr/include/boost/smart_ptr/shared_array.hpp:126:5: note: template argument deduction/substitution failed:
/home/nuno/ros_catkin_ws_groovy/src/pcl/io/src/openni_grabber.cpp:576:63: note: mismatched types ‘const boost::shared_array<T>’ and ‘int’
static boost::shared_array<unsigned short> depth_buffer (0);
^
In file included from /usr/include/boost/shared_array.hpp:17:0,
from /home/nuno/ros_catkin_ws_groovy/src/roscpp_serialization/include/ros/serialized_message.h:33,
from /home/nuno/ros_catkin_ws_groovy/src/roscpp_serialization/include/ros/serialization.h:36,
from /home/nuno/ros_catkin_ws_groovy/devel_isolated/std_msgs/include/std_msgs/Header.h:47,
from /home/nuno/ros_catkin_ws_groovy/src/pcl/common/include/pcl/point_cloud.h:45,
from /home/nuno/ros_catkin_ws_groovy/src/pcl/io/src/openni_grabber.cpp:42:
/usr/include/boost/smart_ptr/shared_array.hpp:111:5: note: template<class Y> boost::shared_array<T>::shared_array(const boost::shared_array<Y>&, typename boost::detail ...
Showing the full error message when running "VERBOSE=1 catkin_make_isolated -j1" would help.