Home Installation User Guide Technical Info

Installing Jdatestamp


Download

You can download the software source or binaries for Jdatestamp 1.1 from the download page.

Below is the summary of the files on the download page for the current version:

File Name Description
jdatestamp-1.1-freebsd.tar.gz FreeBsd Binary
jdatestamp-1.1-linux.tar.bz2 Linux Binary
jdatestamp-1.1-macosx.tar.gz MAC OS-X Binary
jdatestamp-1.1-solaris.tar.gz SunOS Binary
jdatestamp-1.1-src.tar.gz Source in .tar.gz format
jdatestamp-1.1-src.zip Zipped Source
jdatestamp-1.1-win32.zip Windows Binary

The Jdatestamp binary release includes the required executables for jpegtran (with droppatch) and jhead and is therefore ready to be used.

Installation

Steps to install the binary:

  1. Download the binary package for the required platform, copy it to the directory where you want to install and extract it:

    For Windows environment use WinZip and extract the downloaded file jdatestamp-1.1-win32.zip under the desired location
    For Linux use the command:
    bzip2 -dc jdatestamp-1.1-linux.tar.bz2 | tar xf -
    For Other Unix platforms use the command:
    gzip -dc jdatestamp-1.1-<platform>.tar.gz | tar xf -
    If you do not have gzip installed you can get it from http://www.gzip.org/

    You can delete the downloaded package after verifying the installation.

  2. Add the newly created jdatestamp-1.1 directory (C:\jdatestamp-1.1 for example) to the PATH environment variable.

    On post win98 windows machines Use
    My Computer->Properties->Advanced>Environment Variables
    to add to the PATH environment variable.

    On Windows 98 add a line to C:\autoexec.bat like:
    set PATH="%PATH%;C:\jdatestamp-1.1"

    -OR optionally for UNIX-

  3. On UNIX you can extract the Jdatestamp package directory in /usr/local or under your home directory and create a soft link to the jdatestamp executable from a directory like /usr/local/bin or ~/bin already in your PATH environment variable using commands like:
    cd ~/bin
    ln -s ../jdatestamp-1.1/jdatestamp jdatestamp

    You can also create soft links for jpegtran and jhead if you wish to use them separately though it is not necessary.


Compiling Jdatestamp Source

Compiling Jdatestamp should not be required since the binary is available for many platforms. The below is required only if you want Jdatestamp on a platform for which binaries are not available on the download page or if you want to experiment with it or modify it.

Prerequisite Software

Build Instructions

1. If on a Windows system install MSYS and MinGW32. Add Both MinGW32 and MSYS bin directories to your path. If on Windows 98 do this by editing C:/autoexec.bat.

Follow the MinGW32 homepage recommendation and do not copy any new programs under bin dir of MSYS, though you can do so under the bin dir of MinGW32.

Make sure you get the Shell prompt of MSYS by double clicking msys.bat in MSYS directory. On my Windows 98 machine I had to edit the bat file and change

if EXIST bin cd bin

to

if EXIST bin\nul cd bin
to get it to work.

Use MSYS shell instead of Windows command prompt for compilations.

If on UNIX get gcc and GNU make.

2. Choose a suitable working directory. It would be easy if you build the prerequisite jpegtran and freetype2 software under this directory.

3. Get the jpeg-6b source. Get the contents of droppatch for jpegtran (Click on the croppatch link on Guido's page and search for droppatch.tar.gz on the subsequent page) and overwrite the corresponding files in jpeg-6b source with those from droppatch. From the MSYS/UNIX shell you can extract the .tar.gz droppatch file using the command gzip -d droppatch.tar.gz | tar xf -. If this is done in the jpeg-6b source directory it would overwrite the original files as desired.

Build jpeg-6b as per instructions. Run ./configure and make and make test as suggested. It is not required to run make install unless you want jpegtran related utilities installed. On windows you can skip the make install step in any case and copy jpegtran.exe and other executables to MinGW32's bin directory if you would like to have them.

4. Download Freetype2 source version 2.1.7 or later into your working directory and extract it. Create a directory called install under Freetype2 source. Run:

./configure --prefix=< Full path of install directory created>

Build Freetype2 using:

make
make install

5. Download Jdatestamp source and extract the contents to your working directory. The contents are under a common directory so you do not have to create a new one for extraction. Edit the makefile/makefile-win32 file for windows and change any paths that do not exist or flags if you need to change. Now change to the jdatestamp source directory and run the command make (make -f makefile-win32 on Windows platforms). This should compile Jdatestamp and generate the jdatestamp (jdatestamp.exe on windows) executable.

6. Choose an installation directory copy the the following to it:

jpegtran executable from the jpeg-6b directory
jdatestamp executable
jhead executable 1.9 or later for your hardware
Everything under <jdatestamp source>/installFiles. These contain the colors.txt and autocolors.txt file required by jdatestamp, a sample jdstmprc.txt options file and documentation under the docs directory.
A font file: Copy a ttf, otf or pfb file which will be used as the default font file. The Jdatestamp binaries use the Vera bold-italic font file VeraBI.ttf from Bitstream.

As mentioned in the installation instructions add the installation directory to your PATH environment variable. On UNIX you also have the option of creating a softlink to the jdatestamp executable under the installation directory from a directory existing in the PATH environment variable like /usr/local/bin or ~/bin instead of changing your PATH.

Now you should be able to run jdatestamp from the command prompt.

Home Installation User Guide Technical Info