标签:ext inux path win nload load building usr mode
网址:http://www.gpstk.org/bin/view/Documentation/BuildingGPSTkUnderUnix
这里使用Cmake来安装源码,网站上的原文摘抄如下,有少部分作了修改的地方,使用红色字体和下划线来标识。
The following procedure will build and install the GPSTk.
tar xvzf gpstk.tar.gz
mkdir build
cmake ../devmake
To install to a different directory, the install directory must be set-up when CMake configures the makefiles, add the following command:
-DCMAKE_INSTALL_PREFIX:PATH=/path/to/install
To build GPSTk with Ext, in addition to Core, add the following command:
-DBUILD_EXT=ON
To turn on processing of python extension package, add the following command:
-DBUILD_PYTHON=ON
To turn on test mode, add the following command:
-DTEST_SWITCH=ON
Example - Command for building GPSTk with core, ext, python, and test code and installing to sytem library in /usr/local:
[She@she-centos7 gpstk-2.5.src]$ sudo mkdir /opt/gpstk-2.5.linux.x86_64
[She@she-centos7 gpstk-2.5.src]$ cd build [She@she-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
sudo make install
sudo make test
doxygen
标签:ext inux path win nload load building usr mode
原文地址:http://www.cnblogs.com/snake553/p/6955657.html