HuginOSX with Autopano-SIFT and Fink's mono HOWTO
After some trouble getting HuginOSX working, I put together this howto guide to help others. This was all done on July 29, 2006 on a PPC G5 mac with OSX 10.4.7.
My HuginOSX installation uses autopano-sift which requires a good working version of mono. For this I chose the version of mono provided by fink since that is the easiest for me to get ahold of. I assume you know how to use fink, and you have enabled the unstable fink distribution trees. Search the internet for information on doing this.
First install the following packages with fink(these may take a while as there are tons of dependencies if you do not already have gnome installed):
- gtk-sharp
- libgdiplus
- mono
Download the source for autopano-sift. I used the the version labeled "autopano-sift 2.4 MONO binaries and source (any Mono architecture). autopano-sift-2.4.tar.gz (640 kb)" There is no installation required, just copy the resulting uncompressed folder somewhere convenient, I chose "~/local/".
You next must get the autopano-complete.sh or a variant of it working. Instead of using the one that comes with autopano-sift, use the one inside Hugin.app called autopano-complete-mac.sh. You will know it works when you can run it similar to this(which you won't be able to do quite yet):
- autopano-sift-2.4/bin/autopano-complete-mac.sh -o project.pto ~/Desktop/DSC_0001.JPG ~/Desktop/DSC_0001.JPG
The last two parameters are two overlapping jpeg images. If it runs successfully you will get a resulting project.pto file which you can open with Hugin. You probably will need to modify a few things to get that script working. You will probably have to set the DYLD_LIBRARY_PATH is because fink's libJPEG.dylib and others are broken. add the following lines to set some environment variables in autopano-complete-mac.sh. You will want to replace the existing "MONO=" and "AUTOPANO_PATH=" lines with something more like:
MONO=/sw/bin/mono
AUTOPANO_PATH=$HOME/local/autopano-sift-2.4/bin
DYLD_LIBRARY_PATH=/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Resources/:$DYLD_LIBRARY_PATH
If you get any errors about things with "dylib" or "dyopen" you may need to install some more libraries with fink.
Assuming you have autopano-sift working, get the latest debug version of HuginOSX from the developer's site. Some of the older versions(in my experience) do not correctly import the points created by autopano-sift. I am successfully using the version labeled
- 0.6cvs20060422 debug (PPC): HuginOSXdebug-06cvs20060422.zip (20.7MB 2005-04-22)
Open HuginOSX and set the path to Autopano-SIFT in the preferences. This should be a full path to wherever you put your working autopano-complete-mac.sh script from earlier. Now you should be able to add a few images to HuginOSX, and then select them, and then click "Create Control Points"
I hope this helps!