Open siddyyagno3 opened 7 years ago
Hello,
Sorry for the late reply. Please see issue #118, this may help with the problem you are having. I will repeat the solution here, instead of running
catkin build -DCMAKE_BUILD_TYPE=RelWithDebInfo
please try running
catkin build
Please let us know if this helps. This works on Ubuntu but I do not have access to a Rpi 3.
Thanks.
Thanks @thomas-bamford for the solution.
The CI does not catch this error. Do you think if it is related to newer Ubuntu/Debian versions being used that the CI?
bebop_driver/autogenerated/ardrone3_state_callbacks.h:43:66: fatal error: bebop_msgs/Ardrone3MediaRecordStateVideoStateChanged.h: No such file or directory
This is typically an error due to the fact that the messages were not generated before the build was made.
To make sur that all your messages are well generated in the first place, you need to edit the "bebop_autonomy/bebop_driverCMakeLists.txt" file
Replace the line
add_dependencies(bebop ${PROJECT_NAME}_gencfg)
by
add_dependencies(bebop ${PROJECT_NAME}_gencfg ${catkin_EXPORTED_TARGETS})
Works for me. I tried both version in a new workspace with only this modification, the first one send me this error, the second one compile successfully.
Ubuntu MATE 16.04.1 and ROS kinetic on a Rpi 3 is my setup. Ros installation is barebones. The output of catkin_make is
[ 97%] Generating C++ code from bebop_msgs/Ardrone3MediaStreamingStateVideoEnableChanged.msg [ 97%] Generating C++ code from bebop_msgs/CommonRunStateRunIdChanged.msg [ 97%] Generating C++ code from bebop_msgs/CommonCommonStateCurrentDateChanged.msg [ 98%] Generating C++ code from bebop_msgs/CommonCommonStateSensorsStatesListChanged.msg [ 98%] Generating C++ code from bebop_msgs/CommonOverHeatStateOverHeatChanged.msg [ 98%] Built target bebop_msgs_generate_messages_cpp Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed
[ 78%] Built target bebop_msgs_generate_messages_cpp [ 98%] Built target bebop_msgs_generate_messages_lisp Scanning dependencies of target bebop_msgs_generate_messages [ 98%] Built target bebop_msgs_generate_messages c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions. bebop_autonomy/bebop_driver/CMakeFiles/bebop.dir/build.make:62: recipe for target 'bebop_autonomy/bebop_driver/CMakeFiles/bebop.dir/src/bebop.cpp.o' failed make[2]: *** [bebop_autonomy/bebop_driver/CMakeFiles/bebop.dir/src/bebop.cpp.o] Error 4 CMakeFiles/Makefile2:4529: recipe for target 'bebop_autonomy/bebop_driver/CMakeFiles/bebop.dir/all' failed make[1]: *** [bebop_autonomy/bebop_driver/CMakeFiles/bebop.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed
Also errors looks like
Generating Lisp code from bebop_msgs/Ardrone3AntiflickeringStateelectricFrequencyChanged.msg [ 77%] Generating Lisp code from bebop_msgs/CommonAnimationsStateList.msg [ 78%] Generating Lisp code from bebop_msgs/CommonARLibsVersionsStateSkyControllerLibARCommandsVersion.msg In file included from /home/rbccps/bebop_ws/src/bebop_autonomy/bebop_driver/src/bebop.cpp:47:0: /home/rbccps/bebop_ws/src/bebop_autonomy/bebop_driver/include/bebop_driver/autogenerated/ardrone3_state_callbacks.h:43:66: fatal error: bebop_msgs/Ardrone3MediaRecordStateVideoStateChanged.h: No such file or directory compilation terminated. [ 78%] Generating Lisp code from bebop_msgs/Ardrone3NetworkStateAllWifiScanChanged.msg bebop_autonomy/bebop_driver/CMakeFiles/bebop.dir/build.make:62: recipe for target 'bebop_autonomy/bebop_driver/CMakeFiles/bebop.dir/src/bebop.cpp.o' failed make[2]: *** [bebop_autonomy/bebop_driver/CMakeFiles/bebop.dir/src/bebop.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 78%] Generating Lisp code from bebop_msgs/CommonCommonStateDeprecatedMassStorageContentChanged.msg [ 78%] Generating C++ code from bebop_msgs/Ardrone3GPSStateHomeTypeChosenChanged.msg CMakeFiles/Makefile2:4529: recipe for target 'bebop_autonomy/bebop_driver/CMakeFiles/bebop.dir/all' failed make[1]: *** [bebop_autonomy/bebop_driver/CMakeFiles/bebop.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 79%] Generating C++ code from bebop_msgs/CommonChargerStateMaxChargeRateChanged.msg [ 79%] Generating Lisp code from bebop_msgs/Ardrone3PilotingStateNavigateHomeStateChanged.msg
And warning looks like
While running "catkin build -DCMAKE_BUILD_TYPE=RelWithDebInfo" after deleting devel and build The output is:
And log file output is
Any help would be appreciated.