Hugin Compiling Ubuntu
|Line 31:||Line 31:|
== Building hugin ==
== Building hugin ==
Revision as of 16:03, 3 November 2007
These instructions were tested on a blank installation of Kubuntu 6.06 (Edgy Eft) on a AMD64 computer. Apart from the odd change in package name, nothing should be substantially different (and if does not work, please leave a comment here.
Since we are going to build hugin (and libpano13) we need to download and install all the development packages. This is very easy with apt-get. In a terminal window (K menu/System/Konsole)
sudo apt-get install build-essential autoconf automake1.9 libtool flex bison gdb libc6-dev-amd64 lib64gcc1 sudo apt-get install subversion
libpano13 is the new version of the PanoTools libraries. This is a necessary component for hugin, and we need to build it first.
To build libpano13 we need some libraries and particularly their
sudo apt-get install lib64z1 lib64z1-dev libpng12-dev libjpeg62-dev libtiff4-dev
We then need to download the source code from SVN:
svn co https://panotools.svn.sourceforge.net/svnroot/panotools/trunk/libpano libpano13 cd libpano13 ./bootstrap
If any libraries are missing, the script will complain (or at least, let you know that some library hasn't been found). In that case you probably need to install the library. To find in what package is that library, a general rule is to run the command
apt-cache search missingfile, find the relevant library and install both the library and the related
./configure script and repeat this process until you have met all the dependencies.
Then we are ready to launch the make process with
If the library successfully compiles, you have to install it with
sudo make install sudo ldconfig
The last part is for the OS to be aware of the new library (that has been installed in
Some additional libraries are needed.
We download the source from SVN, as before
svn co https://hugin.svn.sourceforge.net/svnroot/hugin/hugin/trunk/ hugin cd hugin
hugin has to be built using cmake (which we installed before).
cmake -DCMAKE_INSTALL_PREFIX=/usr/local .