cannot compile pcl 1.7.2

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

cannot compile pcl 1.7.2

itabhiyanta
This post has NOT been accepted by the mailing list yet.
Hi All

I am trying to compile PCL 1.7.2 along with the required libraries

EIGEN 3.3.9
boost 1.58
flann 1.8.4
vtk 7.1

and the following optional
CUDA 8 toolkit

My system is x86_64 ubuntu 16.04

I get the following error when i am compiling pcl

Scanning dependencies of target pcl_surface
[ 43%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/processing.cpp.o
[ 44%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/ear_clipping.cpp.o
[ 44%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/gp3.cpp.o
[ 44%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/grid_projection.cpp.o
[ 44%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/marching_cubes.cpp.o
[ 45%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/marching_cubes_hoppe.cpp.o
[ 45%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/marching_cubes_rbf.cpp.o
[ 45%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/bilateral_upsampling.cpp.o
In file included from /home/rohit/pcl-pcl-1.7.2/surface/src/bilateral_upsampling.cpp:44:0:
/home/rohit/pcl-pcl-1.7.2/surface/include/pcl/surface/impl/bilateral_upsampling.hpp: In instantiation of ‘void pcl::BilateralUpsampling<PointInT, PointOutT>::performProcessing(pcl::BilateralUpsampling<PointInT, PointOutT>::PointCloudOut&) [with PointInT = pcl::PointXYZRGB; PointOutT = pcl::PointXYZRGB; pcl::BilateralUpsampling<PointInT, PointOutT>::PointCloudOut = pcl::PointCloud<pcl::PointXYZRGB>]’:
/home/rohit/pcl-pcl-1.7.2/surface/src/bilateral_upsampling.cpp:48:1:   required from here
/home/rohit/pcl-pcl-1.7.2/surface/include/pcl/surface/impl/bilateral_upsampling.hpp:119:59: error: cannot convert ‘Eigen::internal::enable_if<true, Eigen::IndexedView<Eigen::Matrix<float, -1, 1>, float, Eigen::internal::SingleRange> >::type {aka Eigen::IndexedView<Eigen::Matrix<float, -1, 1>, float, Eigen::internal::SingleRange>}’ to ‘float’ in initialization
             float val_exp_rgb = val_exp_rgb_vector(d_color);
                                                           ^
/home/rohit/pcl-pcl-1.7.2/surface/include/pcl/surface/impl/bilateral_upsampling.hpp: In instantiation of ‘void pcl::BilateralUpsampling<PointInT, PointOutT>::performProcessing(pcl::BilateralUpsampling<PointInT, PointOutT>::PointCloudOut&) [with PointInT = pcl::PointXYZRGB; PointOutT = pcl::PointXYZRGBA; pcl::BilateralUpsampling<PointInT, PointOutT>::PointCloudOut = pcl::PointCloud<pcl::PointXYZRGBA>]’:
/home/rohit/pcl-pcl-1.7.2/surface/src/bilateral_upsampling.cpp:48:1:   required from here
/home/rohit/pcl-pcl-1.7.2/surface/include/pcl/surface/impl/bilateral_upsampling.hpp:119:59: error: cannot convert ‘Eigen::internal::enable_if<true, Eigen::IndexedView<Eigen::Matrix<float, -1, 1>, float, Eigen::internal::SingleRange> >::type {aka Eigen::IndexedView<Eigen::Matrix<float, -1, 1>, float, Eigen::internal::SingleRange>}’ to ‘float’ in initialization
/home/rohit/pcl-pcl-1.7.2/surface/include/pcl/surface/impl/bilateral_upsampling.hpp: In instantiation of ‘void pcl::BilateralUpsampling<PointInT, PointOutT>::performProcessing(pcl::BilateralUpsampling<PointInT, PointOutT>::PointCloudOut&) [with PointInT = pcl::PointXYZRGBA; PointOutT = pcl::PointXYZRGB; pcl::BilateralUpsampling<PointInT, PointOutT>::PointCloudOut = pcl::PointCloud<pcl::PointXYZRGB>]’:
/home/rohit/pcl-pcl-1.7.2/surface/src/bilateral_upsampling.cpp:48:1:   required from here
/home/rohit/pcl-pcl-1.7.2/surface/include/pcl/surface/impl/bilateral_upsampling.hpp:119:59: error: cannot convert ‘Eigen::internal::enable_if<true, Eigen::IndexedView<Eigen::Matrix<float, -1, 1>, float, Eigen::internal::SingleRange> >::type {aka Eigen::IndexedView<Eigen::Matrix<float, -1, 1>, float, Eigen::internal::SingleRange>}’ to ‘float’ in initialization
/home/rohit/pcl-pcl-1.7.2/surface/include/pcl/surface/impl/bilateral_upsampling.hpp: In instantiation of ‘void pcl::BilateralUpsampling<PointInT, PointOutT>::performProcessing(pcl::BilateralUpsampling<PointInT, PointOutT>::PointCloudOut&) [with PointInT = pcl::PointXYZRGBA; PointOutT = pcl::PointXYZRGBA; pcl::BilateralUpsampling<PointInT, PointOutT>::PointCloudOut = pcl::PointCloud<pcl::PointXYZRGBA>]’:
/home/rohit/pcl-pcl-1.7.2/surface/src/bilateral_upsampling.cpp:48:1:   required from here
/home/rohit/pcl-pcl-1.7.2/surface/include/pcl/surface/impl/bilateral_upsampling.hpp:119:59: error: cannot convert ‘Eigen::internal::enable_if<true, Eigen::IndexedView<Eigen::Matrix<float, -1, 1>, float, Eigen::internal::SingleRange> >::type {aka Eigen::IndexedView<Eigen::Matrix<float, -1, 1>, float, Eigen::internal::SingleRange>}’ to ‘float’ in initialization
surface/CMakeFiles/pcl_surface.dir/build.make:230: recipe for target 'surface/CMakeFiles/pcl_surface.dir/src/bilateral_upsampling.cpp.o' failed
make[2]: *** [surface/CMakeFiles/pcl_surface.dir/src/bilateral_upsampling.cpp.o] Error 1
CMakeFiles/Makefile2:1057: recipe for target 'surface/CMakeFiles/pcl_surface.dir/all' failed
make[1]: *** [surface/CMakeFiles/pcl_surface.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2


Kindly suggest what could be the problem?
with kind regards
Rohit
Reply | Threaded
Open this post in threaded view
|

Re: cannot compile pcl 1.7.2

Coolbix
This post has NOT been accepted by the mailing list yet.
Use Eigen 3.2.10.