Installing gdivelog older

Requirements

 * GNOME version 2.10 or greater
 * SQLite version 3.1.2 or greater
 * libbz2 version 1.0.2 or greater

If you plan to use the SmartTrak or Suunto Dive Manager 2 plugin you will also need:
 * MDB Tools version 0.6pre1

Compiling gdivelog
Assuming you have already obtained the source from the gdivelog SourceForge project page and your system has all the required software installed, all you will need to do is the following, replacing [version] with the version of gdivelog you have downloaded:

tar jxf gdivelog-[version].tar.bz2 cd gdivelog-[version] ./configure make make install

As of version 0.5.1 there are no non-default configure options. Use ./configure --help for more information.

You will probably need to be root for the make install step.

A Few Points Regarding Plugins
gdivelog will automatically load any plugins that have been installed with the same --prefix, i.e. [gdivelog's --prefix]/lib/gdivelog. Currently there is no way to discover what --prefix an already installed version of gdivelog was installed with. If you want to install a plugin to a different directory you will need to set the environment variable GDIVELOG_PLUGIN_PATH to include this directory, e.g.

export GDIVELOG_PLUGIN_PATH=/home/me/my_gdivelog_plugins:/usr/local/lib/additional_gdivelog_plugins

Please keep in mind that gdivelog will attempt to load every file in GDIVELOG_PLUGIN_PATH as a plugin.

Compiling gdivelog-hyperaqualand-plugin
Assuming you have obtained the source from the gdivelog SourceForge project page all you will need to do is the following, replacing [version] with the version of the gdivelog-sensuspro-plugin you have downloaded:

tar jxf gdivelog-hyperaqualand-plugin-[version].tar.bz2 cd gdivelog-hyperaqualand-plugin-[version] ./configure make make install

As of version 0.1 there are no non-default configure options. Use ./configure --help for more information.

You will probably need to be root for the make install step.

You may also want to set the environment variable HYPERAQUALAND_DEVICE to any of the serial ports you may plug your Hyper Aqualand into, e.g.

export HYPERAQUALAND_DEVICE=/dev/ttyS0:/dev/ttyS1

Compiling gdivelog-sensuspro-plugin
Assuming you have obtained the source from the gdivelog SourceForge project page all you will need to do is the following, replacing [version] with the version of the gdivelog-sensuspro-plugin you have downloaded:

tar jxf gdivelog-sensuspro-plugin-[version].tar.bz2 cd gdivelog-sensuspro-plugin-[version] ./configure make make install

As of version 0.3 there are no non-default configure options. Use ./configure --help for more information.

You will probably need to be root for the make install step.

You may also want to set the environment variable SENSUSPRO_DEVICE to any of the serial ports you may plug your Sensus Pro into, e.g.

export SENSUSPRO_DEVICE=/dev/ttyS0:/dev/ttyS1

Compiling gdivelog-suunto-plugin
Assuming you have obtained the source from the gdivelog SourceForge project page all you will need to do is the following, replacing [version] with the version of the gdivelog-sensuspro-plugin you have downloaded:

tar jxf gdivelog-suunto-plugin-[version].tar.bz2 cd gdivelog-suunto-plugin-[version] ./configure make make install

As of version 0.1 there are no non-default configure options. Use ./configure --help for more information.

You will probably need to be root for the make install step.

You may also want to set the environment variable SUUNTO_DEVICE to any of the serial ports you may plug your Suunto dive computer into, e.g.

export SUUNTO_DEVICE=/dev/ttyS0:/dev/ttyS1

Compiling MDB Tools
As Uwatec SmartTrak and Suunto Dive Manager 2 log book files are Microsoft Access databases, MDB tools is required to read them. The api of MDB tools is not fixed and I settled on version 0.6pre1 because memo fields, used to store the notes field of your dives, actually worked. As I hacked everything needed from the source of this version, version 0.6pre1 is required. gdiveog-smarttrak-plugin will not work with any version prior to this and may not work as is with any future version.

In addition to the above, MDB tools can be tricky to build, so I have included instructions here.

Some linux distributions include MDB tools, e.g. Ubuntu. This is also very likely to be linked to important applications like Open Office so is therefore unlikely to be easily to removed, even if it was desirable to do so. It is also unlikely that either gdivelog-smarttrak-plugin or gdivelog-suuntodm2-plugin will work or compile with this version of MDB Tools (I know it does not with Debian's 0.5.99.0.6pre1.0.20050409-1.1, in fact, this version is a little broken. Try using mdb-sql). In this case, it is neccesary to compile and install MDB Tools to a different location and build the plugins so that they use this version of MDB tools rather than the version supplied with the distribution. With all this in mind, the instructions below will install MDB Tools in /opt/gdivelog-mdbtools.

To compile MDB tools you will need to download the mdbtools-0.6pre1 tar ball from the [MDB tools project site] and the [mdbtools-0.6pre1-build.patch] from the gdivelog Source Forge project page.

To compile MDB Tools:

tar zxf mdbtools-0.6pre1.tar.gz cd mdbtools-0.6pre1 libtoolize --force --copy patch -p1 -i ../mdbtools-0.6pre1-build.patch ./configure --prefix=/opt/gdivelog-mdbtools make make install

Note that for versions of gdivelog-smarttrak-plugin prior to 0.3 the configure option --with-mdbtools did not exist. If for some reason you want to compile this version, use the following in place of the above configure and make steps:

LDFLAGS="-R/opt/gdivelog-mdbtools/lib -L/opt/gdivelog-mdbtools/lib $LDFLAGS" ./configure LDFLAGS="-R/opt/gdivelog-mdbtools/lib -L/opt/gdivelog-mdbtools/lib $LDFLAGS" make

Compiling gdivelog-smarttrak-plugin
This plugin requires MDB Tools.

To compile gdivelog-smarttrak-plugin:

tar jxf gdivelog-smarttrak-plugin-[version].tar.bz2 cd gdivelog-smarttrak-plugin-[version] ./configure --with-mdbtools=/opt/gdivelog-mdbtools make make install

Note that for versions of gdivelog-smarttrak-plugin < 0.3 the configure option --with-mdbtools did not exist. If for some reason you want to compile this version, use the following in place of the above configure and make steps:

LDFLAGS="-R/opt/gdivelog-mdbtools/lib -L/opt/gdivelog-mdbtools/lib $LDFLAGS" ./configure LDFLAGS="-R/opt/gdivelog-mdbtools/lib -L/opt/gdivelog-mdbtools/lib $LDFLAGS" make

You will probably need to be root for the make install step.

Compiling gdivelog-suuntodm2-plugin
This plugin requires MDB Tools.

To compile gdivelog-smarttrak-plugin:

tar jxf gdivelog-suuntodm2-plugin-[version].tar.bz2 cd gdivelog-smarttrak-plugin-[version] ./configure --with-mdbtools=/opt/gdivelog-mdbtools make make install

You will probably need to be root for the make install step.