Skip to end of metadata
Go to start of metadata

The following transcript downloads all the necessary packages needed to install and run Decapod 0.3.

Note: at the end of the installation the following directory structure would be created in the local working directory. Please plan accordingly.




Installation Script

### Install some required packages
sudo apt-get install mercurial scons hardinfo hwinfo python-simplejson
sudo apt-get install subversion cvs python-tk swig checkinstall
sudo apt-get install python-cherrypy3 python-numpy python-imaging
sudo apt-get install python-scipy python-matplotlib python-reportlab
sudo apt-get install python-opencv valgrind python-gnome2

### Install gphoto2

mkdir gphoto2
cd gphoto2

# Install dependencies for gphoto2

sudo apt-get install autoconf libtool gettext libusb-dev libpopt-dev

# Install libgphoto2 v2.4.8

tar -zxvf libgphoto2-2.4.8.tar.gz
cd libgphoto2-2.4.8
sudo make install
sudo ldconfig
cd ..

# Install gphoto2 v2.4.7

tar -zxvf gphoto2-2.4.7.tar.gz
cd gphoto2-2.4.7
sudo make install
sudo ldconfig
cd ../..

### Install Ocropus 0.4.4

mkdir ocropus-0.4.4
cd ocropus-0.4.4
release="-r ocropus-0.4.4" # this selects release 0.4.4

# download everything

hg clone $release iulib
hg clone $release ocropus
hg clone $release ocroswig
hg clone $release ocropy
wget -nd
hg clone $release pyopenfst

# compile iulib

cd iulib
sudo sh uninstall
sudo sh ubuntu-packages
scons -j 4 sdl=1
sudo scons -j 4 sdl=1 install
cd ..

# compile ocropus

cd ocropus
sudo sh uninstall
sudo sh ubuntu-packages
scons -j 4 omp=1
sudo scons -j 4 omp=1 install
cd ..

# compile openfst

tar -zxvf openfst-1.1.tar.gz
cd openfst-1.1
make -j 4
sudo make install
cd ..

# compile ocroswig

cd ocroswig
cd ..

# compile ocropy

cd ocropy
sudo python install
cd ..

# compile Python bindings for openfst

cd pyopenfst
cd ../..

### Install Decapod 0.3

# get some dependencies
sudo apt-get install libtiff-tools imagemagick

# Download Version 0.3 of Decapod
svn co

# Install Decapod PDF Generation Script

cd decapod-0.3/
hg clone decapod-genpdf
cd decapod-genpdf/src/
hg update -C decapod-0.3
hg update decapod-0.3
sudo scons -j 4 install
sudo python install
cd ../..

# Install Decapod Stitching script

hg clone decapod-stitching
cd decapod-stitching/
hg update decapod-0.3
sudo python install
cd ../..

### Last step. IMPORTANT:
# Edit ./decapod/components/server/dserver.conf
# Change tools.staticdir.root to point to the location of Decapod on your local system.

# Done