r18 - 10 Oct 2014 - 18:02:56 - BryanParsonsYou are here: TWiki >  Documentation Web  > BuildingGPSTkUnderUnix

Building and Installing in a UNIX-like Environment using the GPSTk script

The following procedure will build and install the GPSTk under the following environments.

Linux & Solaris

The following procedure will build and install the GPSTk.

  1. Ensure that prerequisites such as CMake have been installed.
  2. Download the GPSTk source distribution.
  3. Extract the GPSTk tarball. For example, using GNU tar
    tar xvzf gpstk.tar.gz
  4. Navigate to the root GPSTk directory
  5. Run the GPSTk script with the desired parameters
    Build and Install using default paths
    $ ./script_gpstk.sh [-h] [-cpdbiotv] [-l ] [-r ] [-s ]
    -h     help             Show this message 

    -c build_cpp build C++ files and libraries
    -d build_doxygen build Doxygen files (used for python docstrings)
    -p build_python build Python files and libraries with SWIG bindings
    -e build_sphinx build Sphinx RST files into HTML documentation

    -b clean_build rm -rf gpstk_root/build; rm -rf python_root/build
    -i clean_install rm -rf gpstk_install; rm -rf python_install

    -o core_only only builds core library code
    -t test_switch initialize test framework
    -v graphviz generate dependency graph (.DOT and .PDF files)

    -r gpstk_root default = $gpstk_root, path to GPSTk dev top-level CMakeLists.txt file (and source tree)
    -s gpstk_install default = $gpstk_install, GPSTk install path prefix, to contain ./bin, ./lib, and ./include.
    -l python_install default = $python_install, Python bindings package install path prefix

Building and Installing in a UNIX-like Environment using CMake

The following procedure will build and install the GPSTk under the following environments.
Linux & Solaris

The following procedure will build and install the GPSTk.

  1. Ensure that prerequisites such as CMake have been installed.
  2. Download the GPSTk source distribution.
  3. Extract the GPSTk tarball. For example, using GNU tar
    tar xvzf gpstk.tar.gz
  4. Create a directory for your build. For example, change into the gpstk/ directory and type
    mkdir build
  5. Change into the gpstk/build directory, this will be where all of the build files will reside.
  6. If GPSTk will be installed as a system library in /usr/local, execute the following commands:
    cmake ../ or ../dev (if using Developer repo)
    make
    To install to a different directory, the install directory must be set-up when CMake configures the makefiles. Execute the following commands:
    cmake -DCMAKE_INSTALL_PREFIX:PATH=/path/to/install ../ or ../dev (if using Developer repo)
    make
  7. To install GPSTk, execute
    make install
  8. 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 
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r18 < r17 < r16 < r15 < r14 | More topic actions
 
WEBLOGOALT
This site is powered by the TWiki collaboration platformCopyright amp; by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback