CentOS7系统上的GPSTK源码安装
Posted Certainly
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS7系统上的GPSTK源码安装相关的知识,希望对你有一定的参考价值。
网址:http://www.gpstk.org/bin/view/Documentation/BuildingGPSTkUnderUnix
这里使用Cmake来安装源码,网站上的原文摘抄如下,有少部分作了修改的地方,使用红色字体和下划线来标识。
The following procedure will build and install the GPSTk.
- Ensure that prerequisites such as CMake have been installed.
- Download the GPSTk source distribution.
- Extract the GPSTk tarball. For example, using GNU tar
tar xvzf gpstk.tar.gz
- Create a directory for your build. For example, change into the gpstk/directory and type
mkdir build
- Change into the gpstk/build directory, this will be where all of the build files will reside.
- If GPSTk Core will be installed as a system library in /usr/local, execute the following commands:
cmake ../devmake
-DCMAKE_INSTALL_PREFIX:PATH=/path/to/install
-DBUILD_EXT=ON
-DBUILD_PYTHON=ON
-DTEST_SWITCH=ON
[[email protected] gpstk-2.5.src]$ sudo mkdir /opt/gpstk-2.5.linux.x86_64
[[email protected]-centos7 gpstk-2.5.src]$ cd build [[email protected]-centos7 build]$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/gpstk-2.5.linux.x86_64 -DBUILD_EXT=ON -DBUILD_PYTHON=ON -DTEST_SWITCH=ON ../dev -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 4.8.5 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done system = Linux-3.10.0-514.16.1.el7.x86_64 system_name = Linux Notice: Will install GPSTk to the path /opt/gpstk-2.5.linux.x86_64 -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: BUILD_EXT BUILD_PYTHON -- Build files have been written to: /home/She/Downloads/GPSTK/gpstk-2.5.src/build - To install GPSTk, execute
sudo make install
- To test GPSTk (if Test_Switch=ON), execute
sudo make test
- To build the source documentation using doxygen: Change into the gpstk/dev directory (if using Developer repo) or the gpstk/directory (if using the tarball), and type
doxygen
以上是关于CentOS7系统上的GPSTK源码安装的主要内容,如果未能解决你的问题,请参考以下文章
Android 插件化VirtualApp 源码分析 ( 目前的 API 现状 | 安装应用源码分析 | 安装按钮执行的操作 | 返回到 HomeActivity 执行的操作 )(代码片段