Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with catkin build #20

Open
nickhward opened this issue Apr 30, 2021 · 2 comments
Open

Issue with catkin build #20

nickhward opened this issue Apr 30, 2021 · 2 comments

Comments

@nickhward
Copy link

nickhward commented Apr 30, 2021

Hello, when I try to run catkin build in my workspace I get the following error. (I'm using Ubuntu 16.04)
.................................................................................................
Screenshot from 2021-04-30 15-45-43

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.

@shrirangsp
Copy link

shrirangsp commented May 25, 2021

Hello,

Im getting the same error. Were you able to find any possible solution?

System: Ubuntu 18.04

@nickhward
Copy link
Author

nickhward commented May 25, 2021

@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.

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

No branches or pull requests

2 participants