ethz-asl / ethz_piksi_ros

ROS drivers for the Piksi RTK GPS module
Other
85 stars 90 forks source link

Problems with libsbp when compiling in noetic #230

Closed dariojavo closed 1 year ago

dariojavo commented 1 year ago

Hi,

I'm trying to use the master branch in noetic. Following the instructions, I have installed all the dependencies. However, when compiling the catkin workspace I first receive the error:

which I think was related to line 36 of the ethz_piksi_ros/libsbp_ros_msgs/CMakeLists.txt since there was no such file in the src folder. After removing that line I was able to keep going with the compiling.

When compiling I receive the following error ModuleNotFoundError: No module named 'sbpg', but the process keep going. Then, it took some time here

make[1]: *** Waiting for unfinished jobs....
[  3%] Built target _piksi_rtk_msgs_generate_messages_check_deps_VelNedCov
make[1]: *** [CMakeFiles/Makefile2:993: ethz_piksi_ros/libsbp_ros_msgs/CMakeFiles/libsbp_ros_msgs.dir/all] Error 2

as a result the repo change to Note: switching to 'v2.7.4'. and after that it finish the compiling, but started running post test test-libsbp where I receive the following error.

 98%] Linking C executable test-libsbp
[ 98%] Built target test-libsbp
Scanning dependencies of target build-post-build-tests
[ 98%] Built target build-post-build-tests
Scanning dependencies of target post-build-test-libsbp
[100%] Running post build test test-libsbp
Running suite(s): Error Detection and Correction
 SBP
 SBP generated test suite: auto_check_sbp_acquisition_1
 SBP generated test suite: auto_check_sbp_acquisition_2
 SBP generated test suite: auto_check_sbp_navigation_3
 SBP generated test suite: auto_check_sbp_navigation_4
 SBP generated test suite: auto_check_sbp_navigation_5
 SBP generated test suite: auto_check_sbp_navigation_6
 SBP generated test suite: auto_check_sbp_navigation_7
 SBP generated test suite: auto_check_sbp_navigation_8
 SBP generated test suite: auto_check_sbp_navigation_9
 SBP generated test suite: auto_check_sbp_navigation_10
 SBP generated test suite: auto_check_sbp_navigation_11
 SBP generated test suite: auto_check_sbp_navigation_12
 SBP generated test suite: auto_check_sbp_navigation_13
 SBP generated test suite: auto_check_sbp_navigation_14
 SBP generated test suite: auto_check_sbp_navigation_15
 SBP generated test suite: auto_check_sbp_navigation_16
 SBP generated test suite: auto_check_sbp_navigation_17
 SBP generated test suite: auto_check_sbp_navigation_18
 SBP generated test suite: auto_check_sbp_navigation_19
 SBP generated test suite: auto_check_sbp_navigation_20
 SBP generated test suite: auto_check_sbp_navigation_21
 SBP generated test suite: auto_check_sbp_navigation_22
 SBP generated test suite: auto_check_sbp_navigation_23
 SBP generated test suite: auto_check_sbp_navigation_24
 SBP generated test suite: auto_check_sbp_observation_25
 SBP generated test suite: auto_check_sbp_observation_26
 SBP generated test suite: auto_check_sbp_orientation_27
 SBP generated test suite: auto_check_sbp_orientation_28
 SBP generated test suite: auto_check_sbp_orientation_29
 SBP generated test suite: auto_check_sbp_piksi_30
 SBP generated test suite: auto_check_sbp_piksi_31
 SBP generated test suite: auto_check_sbp_piksi_32
 SBP generated test suite: auto_check_sbp_settings_33
 SBP generated test suite: auto_check_sbp_settings_34
 SBP generated test suite: auto_check_sbp_system_35
 SBP generated test suite: auto_check_sbp_system_36
 SBP generated test suite: auto_check_sbp_system_37
 SBP generated test suite: auto_check_sbp_acquisition_38
 SBP generated test suite: auto_check_sbp_bootload_39
 SBP generated test suite: auto_check_sbp_ext_events_40
 SBP generated test suite: auto_check_sbp_logging_41
 SBP generated test suite: auto_check_sbp_logging_42
 SBP generated test suite: auto_check_sbp_navigation_43
 SBP generated test suite: auto_check_sbp_observation_44
 SBP generated test suite: auto_check_sbp_piksi_45
 SBP generated test suite: auto_check_sbp_system_46
 SBP generated test suite: auto_check_sbp_tracking_47
 SBP generated test suite: auto_check_sbp_tracking_48
 SBP generated test suite: auto_check_sbp_tracking_49
 SBP generated test suite: auto_check_sbp_vehicle_50
100%: Checks: 59, Failures: 0, Errors: 0
[100%] Built target post-build-test-libsbp
Scanning dependencies of target do-post-build-tests
[100%] Built target do-post-build-tests
[  4%] Performing install step for 'libsbp'
[  2%] Built target sbp
[  4%] Built target compat
[ 10%] Built target check
[ 98%] Built target test-libsbp
[ 98%] Built target build-post-build-tests
[100%] Running post build test test-libsbp
Running suite(s): Error Detection and Correction
 SBP
 SBP generated test suite: auto_check_sbp_acquisition_1
 SBP generated test suite: auto_check_sbp_acquisition_2
 SBP generated test suite: auto_check_sbp_navigation_3
 SBP generated test suite: auto_check_sbp_navigation_4
 SBP generated test suite: auto_check_sbp_navigation_5
 SBP generated test suite: auto_check_sbp_navigation_6
 SBP generated test suite: auto_check_sbp_navigation_7
 SBP generated test suite: auto_check_sbp_navigation_8
 SBP generated test suite: auto_check_sbp_navigation_9
 SBP generated test suite: auto_check_sbp_navigation_10
 SBP generated test suite: auto_check_sbp_navigation_11
 SBP generated test suite: auto_check_sbp_navigation_12
 SBP generated test suite: auto_check_sbp_navigation_13
 SBP generated test suite: auto_check_sbp_navigation_14
 SBP generated test suite: auto_check_sbp_navigation_15
 SBP generated test suite: auto_check_sbp_navigation_16
 SBP generated test suite: auto_check_sbp_navigation_17
 SBP generated test suite: auto_check_sbp_navigation_18
 SBP generated test suite: auto_check_sbp_navigation_19
 SBP generated test suite: auto_check_sbp_navigation_20
 SBP generated test suite: auto_check_sbp_navigation_21
 SBP generated test suite: auto_check_sbp_navigation_22
 SBP generated test suite: auto_check_sbp_navigation_23
 SBP generated test suite: auto_check_sbp_navigation_24
 SBP generated test suite: auto_check_sbp_observation_25
 SBP generated test suite: auto_check_sbp_observation_26
 SBP generated test suite: auto_check_sbp_orientation_27
 SBP generated test suite: auto_check_sbp_orientation_28
 SBP generated test suite: auto_check_sbp_orientation_29
 SBP generated test suite: auto_check_sbp_piksi_30
 SBP generated test suite: auto_check_sbp_piksi_31
 SBP generated test suite: auto_check_sbp_piksi_32
 SBP generated test suite: auto_check_sbp_settings_33
 SBP generated test suite: auto_check_sbp_settings_34
 SBP generated test suite: auto_check_sbp_system_35
 SBP generated test suite: auto_check_sbp_system_36
 SBP generated test suite: auto_check_sbp_system_37
 SBP generated test suite: auto_check_sbp_acquisition_38
 SBP generated test suite: auto_check_sbp_bootload_39
 SBP generated test suite: auto_check_sbp_ext_events_40
 SBP generated test suite: auto_check_sbp_logging_41
 SBP generated test suite: auto_check_sbp_logging_42
 SBP generated test suite: auto_check_sbp_navigation_43
 SBP generated test suite: auto_check_sbp_observation_44
 SBP generated test suite: auto_check_sbp_piksi_45
 SBP generated test suite: auto_check_sbp_system_46
 SBP generated test suite: auto_check_sbp_tracking_47
 SBP generated test suite: auto_check_sbp_tracking_48
 SBP generated test suite: auto_check_sbp_tracking_49
 SBP generated test suite: auto_check_sbp_vehicle_50
100%: Checks: 59, Failures: 0, Errors: 0
[100%] Built target post-build-test-libsbp
[100%] Built target do-post-build-tests
Install the project...
-- Install configuration: ""
-- Installing: /home/kit/Documents/GPS/devel/lib/libsbp.so
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/ext_events.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/observation.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/orientation.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/sbp_handler.hpp
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/imu.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/ndb.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/linux.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/sbas.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/vehicle.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/ssr.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/piksi.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/gnss.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/flash.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/version.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/user.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/cpp
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/cpp/message_traits.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/cpp/message_handler.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/cpp/frame_handler.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/cpp/state.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/settings.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/common.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/file_io.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/mag.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/navigation.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/edc.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/system.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/logging.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/tracking.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/bootload.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/acquisition.h
-- Installing: /home/kit/Documents/GPS/devel/include/libsbp/sbp.h
[  4%] Completed 'libsbp'
[  4%] Built target libsbp
make: *** [Makefile:141: all] Error 2
Invoking "make -j4 -l4" failed

Any thoughts? is this the result of me modifying the CMakeLists.txt file? If so, how can I manage the first error.

Thanks in advance!

dariojavo commented 1 year ago

Sorry, I was making the same mistakes as in #209 of using catkin_make. Once I used catkin build everything runs in my Jetson. However, when running in my laptop, I was receiving the error Cannot find source file: src/conversion.cc, same as in #188 . In my case the problem was that the generator file was having an issue when importing yaml and because of that this file was never generated. The error was related to the version of pyyaml, which in versions >=5.4 have changed the inputs. as shown here