【ubuntu20.04】安装GeographicLib
warning:
这篇文章距离上次修改已过432天,其中的内容可能已经有所变动。
在Ubuntu 20.04上安装GeographicLib,你可以通过以下步骤进行:
- 打开终端。
更新包列表:
sudo apt update安装GeographicLib的依赖库:
sudo apt install libgeographic-dev
如果你需要从源代码编译GeographicLib,可以按照以下步骤操作:
安装必要的依赖库:
sudo apt install cmake g++ make doxygen下载GeographicLib源代码:
wget http://sourceforge.net/projects/geographiclib/files/distrib/GeographicLib-1.50.tar.gz解压源代码:
tar zxvf GeographicLib-1.50.tar.gz进入解压后的目录:
cd GeographicLib-1.50创建编译目录并进入:
mkdir build && cd build运行cmake配置:
cmake ..编译并安装:
make all && sudo make install
以上步骤会安装GeographicLib及其所有依赖,允许你在Ubuntu 20.04上使用GeographicLib库进行地理计算。
评论已关闭