gpd_ros
gpd_ros copied to clipboard
Issue with catkin build
Hello, when I try to run catkin build in my workspace I get the following error. (I'm using Ubuntu 16.04)
.................................................................................................
At global scope: cc1plus: warning: unrecognized command line option ‘-Wno-ignored-attributes’ make[2]: *** [CMakeFiles/gpd_ros_detect_grasps_server.dir/src/gpd_ros/grasp_detection_server.cpp.o] Error 1 make[1]: *** [CMakeFiles/gpd_ros_detect_grasps_server.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... At global scope: cc1plus: warning: unrecognized command line option ‘-Wno-ignored-attributes’ make[2]: *** [CMakeFiles/gpd_ros_detect_grasps.dir/src/gpd_ros/grasp_detection_node.cpp.o] Error 1 make[1]: *** [CMakeFiles/gpd_ros_detect_grasps.dir/all] Error 2 make: *** [all] Error 2 cd /home/nicholas/catkin_ws/build/gpd_ros; catkin build --get-env gpd_ros | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd
I was curious if anyone new how to fix this issue.
Hello,
Im getting the same error. Were you able to find any possible solution?
System: Ubuntu 18.04
@shrirangsp I actually found a solution last night, so perfect timing on your part. I noticed that it was finding pcl version that was under 1.9. So in order to fix this I had downloaded pcl 1.9 from source and then edited the CMakeLists.txt and add: set(PCL_DIR "/path/to/PCLConfig.cmake") before the part that says findpackage().
for example mine looked like this: set(PCL_DIR "/home/nicholas/pcl-pcl-1.9.1/build/PCLConfig.cmake") if that helps.