Menu

Source_code

Guilhem BONNEFILLE Rob Norris Christoph Eckert Jocelyn
There is a newer version of this page. You can find it here.

Downloading the source code

Releases can be found on SourceForge, and are packaged in a tar.gz package. Direct link is: https://sourceforge.net/project/showfiles.php?group_id=83870&pac....

There is a Git repository, which contains the latest version of Viking. To download it, just launch:

git clone git://git.code.sf.net/p/viking/code

If you were following the old Sourceforge repository location you'll need to point it to the new one above, such as via this command:

git remote set-url origin git://git.code.sf.net/p/viking/code

You can also view the code online. Use the History feature on that page to see the code commit logs.

Core Developer Repositories

Potential future code and other on going works can be found here:

Requirements

The following libraries and programs are necessary to compile Viking 1.4:

  • gtk+ version 2.12 at least
  • glib version 2.14 at least
  • libcurl
  • gettext
  • libexpat
  • libgps
  • libexif
  • gcc
  • autoconf
  • automake

Debian/Ubuntu

On Debian/Ubuntu, the source package already contains all the necessary dependencies. If you don't want to install it, the following command will install them:

apt-get install gnome-common libcurl4-gnutls-dev libexpat1-dev libgtk2.0-dev libglib2.0-dev libgps-dev libexif-dev gnome-doc-utils docbook-xsl docbook-xml

As of 2011-03-27, for the current git master (release 1.2 onwards) Viking also needs gtk-doc utilities to compile when using the autogen.sh method:

apt-get install gtk-doc-tools scrollkeeper

openSUSE

For openSUSE (this was with 11.3) you will need to install these packages:

gnome-common gnome-utils-devel libcurl-devel libexpat-devel gtk2-devel gpsd-devel libexif-devel

Windows

Windows requires much more manual work to set up a build environment and the necessary dependencies. This is documented in this separate section [WindowsBuildInstructions].

Options

Builds can be performed without libgps, libexif or other features via running ./autogen.sh with the appropriate --disable-FEATURE argument. To see the available options:

./autogen.sh -h

Optional but recommended run-time programs:

  • gpsbabel
  • gpsd
  • unbuffer (Used if available - in git code dated 2011-09-11 onwards - for Debian this is in the package expect-dev)

Compiling

If you took the source code from a .tar.gz package, please execute the following commands:

tar -xzvf viking-x.y.z.tar.gz
cd viking
./configure
make
sudo make install   # if you want to install in /usr/local - need to have root permissions to install

If you took the source from git, you will have to execute before ./configure:

./autogen.sh

If you want a fast build using all the available CPUs of your computer, then this command should make it so:

make -j $(grep -c ^processor /proc/cpuinfo)

MongoDB Logo MongoDB