installing hugin/ autopano-sift-C in linux

In an older post, I had mentioned the steps to install Hugin the old school way, by downloading all the dependencies, compiling some of them before installing the final product. Hugin has come a long way from then, and is much stable now. It is now as simple as a one step apt-get to install it. It also comes with its own control point detection algorithm, the Hugin CPFind. This is quite robust, but if we want the old autopano-sift-C as our CP detection algorithm (after all, linux is all about choice), then below are the steps to setup Hugin with it. The OS in context is the latest Linux Mint 16 Petra, which is based off Ubuntu 13.10.

1. Install some general dependencies for building applications (this may be irrelevant if they are already available in the system)

sudo apt-get install build-essential autoconf automake1.9 libtool flex bison gdb libc6-dev libgcc1 cmake pkg-config help2man checkinstall

2. Install Hugin 2013.0

sudo apt-get install hugin

This will come with everything except Autopano-Sift-C. The version of Hugin that comes with Ubuntu 13.10 repositories is the latest 2013.0, hence no separate PPA is required. The application is fully usable without this, so Hugin installation is complete at this point. The next step is only specific to Autopano-Sift-C.

3. Install dependencies for Autopano-Sift-C:

sudo apt-get install subversion mercurial libxml2-dev libpano13-dev libtiff4-dev libpng12-dev

4. Install Autopano-Sift-C:

hg clone http://hugin.hg.sourceforge.net:8000/hgroot/hugin/autopano-sift-C apsc.hg
mkdir apsc.hg.build && cd apsc.hg.build
cmake ../apsc.hg -DCMAKE_INSTALL_PREFIX=/usr/local -DCPACK_BINARY_DEB:BOOL=ON -DCPACK_BINARY_NSIS:BOOL=OFF -DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF -DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TZ:BOOL=OFF -DCMAKE_BUILD_TYPE=Debug
make package

This will create the deb package for Autopano-Sift-C. Now install the package to default location (so that it can be referred by Hugin without much ado):

sudo dpkg -i autopano-sift-C-2.5.2-Linux.deb

5. Set the control point detector to Autopano-Sift-C in Hugin
Open Hugin (Start Menu > Graphics > Hugin Panorama Stitcher) and set Advanced/ Expert mode (Menu > Interface > Advanced). Set the control point detector to Autopano-Sift-C at Menu > File > Preferences > Control Point Detectors > Autopano-SIFT-C > set default.

It is a pity that autopano-sift-C can be obtained out of the box in precompiled Hugin binaries for Windows, but does not come with Hugin in the .deb package because of license issues.

The older post is still relevant for Debian and SUSE systems.

Advertisements

One thought on “installing hugin/ autopano-sift-C in linux

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s