[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.2 Install

GNU Gama is developed and tested under GNU/Linux. A static library libgama.lib and executables are build in folders lib and src. You can compile Gama easily yourself if you download the sources from a FTP server. The preferred way is to have expat XML parser installed on your system, if not, GNU Gama will be build with internally stored expat older source codes version 1.1.

Change to the directory of Gama project and issue the following commands at the shell prompt (with some optional parameters)

 
$ ./configure [--enable-extra-tests --bindir=DIR --infodir=DIR]
$ make

For GNU Gama test suite run

 
$ make check

If the script configure is not available (which is the case when you download source codes from the git server), you have to generate it using auxiliary script autogen.sh. To compile and build all binaries. Run

 
$ ./autogen.sh
$ ./configure

and

 
$ make install [--prefix=/your/prefered/install/directory]

if you also want to install executables and info documentation.

Typically, if you want to download (see section Download) and compile sources, you will run following commands:

 
$ git clone git://git.sv.gnu.org/gama.git gama
$ cd gama
$ ./autogen.sh
$ ./configure
$ make

You should have expat XML parser and SQLite library already installed on your system. For example to be able to compile Gama on Ubuntu 10.04 you have to install following packages:

 
make doxygen git automake autoconf libexpat1-dev libsqlite3-dev

To compile user documentation in various formats (PDF, HTML, …) run the following commands

 
$ cd doc/
$ make download-gendocs.sh
$ make run-gendocs.sh

The documentation should be in doc/manual directory. To compile API documentation run

 
$ doxygen

in your gama directory. Doxygen output will be in the doxygen directory.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.2.1 CMake

Alternatively you can use CMake to generate makefiles for Unix, Windows, Mac OS X, OS/2, MSVC, Cygwin, MinGW or Xcode. Configuration file CMakeLists.txt is available from the root distribution directory. For example to build gama-local binary for Linux run

 
$ mkdir build_dir
$ cd build_dir
$ cmake .. [ -G generator-name ]
$ make --build .

where build_dir is an arbitrary directory name for out-of-place build and optional generator-name specifies a build system generator, for example Ninja.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.2.2 pkgsrc

pkgsrc is a framework for managing third-party software on UNIX-like systems, currently containing over 26,000 packages. It is the default package manager of NetBSD and SmartOS, and can be used to enable freely available software to be built easily on a large number of other UNIX-like platforms. The binary packages that are produced by pkgsrc can be used without having to compile anything from source. It can be easily used to complement the software on an existing system.

Gama is available via pkgsrc as geography/gama, see https://www.pkgsrc.org/ for more information.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.2.3 Precompiled executables for Windows

qgama is a Qt application for adjustment of geodetic networks with database support, where the database can be a simple SQLite3 flat file, used for storing geodetic network data, or any full-featured relational DBMS with Qt driver available like PostgreSQL or MySQL. It is build on the GNU gama adjustment library.

Windows executable qgama.exe with all DLL libraries is available from the GNU FTP server

https://ftp.gnu.org/gnu/gama/windows/

together with command-line interface executables gama-local.exe and gama-g3 in the subdirectory bin.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated on February 17, 2024 using texi2html 1.82.