Sunday, October 21, 2007

Building Hugin in Ubuntu (Feisty Fawn and Edgy Eft)

This is a work-in-progress as I figure out what are the necessary steps one has to take to go from a scratch installation of Ubuntu (or Kubuntu, or Xubuntu) to a building environment for source packages of hugin and its related tools (autopano-sift-c, libpano13, enblend). This has been tested in Kubuntu Edgy Eft and Feisty Fawn, but of course no installation is ever the same and I would welcome your comments as to what packages you had to install, or what error messages you are facing.

About hugin
Hugin is a very versatile software to merge different photos into panoramas. It is open source and its development is quite active so people might benefit from building from the sources. This post is part of a recent push to try to get frequent builds in most operating systems (Linux, Mac OSX and Windows).

Basic setup

Installation of needed components. This is the most difficult part, since once you have all the components you will be able to build hugin as often as you want.
  1. Subversion
    sudo apt-get install subversion
  2. Install cmake, other building tools and other libraries
    sudo apt-get install cmake checkinstall
    sudo apt-get install libvips10-dev libvips10c2a libgcj7-0 libgcj7-dev
    Here is the list as I could work it out from objdump -p /usr/local/bin hugin. Some sound strange, probably because I am building in 64bit linux.
    sudo apt-get install ia32-libs lib32gcc1 lib32stdc++6 lib32z1 \
    libc6 libc6-i386 libgcc1 \
    libjpeg62 libopenexr2c2a libpng12-0 libstdc++6 libtiff4 \
    libwxbase2.6-0 libwxgtk2.6-0 zlib1g \
    lib32gcc1 libstdc++6-dev lib32z1-dev \
    libc6-dev libc6-i386-dev libgcc1-dev \
    libjpeg62-dev libopenexr2c2a-dev libpng12-0-dev libstdc++6-dev libtiff4-dev \
    libwxbase2.6-0-dev libwxgtk2.6-0-dev zlib1g-de

Building libpano13

  1. Download the source from SVN
    svn co libpano13
    cd libpano13
    Check if dependencies are missing; install and relaunch the configure process
  2. Compile and install
    sudo checkinstall

Building hugin

  1. This is the trunk, which has been updated now from the Ippei branch:
    svn co hugin
  2. Building hugin: there is only one procedure right now with cmake
    cmake -DCMAKE_INSTALL_PREFIX=/usr/local .
    sudo checkinstall
    Sometimes when launching hugin it gives an error that a library is impossible to load. You have to run:
    sudo ldconfig


At 9:25 PM, Anonymous rok said...

I tried to compile enblend on 64 bit gutsy.

I get this error:

/home/tilen/enblend/src/ undefined reference to `glutDestroyWindow'
enblend-gpu.o: In function `initGPU(int*, char**)':
/home/tilen/enblend/src/ undefined reference to `glutInit'
/home/tilen/enblend/src/ undefined reference to `glutInitDisplayMode'
/home/tilen/enblend/src/ undefined reference to `glutCreateWindow'
/home/tilen/enblend/src/ undefined reference to `glutDestroyWindow'
collect2: ld returned 1 exit status


Post a Comment

Links to this post:

Create a Link

<< Home