No se pudo encontrar un archivo de configuración de paquete proporcionado por “GeographicLib“解决


Error de compilación del sistema ubuntu20.04 :

By not providing "FindGeographicLib.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "GeographicLib", but CMake did not find one.

  Could not find a package configuration file provided by "GeographicLib"
  with any of the following names:

    GeographicLibConfig.cmake
    geographiclib-config.cmake

  Add the installation prefix of "GeographicLib" to CMAKE_PREFIX_PATH or set
  "GeographicLib_DIR" to a directory containing one of the above files.  If
  "GeographicLib" provides a separate development package or SDK, be sure it
  has been installed.

Resuelto :

1 instalación

sudo apt-get install ros-melodic-geographic-*
sudo apt-get install geographiclib-*
sudo apt-get install libgeographic-*

2 Establezca un enlace flexible
En el entorno ubuntu20.04, después de instalar el paquete, la compilación cmake aún no puede encontrar la ruta.
Esto es porque:

The geographiclib-dev installer puts the FindGeographicLib.cmake file in: /usr/share/cmake/geographiclib/FindGeographicLib.cmake

The correct location is: /usr/share/cmake-3.16/Modules   

Indeed it depends by the version of cmake currently installed. 

resolver:

sudo ln -s /usr/share/cmake/geographiclib/FindGeographicLib.cmake /usr/share/cmake-3.16/Modules/

Compilar de nuevo, con éxito.

Supongo que te gusta

Origin blog.csdn.net/xiaojinger_123/article/details/129181140
Recomendado
Clasificación