Hugin Compiling Debian Raspberry
From PanoTools.org Wiki
Revision as of 12:04, 15 July 2012 by Tmk
This page explains how to compile Hugin on an RPi running Debian in order to get pto_gen working.
sudo su - # connect non-flash USB storage device (old HDD) for massive compilation/swapping IO # I busted my SD card without this # assumed this detects as /dev/sda fdisk /dev/sda # add 6GB ext4 partition # add couple GB swap partion mkfs.ext4 /dev/sda1 swapon /dev/sda2 mkdir /mnt/sda1 mount /dev/sda1 /mnt/sda1 # you can add these to /root/.bashrc alias ai=’apt-get install --assume-yes’ alias as=’apt-cache search --only-titles’ # check if libpano13-2 is available in the stable repo ai libpano13 # we need a libpano13-2 from the testing repo (omit if available in stable at the time you read this) vi /etc/apt/source.list # add: deb http://ftp.uk.debian.org/debian testing main # this will update all your packages to testing versions # maybe there is a way to only get libpano13-2 without messing with your whole system? # go get lunch during this command ;) ai python-dev mercurial libwxgtk2.8-dev libtiff4-dev libpng12-dev swig2.0 \ libopenexr-dev libexiv2-dev libglut3-dev libglew-dev libboost-dev \ boost-build libboost-thread-dev libboost-graph-dev libboost-regex-dev \ libboost-iostreams-dev libboost-filesystem-dev gettext liblapack-dev \ libxi-dev libxmu-dev libboost-signals-dev libboost-system-dev \ libtclap-dev liblensfun-dev cmake libpano13-2 libpano13-dev ln -s /usr/lib/arm-linux-gnueabi/libtiff.so.5 /usr/lib/libtiff.so cd /mnt/sda1 hg clone http://hugin.hg.sourceforge.net:8000/hgroot/hugin/hugin cd hugin head -15 INSTALL_cmake | tail -10 # cmake will throw errors if any packages are missing. search & install them using as/ai cmake -DCMAKE_INSTALL_PREFIX=/usr/local . make make install