Hi Bruno, I made it so that all neccessary Perl libs (auto, file, image and panotools itself) and so on are packaged with your panotools. There is a top panotools directory containing one single environment text file (and a readme). It requires you to edit it once and set one variable (where is Hugin.app). This text file is to be called with the tool "source" to make the exported variables live globally instead of only once (like in a shell script). Once you have set the script it has the panotools "bin" directory in it's path and the path to the internal Hugin.app tools. I will create a .dmg[1] for OSX with a subset of your tools. This package will be packaged with future Hugin bundles (when they come from me). I will also make it separately available (in case others will release Hugin bundles for OSX as well) or in case others want to use it on Linux boxes.
As discussed earlier via private mail and w.r.t. to that subset, I was thinking of leaving the following out: enblend-mask, enblend-svg, nona-mask, process-masks, tif2svg, ptograph, qtvr2erect, pto2fulla, pto2tiff. - the first five because they can't be done with sips. - The next two (ptograph, qtvr2erect) because they use external dependencies - the last two (pto2fulla, pto2tiff) as you were going to remove them anyway. The package also works fine on my Ubuntu linux system even though it is not really neccessary to use it there (and off course you need to have ImageMagick installed) . I added the readme to make some remarks in case I didn't mention the use of your panotools correctly. I also added the environment text file. I didn't add the package (1.8MB) as not to flood this mailing list. If you are OK I will package it asap. Harry [1]: It is very simple to open an OSX dmg (disk image) on Linux. Use "(sudo) mount -t hfs -o loop myImage.dmg /media/macdisk". DeamonTools, PowerIso, Alcohol 120% and some others can do that on Windows. 2009/5/24 Bruno Postle <[email protected]> > > On Sun 24-May-2009 at 14:12 +0200, Harry van der Wolf wrote: > > > > Please find attached the erect2qtvr perl script and please check whether > I > > "violated" Perl rules/guidelines. > > If you think this is correct I will continue to change as much of the > > scripts as possible. > > Seems to be ok here, I've commited it. I'm not that convinced that > the remainder of the scripts in Panotools::Script that use > ImageMagick are that important, or rather if they do useful stuff > then the functionality would be better added to other tools such as > hugin, nona and enblend. > > -- > Bruno > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group. A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hugin-ptx -~----------~----~----~----~------~----~------~--~---
#!/bin/sh # # Created for Panotools 0.21: Harry van der Wolf <[email protected]> # Version 0.2 24 May 2009 # This text file contains the variables which are set by source # to make them "live on" in your environment # The variable hugin_app_path should contain the complete path to the # Hugin.app application. This really needs to be from / hugin_app_path="/Applications/Hugin.app"; # You should not need to modify any of the variables below this line int_hugin_app_path="Contents/Resources/HuginStitchProject.app/Contents/MacOS"; CWD="`(cd \"\`dirname \\\"$0\\\"\`\"; echo $PWD)`" export PATH="$CWD:$CWD/bin:$hugin_app_path/$int_hugin_app_path:$PATH" export PERL5LIB=$CWD/bin/lib
Readme.txt version 0.1, 24 May 2009, Harry van der Wolf == How to "install" this package == - Copy the OSXPanotools directory inside this dmg to a location of your liking. - Open the "initialise_environment.txt" file in a text editor. - Change the variable <hugin_app_path="/Applications/Hugin.app";> and set it to where you copied your Hugin.app. == How to use these panotools scripts == - Open a terminal - cd into the OSXPanotools directory - issue the command "source ./initialise_environment.txt" (without the double quotes) Now the scripts inside this directory and the neccessary Hugin tools from Hugin.app are set as first entries in your PATH statement. To create a QTVR from an equirectangular tiff (360x180), you can issue the command: "erect2qtvr --erect=<path_to_equirect_tif>" (without the double quotes) =================================================================================================================== License Agreements The programs and scripts included in this package are released under the GNU General Public License version 2. If you do not agree with the GPL vs. 2 license agreement, please delete this package and it's contents immediately. This package is completely based on the Panotools scripts by Bruno Postle. These scripts can be downloaded from http://search.cpan.org/~bpostle/. You can find the panotools by looking at "Panotools-Script-<version>" Between the + lines you will find part of the README that comes with the Panotools package itself. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Panotools::Script - Panorama Tools scripting ============================================ A perl module for reading, writing and manipulating hugin script files http://hugin.sourceforge.net/ Copyright and licence --------------------- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Copyright (C) 2002 Bruno Postle ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
