graspit-simulator / graspit_interface

A GraspIt! plugin exposing a ROS interface via graspit-ros
38 stars 24 forks source link

Cmake error building graspit #43

Closed vladislav-klass closed 2 years ago

vladislav-klass commented 2 years ago

After following the installation steps from https://github.com/graspit-simulator/graspit_interface:

git clone https://github.com/graspit-simulator/graspit.git cd graspit mkdir build cd build cmake ..

I get the following error when executing make:

usr@Standard-PC-i440FX-PIIX-1996:~/graspit/build$ make -j5 [ 0%] Generating qt_image_collection.cpp [ 0%] Generating include/graspit/ui/ui_mainWindow.h [ 1%] Generating ui/moc_gwsProjDlg.cxx [ 2%] Generating include/graspit/ui/ui_about.h [ 2%] Generating include/graspit/ui/ui_archBuilderDlg.h [ 2%] Generating include/graspit/ui/ui_bodyPropDlg.h [ 3%] Generating include/graspit/ui/ui_barrettHandDlg.h [ 3%] Generating include/graspit/ui/ui_gfoDlg.h [ 3%] Generating include/graspit/ui/ui_contactExaminerDlg.h [ 4%] Generating include/graspit/ui/ui_eigenGraspDlg.h [ 5%] Generating include/graspit/ui/ui_gsaDlg.h [ 5%] Generating include/graspit/ui/ui_gloveCalibrationDlg.h [ 6%] Generating include/graspit/ui/ui_graspCaptureDlg.h [ 6%] Generating include/graspit/ui/ui_qmDlg.h [ 6%] Generating include/graspit/ui/ui_gwsProjDlgBase.h [ 7%] Generating include/graspit/ui/ui_plannerdlg.h [ 8%] Generating include/graspit/ui/ui_qualityIndicator.h [ 8%] Generating include/graspit/ui/ui_egPlannerDlg.h [ 8%] Generating include/graspit/ui/ui_settingsDlg.h [ 9%] Generating include/graspit/ui/ui_compliantPlannerDlg.h [ 9%] Generating include/graspit/moc_robot.cxx [ 9%] Generating include/graspit/ui/ui_dbaseDlg.h [ 10%] Generating include/graspit/moc_body.cxx [ 10%] Generating include/graspit/ui/ui_dbasePlannerDlg.h [ 11%] Generating include/graspit/moc_world.cxx [ 11%] Generating include/graspit/moc_worldElement.cxx [ 11%] Generating include/graspit/moc_grasp.cxx [ 11%] Generating include/graspit/moc_ivmgr.cxx [ 12%] Generating include/graspit/moc_graspitServer.cxx [ 13%] Generating include/graspit/EGPlanner/moc_egPlanner.cxx [ 13%] Generating include/graspit/EGPlanner/moc_simAnn.cxx [ 14%] Generating include/graspit/EGPlanner/moc_loopPlanner.cxx [ 14%] Generating include/graspit/EGPlanner/energy/moc_searchEnergy.cxx [ 14%] Generating include/graspit/EGPlanner/moc_guidedPlanner.cxx [ 15%] Generating include/graspit/robots/moc_m7tool.cxx [ 16%] Generating include/graspit/Planner/moc_grasp_tester.cxx [ 16%] Generating include/graspit/robots/moc_humanHand.cxx [ 16%] Generating include/graspit/robots/moc_m7.cxx [ 17%] Generating include/graspit/robots/moc_barrett.cxx [ 17%] Generating include/graspit/robots/moc_robonaut.cxx [ 17%] Generating include/graspit/robots/moc_pr2Gripper.cxx [ 17%] Generating include/graspit/robots/moc_mcGrip.cxx [ 18%] Generating include/graspit/robots/moc_robotiq.cxx [ 19%] Generating ui/DBase/moc_dbaseDlg.cxx [ 19%] Generating include/graspit/DBase/moc_dbase_grasp.cxx [ 19%] Generating ui/DBase/moc_dbasePlannerDlg.cxx [ 20%] Generating include/graspit/DBase/moc_graspit_db_planner.cxx [ 20%] Generating include/graspit/DBase/moc_graspPlanningTask.cxx [ 20%] Generating ui/moc_bodyPropDlg.cxx [ 21%] Generating ui/moc_mainWindow.cxx [ 22%] Generating ui/moc_eigenGraspDlg.cxx [ 22%] Generating ui/EGPlanner/moc_egPlannerDlg.cxx [ 22%] Generating ui/EGPlanner/moc_compliantPlannerDlg.cxx [ 23%] Generating ui/Planner/moc_plannerdlg.cxx [ 23%] Generating ui/moc_graspCaptureDlg.cxx [ 24%] Generating ui/moc_contactExaminerDlg.cxx [ 24%] Generating ui/moc_settingsDlg.cxx [ 25%] Generating ui/moc_gfoDlg.cxx [ 25%] Generating ui/moc_gsaDlg.cxx [ 25%] Generating ui/moc_qmDlg.cxx Scanning dependencies of target graspit [ 25%] Building CXX object CMakeFiles/graspit.dir/src/graspitParser.cpp.o c++: error: No: No such file or directory c++: error: steps: No such file or directory c++: error: required: No such file or directory c++: error: No: No such file or directory c++: error: steps: No such file or directory c++: error: required: No such file or directory CMakeFiles/graspit.dir/build.make:364: recipe for target 'CMakeFiles/graspit.dir/src/graspitParser.cpp.o' failed make[2]: [CMakeFiles/graspit.dir/src/graspitParser.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... [ 26%] Building CXX object CMakeFiles/graspit.dir/src/arch.cpp.o c++: error: No: No such file or directory c++: error: steps: No such file or directory c++: error: required: No such file or directory c++: error: No: No such file or directory c++: error: steps: No such file or directory c++: error: required: No such file or directory CMakeFiles/graspit.dir/build.make:388: recipe for target 'CMakeFiles/graspit.dir/src/arch.cpp.o' failed make[2]: [CMakeFiles/graspit.dir/src/arch.cpp.o] Error 1 [ 26%] Building CXX object CMakeFiles/graspit.dir/src/robots/barrett.cpp.o [ 27%] Building CXX object CMakeFiles/graspit.dir/src/robots/humanHand.cpp.o c++: error: No: No such file or directory c++: error: steps: No such file or directory c++: error: required: No such file or directory c++: error: No: No such file or directory c++: error: steps: No such file or directory c++: error: required: No such file or directory [ 27%] Building CXX object CMakeFiles/graspit.dir/src/robots/m7.cpp.o CMakeFiles/graspit.dir/build.make:412: recipe for target 'CMakeFiles/graspit.dir/src/robots/barrett.cpp.o' failed make[2]: [CMakeFiles/graspit.dir/src/robots/barrett.cpp.o] Error 1 c++: error: No: No such file or directory c++: error: steps: No such file or directory c++: error: required: No such file or directory c++: error: No: No such file or directory c++: error: steps: No such file or directory c++: error: required: No such file or directory CMakeFiles/graspit.dir/build.make:460: recipe for target 'CMakeFiles/graspit.dir/src/robots/m7.cpp.o' failed make[2]: [CMakeFiles/graspit.dir/src/robots/m7.cpp.o] Error 1 c++: error: No: No such file or directory c++: error: steps: No such file or directory c++: error: required: No such file or directory c++: error: No: No such file or directory c++: error: steps: No such file or directory c++: error: required: No such file or directory CMakeFiles/graspit.dir/build.make:436: recipe for target 'CMakeFiles/graspit.dir/src/robots/humanHand.cpp.o' failed make[2]: [CMakeFiles/graspit.dir/src/robots/humanHand.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/graspit.dir/all' failed make[1]: [CMakeFiles/graspit.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: [all] Error 2

What am I doing wrong?

vladislav-klass commented 2 years ago

Various attempts to resolve this issue by manipulating the CMakeLists file did not work out. However, the issue was resolved right away after switching from Ubuntu 18.04 to 16.04. I suspect that the error was caused by a shared library.