Error compiling pcl_registration in PCL 1.7.2

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

Error compiling pcl_registration in PCL 1.7.2

mg
I'm getting a compiler error for pcl_registration in the new PCL 1.7.2 release:

Scanning dependencies of target pcl_registration
[ 57%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/registration.cpp.o
[ 57%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_estimation.cpp.o
[ 57%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_estimation_normal_shooting.cpp.o
[ 57%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_estimation_backprojection.cpp.o
[ 58%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_estimation_organized_projection.cpp.o
[ 58%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_rejection_distance.cpp.o
[ 58%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_rejection_median_distance.cpp.o
[ 58%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_rejection_surface_normal.cpp.o
[ 58%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_rejection_features.cpp.o
[ 58%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_rejection_one_to_one.cpp.o
[ 59%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_rejection_poly.cpp.o
[ 59%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_types.cpp.o
[ 59%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_rejection_sample_consensus.cpp.o
[ 59%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_rejection_sample_consensus_2d.cpp.o
[ 59%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_rejection_trimmed.cpp.o
[ 59%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_rejection_var_trimmed.cpp.o
[ 60%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/correspondence_rejection_organized_boundary.cpp.o
[ 60%] Building CXX object registration/CMakeFiles/pcl_registration.dir/src/ppf_registration.cpp.o
In file included from /home/mgualti/Programs/boost_1_56_0/include/boost/preprocessor/facilities.hpp:18:0,
                 from ~/Programs/boost_1_56_0/include/boost/preprocessor/library.hpp:23,
                 from ~/Programs/boost_1_56_0/include/boost/preprocessor.hpp:17,
                 from ~/Programs/boost_1_56_0/include/boost/graph/named_function_params.hpp:18,
                 from ~/Programs/boost_1_56_0/include/boost/graph/dijkstra_shortest_paths.hpp:20,
                 from ~/Programs/pcl/registration/include/pcl/registration/boost.h:49,
                 from ~/Programs/pcl/registration/include/pcl/registration/ppf_registration.h:45,
                 from ~/Programs/pcl/registration/src/ppf_registration.cpp:38:
~/Programs/pcl/registration/src/ppf_registration.cpp:45:1: error: expected constructor, destructor, or type conversion before ‘PCL_INSTANTIATE_PPFRegistration’
 PCL_INSTANTIATE_PRODUCT(PPFRegistration, (PCL_XYZ_POINT_TYPES)(PCL_NORMAL_POINT_TYPES));
 ^
make[2]: *** [registration/CMakeFiles/pcl_registration.dir/src/ppf_registration.cpp.o] Error 1
make[1]: *** [registration/CMakeFiles/pcl_registration.dir/all] Error 2
make: *** [all] Error 2

Has anyone else had this problem? Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Error compiling pcl_registration in PCL 1.7.2

VictorLamoine
Administrator
Reply | Threaded
Open this post in threaded view
|

Re: Error compiling pcl_registration in PCL 1.7.2

VictorLamoine
Administrator
As a temporary fix:
git revert 8942f51e570a0f5a0a2ffde0883c798737ff3b4e
This reverts the faulty commit and PCL will compile again.
Reply | Threaded
Open this post in threaded view
|

Re: Error compiling pcl_registration in PCL 1.7.2

Sergey
Administrator
Hi,

Thanks for the heads up, I just merged a fix into master.

For the record, the pull request that introduced the problem was merged after 1.7.2 release, so
you are actually using dev branch a.k.a. 1.8.0.

Regards,
Sergey