Advertisement
daredevil82

Panorama Dependency install script

Apr 29th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.59 KB | None | 0 0
  1. #!/bin/bash
  2. #    Author: Jason Johns
  3. #    Version: 0.1
  4. #    Date: 5-20-2012
  5. #    This script is intended to install and configure a Linux system to prepare
  6. #    it for batch generating panoramas.  It is intended to run as sudo, and downloads,
  7. #    compiles and installs graphic libraries, the hugin panorama stitching application
  8. #    and related files as well as the imagemagick manipulation library.
  9.  
  10. #    The results of this script work seamlessly with the batch panorama generating scripts
  11. #    written by Jason Johns.
  12.  
  13. #gets the panorama and script libraries
  14. echo "Getting Panotools library"
  15. wget http://sourceforge.net/projects/panotools/files/libpano13/libpano13-2.9.18/libpano13-2.9.18.tar.gz/download -O libpano13-x.tar.gz
  16.  
  17. echo ""
  18. echo "Getting Panotools Scripts"
  19. wget http://search.cpan.org/CPAN/authors/id/B/BP/BPOSTLE/Panotools-Script-0.26.tar.gz
  20.  
  21. #Updates aptitude and downloads the relevant programs and libraries
  22. echo "Getting JPEG, TIFF and PNG Libraries"
  23. sudo apt-get update
  24. sudo apt-get install libpng12-dev libtiff4-dev libjpeg-dev hugin hugin-tools libimage-exiftool-perl libimage-size-perl imagemagick
  25.  
  26. #Extracts out the panoram library and script wrappers
  27. tar -zxvf libpano13-x.tar.gz
  28. tar -zxvf Panotools-Script-0.26.tar.gz
  29.  
  30. #Configures, compiles and installs the panorama library
  31. cd libpano13-2.9.18
  32. sudo ./configure
  33. sudo make
  34. sudo make install
  35.  
  36. cd ../
  37.  
  38. #Generates and executes makefile to install wrapper library
  39. cd Panotools-Script-0.26
  40. sudo perl Makefile.PL
  41. sudo make
  42. sudo make test
  43. sudo make install
  44.  
  45. #cleans up installation directory
  46. cd ../
  47. rm *.tar.gz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement