Skip to content

Issue with Geographic lib #7

@YXGuan

Description

@YXGuan

Hi there,

Looks like this repo depends on GeographicLib, but the problem is that GeographicLib has not been updated for a while. Any suggestions on how I could proceed would be much appreciated!

yuxiang@yuxiang:~/catkin_ws2$ catkin_make
Base path: /home/yuxiang/catkin_ws2
Source space: /home/yuxiang/catkin_ws2/src
Build space: /home/yuxiang/catkin_ws2/build
Devel space: /home/yuxiang/catkin_ws2/devel
Install space: /home/yuxiang/catkin_ws2/install
####
#### Running command: "make cmake_check_build_system" in "/home/yuxiang/catkin_ws2/build"
####
####
#### Running command: "make -j8 -l8" in "/home/yuxiang/catkin_ws2/build"
####
[  5%] Linking CXX executable /home/yuxiang/catkin_ws2/devel/lib/gps_waypoint_nav/gps_waypoint
[ 16%] Built target safety_node
[ 27%] Built target calibrate_heading
[ 33%] Linking CXX executable /home/yuxiang/catkin_ws2/devel/lib/gps_waypoint_nav/gps_waypoint_continuous1
[ 38%] Linking CXX executable /home/yuxiang/catkin_ws2/devel/lib/gps_waypoint_nav/gps_waypoint_mapping
[ 50%] Built target collect_gps_waypoints
[ 55%] Linking CXX executable /home/yuxiang/catkin_ws2/devel/lib/gps_waypoint_nav/plot_gps_waypoints
[ 61%] Linking CXX executable /home/yuxiang/catkin_ws2/devel/lib/gps_waypoint_nav/gps_waypoint_continuous2
[ 72%] Built target switch_controllers
/usr/bin/ld: CMakeFiles/plot_gps_waypoints.dir/src/plot_gps_waypoints.cpp.o: in function `RobotLocalization::NavsatConversions::LLtoUTM(double, double, double&, double&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, double&)':
plot_gps_waypoints.cpp:(.text+0x7f): undefined reference to `GeographicLib::UTMUPS::Forward(double, double, int&, bool&, double&, double&, double&, double&, int, bool)'
/usr/bin/ld: plot_gps_waypoints.cpp:(.text+0xb8): undefined reference to `GeographicLib::MGRS::Forward(int, bool, double, double, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
collect2: error: ld returned 1 exit status
make[2]: *** [gps-waypoint-based-autonomous-navigation-in-ros/CMakeFiles/plot_gps_waypoints.dir/build.make:128: /home/yuxiang/catkin_ws2/devel/lib/gps_waypoint_nav/plot_gps_waypoints] Error 1
make[1]: *** [CMakeFiles/Makefile2:528: gps-waypoint-based-autonomous-navigation-in-ros/CMakeFiles/plot_gps_waypoints.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: CMakeFiles/gps_waypoint_mapping.dir/src/gps_waypoint_mapping.cpp.o: in function `RobotLocalization::NavsatConversions::LLtoUTM(double, double, double&, double&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, double&)':
gps_waypoint_mapping.cpp:(.text+0x7f): undefined reference to `GeographicLib::UTMUPS::Forward(double, double, int&, bool&, double&, double&, double&, double&, int, bool)'
/usr/bin/ld: gps_waypoint_mapping.cpp:(.text+0xb8): undefined reference to `GeographicLib::MGRS::Forward(int, bool, double, double, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
collect2: error: ld returned 1 exit status
make[2]: *** [gps-waypoint-based-autonomous-navigation-in-ros/CMakeFiles/gps_waypoint_mapping.dir/build.make:128: /home/yuxiang/catkin_ws2/devel/lib/gps_waypoint_nav/gps_waypoint_mapping] Error 1
make[1]: *** [CMakeFiles/Makefile2:582: gps-waypoint-based-autonomous-navigation-in-ros/CMakeFiles/gps_waypoint_mapping.dir/all] Error 2
/usr/bin/ld: CMakeFiles/gps_waypoint.dir/src/gps_waypoint.cpp.o: in function `RobotLocalization::NavsatConversions::LLtoUTM(double, double, double&, double&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, double&)':
gps_waypoint.cpp:(.text+0x7f): undefined reference to `GeographicLib::UTMUPS::Forward(double, double, int&, bool&, double&, double&, double&, double&, int, bool)'
/usr/bin/ld: gps_waypoint.cpp:(.text+0xb8): undefined reference to `GeographicLib::MGRS::Forward(int, bool, double, double, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
collect2: error: ld returned 1 exit status
/usr/bin/ld: CMakeFiles/gps_waypoint_continuous2.dir/src/gps_waypoint_continuous2.cpp.o: in function `RobotLocalization::NavsatConversions::LLtoUTM(double, double, double&, double&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, double&)':
gps_waypoint_continuous2.cpp:(.text+0x7f): undefined reference to `GeographicLib::UTMUPS::Forward(double, double, int&, bool&, double&, double&, double&, double&, int, bool)'
/usr/bin/ld: gps_waypoint_continuous2.cpp:(.text+0xb8): undefined reference to `GeographicLib::MGRS::Forward(int, bool, double, double, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
make[2]: *** [gps-waypoint-based-autonomous-navigation-in-ros/CMakeFiles/gps_waypoint.dir/build.make:128: /home/yuxiang/catkin_ws2/devel/lib/gps_waypoint_nav/gps_waypoint] Error 1
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/Makefile2:636: gps-waypoint-based-autonomous-navigation-in-ros/CMakeFiles/gps_waypoint.dir/all] Error 2
make[2]: *** [gps-waypoint-based-autonomous-navigation-in-ros/CMakeFiles/gps_waypoint_continuous2.dir/build.make:128: /home/yuxiang/catkin_ws2/devel/lib/gps_waypoint_nav/gps_waypoint_continuous2] Error 1
make[1]: *** [CMakeFiles/Makefile2:1339: gps-waypoint-based-autonomous-navigation-in-ros/CMakeFiles/gps_waypoint_continuous2.dir/all] Error 2
/usr/bin/ld: CMakeFiles/gps_waypoint_continuous1.dir/src/gps_waypoint_continuous1.cpp.o: in function `RobotLocalization::NavsatConversions::LLtoUTM(double, double, double&, double&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, double&)':
gps_waypoint_continuous1.cpp:(.text+0x7f): undefined reference to `GeographicLib::UTMUPS::Forward(double, double, int&, bool&, double&, double&, double&, double&, int, bool)'
/usr/bin/ld: gps_waypoint_continuous1.cpp:(.text+0xb8): undefined reference to `GeographicLib::MGRS::Forward(int, bool, double, double, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
collect2: error: ld returned 1 exit status
make[2]: *** [gps-waypoint-based-autonomous-navigation-in-ros/CMakeFiles/gps_waypoint_continuous1.dir/build.make:128: /home/yuxiang/catkin_ws2/devel/lib/gps_waypoint_nav/gps_waypoint_continuous1] Error 1
make[1]: *** [CMakeFiles/Makefile2:609: gps-waypoint-based-autonomous-navigation-in-ros/CMakeFiles/gps_waypoint_continuous1.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Invoking "make -j8 -l8" failed


yuxiang@yuxiang:~/catkin_ws2$ rosdep check --from-paths src --ignore-src -r -y
System dependencies have not been satisfied:
apt	python-geographiclib
ERROR[geographic_lib]: Cannot locate rosdep definition for [catkin_simple]
	rosdep key : catkin_simple
	OS name    : ubuntu
	OS version : focal
	Data:
<no data>
ERROR[gps_goal]: Cannot locate rosdep definition for [click]
	rosdep key : click
	OS name    : ubuntu
	OS version : focal
	Data:
<no data>
yuxiang@yuxiang:~/catkin_ws2$ rosdep install --from-paths src --ignore-src -r -y
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
geographic_lib: Cannot locate rosdep definition for [catkin_simple]
gps_goal: Cannot locate rosdep definition for [click]
Continuing to install resolvable dependencies...
executing command [sudo -H apt-get install -y python-geographiclib]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package python-geographiclib
ERROR: the following rosdeps failed to install
  apt: command [sudo -H apt-get install -y python-geographiclib] failed
  apt: Failed to detect successful installation of [python-geographiclib]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions