Hi,
I am trying to compile my code which utilises the PCL librabry with nvcc
. But I am getting errors while trying to compile it,
/usr/include/pcl-1.8/pcl/io/file_io.h(264): error: namespace "boost" has no member "numeric_cast"
/usr/include/pcl-1.8/pcl/io/file_io.h(264): error: type name is not allowed
/usr/include/pcl-1.8/pcl/io/file_io.h(280): error: namespace "boost" has no member "numeric_cast"
/usr/include/pcl-1.8/pcl/io/file_io.h(280): error: type name is not allowed
/usr/include/pcl-1.8/pcl/io/file_io.h(346): error: namespace "boost" has no member "iequals"
/usr/include/pcl-1.8/pcl/io/file_io.h(372): error: namespace "boost" has no member "iequals"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(86): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(86): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(86): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(87): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(87): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(87): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(88): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(88): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(88): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(90): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(90): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(90): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(91): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(91): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(91): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(92): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(92): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(92): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(93): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(93): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(93): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(94): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(94): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(94): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(96): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(96): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(96): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(97): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(97): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(97): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(98): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(98): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(98): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(99): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(99): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(99): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(104): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(104): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(104): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(111): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(111): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(111): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(127): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(127): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(127): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(134): error: identifier "callbacks" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(178): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(178): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(178): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(184): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(184): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(184): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(190): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(190): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(190): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(199): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(199): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(199): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(217): error: namespace "boost::mpl" has no member "joint_view"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(217): error: expected a ">"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(216): error: not a class or struct name
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(218): error: namespace "boost::mpl" has no member class "transform"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(218): error: not a class or struct name
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(218): error: class or struct definition is missing
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(229): error: qualified name is not allowed
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(229): error: explicit type is missing ("int" assumed)
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(229): error: expected a ";"
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(230): error: identifier "callbacks" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(272): error: identifier "info_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(275): error: identifier "warning_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(278): error: identifier "error_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(281): error: identifier "magic_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(284): error: identifier "format_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(287): error: identifier "element_definition_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(296): error: identifier "comment_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(299): error: identifier "obj_info_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(302): error: identifier "end_header_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(380): error: identifier "begin_element_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(381): error: identifier "end_element_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(390): error: identifier "begin_element_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(391): error: identifier "end_element_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(397): error: identifier "info_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(398): error: identifier "warning_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(399): error: identifier "error_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(401): error: identifier "magic_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(402): error: identifier "format_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(403): error: identifier "element_definition_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(406): error: identifier "comment_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(407): error: identifier "obj_info_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(408): error: identifier "end_header_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(441): error: identifier "info_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(446): error: identifier "warning_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(451): error: identifier "error_callback_type" is undefined
/usr/include/pcl-1.8/pcl/io/ply/ply_parser.h(456): error: identifier "magic_callback_type" is undefined
Error limit reached.
100 errors detected in the compilation of "/tmp/tmpxft_00002795_00000000-6_Matrix_Transform.cpp1.ii".
Compilation terminated.
Makefile:67: recipe for target 'Matrix_Transform.o' failed
make: *** [Matrix_Transform.o] Error 1
This is my Makefile : Makefile (2.6 KB)
I am including the following headers in my source file:
#include <iostream>
#include <math.h>
#include <pcl/io/ply_io.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_runtime_api.h>
I have installed pcl with sudo apt-get install libpcl-dev
, which came with pcl-1.18. I also installed eigen
manually from the source with version 3.3.9 .
Could someone help me out with this?
Thanks