Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Failed to Build #1

Closed
feichai2004 opened this issue Aug 2, 2016 · 3 comments
Closed

Failed to Build #1

feichai2004 opened this issue Aug 2, 2016 · 3 comments

Comments

@feichai2004
Copy link

Hi,

I try to build the source code and found the following error message. Do you have any ideal?

/home/hengfuil/code/kitti-pcl/src/kittitrackletextract.cpp: In function ‘int main(int, char*)’:
/home/hengfuil/code/kitti-pcl/src/kittitrackletextract.cpp:67:2: error: ‘sensor_msgs’ has not been declared
sensor_msgs::PointCloud2 blob;
^
/home/hengfuil/code/kitti-pcl/src/kittitrackletextract.cpp:67:27: error: expected ‘;’ before ‘blob’
sensor_msgs::PointCloud2 blob;
^
/home/hengfuil/code/kitti-pcl/src/kittitrackletextract.cpp:68:40: error: ‘blob’ was not declared in this scope
pcl::io::loadPCDFile (infile.c_str(), blob);
^
/home/hengfuil/code/kitti-pcl/src/kittitrackletextract.cpp:72:2: error: ‘fromROSMsg’ is not a member of ‘pcl’
pcl::fromROSMsg (blob, *cloud);
^
make[2]: *
* [src/CMakeFiles/kittitrackletextract.dir/kittitrackletextract.cpp.o] Error 1
make[2]: Leaving directory /home/hengfuil/code/kitti-pcl' make[1]: *** [src/CMakeFiles/kittitrackletextract.dir/all] Error 2 make[1]: Leaving directory/home/hengfuil/code/kitti-pcl'
make: *** [all] Error 2

@MarkMuth
Copy link

MarkMuth commented Aug 3, 2016

Well,

obviously ‘sensor_msgs’ has not been declared. Looks like you have no
compatible version of ROS/PCL installed.

Cheers,
Mark

On 02.08.2016 11:41, feichai2004 wrote:

Hi,

I try to build the source code and found the following error message. Do
you have any ideal?

/home/hengfuil/code/kitti-pcl/src/kittitrackletextract.cpp: In function
‘int main(int, char_/)’:
/home/hengfuil/code/kitti-pcl/src/kittitrackletextract.cpp:67:2: error:
‘sensor_msgs’ has not been declared
sensor_msgs::PointCloud2 blob;
^
/home/hengfuil/code/kitti-pcl/src/kittitrackletextract.cpp:67:27: error:
expected ‘;’ before ‘blob’
sensor_msgs::PointCloud2 blob;
^
/home/hengfuil/code/kitti-pcl/src/kittitrackletextract.cpp:68:40: error:
‘blob’ was not declared in this scope
pcl::io::loadPCDFile (infile.c_str(), blob);
^
/home/hengfuil/code/kitti-pcl/src/kittitrackletextract.cpp:72:2: error:
‘fromROSMsg’ is not a member of ‘pcl’
pcl::fromROSMsg (blob, *cloud);
^
make[2]: */_
[src/CMakeFiles/kittitrackletextract.dir/kittitrackletextract.cpp.o] Error 1
make[2]: Leaving directory |/home/hengfuil/code/kitti-pcl'
make[1]: *** [src/CMakeFiles/kittitrackletextract.dir/all] Error 2
make[1]: Leaving directory|/home/hengfuil/code/kitti-pcl'
make: *** [all] Error 2


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#1, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEBdJ2jVGgg-aQwg_rI_jq4pQnWeTEuIks5qbxDIgaJpZM4JabCA.

@feichai2004
Copy link
Author

Yes, it is a compatible issues. I fixed the problem by following the recommendation.
https://github.com/PointCloudLibrary/pcl/wiki/Remove-ROS

@gyubeomim
Copy link

@feichai2004
thanks,
after running remove_ros_3rdparty.bash in the page you recommended, it worked for me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants