Stereo Photo Maker (SPM) is a freeware program for MS Windows for editing, and viewing stereoscopic (3D) images digitally. Unfortunately it isn't available for Mac OS X.

Wine (Wine Is Not an Emulator) is a program that intercepts MS Windows API calls and translates them to X Windows System API calls. This allows MS Windows programs to run on machines with an X server (UNIX, Mac OS X, Linux, etc.) without having to own a copy of MS Windows.

I'm running Mac OS X 10.6.8 on a Mac Book Pro. I built Wine using the MacPorts wine-devel port. MacPorts provides three different versions of Wine (each optimized for different uses). The wine-devel port is the most recent version of Wine in the MacPorts system.

Installation of MacPorts and wine-devel is a somewhat lengthy process that can be mostly automated. Before starting you will need Apple's Xcode development system, and the X11 window system.

For recent versions of Mac OS X (Lion (10.7), and Mountain Lion(10.8)) you can get Xcode 4.x from the Mac App Store. Earlier versions of Xcode are available through a free Mac Developers account.

For older versions of Mac OS X the X11.app is in the optional "X11 User" package on your Installation media. With Leopard (10.5), and Snow Leopard (10.6) X11 was installed by default. The X11 package is no longer distributed by Apple with Lion or Mountain Lion.

X11 can also be installed through MacPorts with the xorg-server port, or from the XQuartz Project.

After installing Xcode, X11, and MacPorts the following command entered in a Terminal.app window will automatically retrieve the Wine source, and all its dependencies, compile everything, and then install it:

sudo port install wine-devel

David Baumgold has a pretty good page describing how to install MacPorts and Wine on a Mac that I didn't find until after writing the above.

Once Wine is installed it needs to be configured, and some files initialized. Launch Terminal.app, and then enter "winecfg" at the command line. You'll see a pop-up that tells you that the .wine directory is being installed (this contains your configuration files, and C: drive), and then a window with various tabs for changing settings will appear. There are two things you'll probably want to change.

First, select the "Desktop Integration" tab. The bottom pane has a list of Folders with their traditional MS Windows names, and a list of Mac OS X directories. For whatever reason these are mostly wrong. You'll want to change "My Documents", "My Pictures", "My Music", and "My Video".

Select a MS Windows Folder name, and the "Link to:" check box will be selected and a directory name (which needs to be changed) will be filled in. Select "Browse...", navigate to the correct directory in your $HOME directory (a directory of the form /Users/{yourname}), and select "OK". These are what you want the settings to look like.

Folder Links to...
My Documents /Users/{yourname}/Documents/
My Pictures /Users/{yourname}/Pictures/
My Music /Users/{yourname}/Music/
My Videos /Users/{yourname}/Movies/

When you're done select "Apply". Now you'll be able to see, and use your Mac OS X files from within Wine. This is actually easier to do, but harder to describe, in a Terminal.app command line. So much for GUIs being easy to use.

Second, select the "Audio" tab. A pop-up will warn you that no sound driver has been selected yet. Dismiss the pop-up by selecting "OK", select "Apply" to accept the suggested default, and then select "OK" to dismiss winecfg.

Next you need to install SPM and autopano. Download the latest version of SPM (with the help files) and autopano. Do not let your web browser automatically unpack the zip files. In general automatic unpacking (or execution) of downloads is a really bad idea, and in this case your web browser won't put the unpacked files in the correct place. Go to Terminal.app and enter the following commands:

cd $HOME/.wine/drive_c/users/{yourname}
mkdir SPM
cd SPM
unzip {path-to-SPM-download}/stphmkre432all.zip
unzip {path-to-autopano-download}/autopano_v103.zip
mv autopano_v103zip/autopano.exe .
rm -rf autopano_v103zip
cd

Everything in curly braces (i.e., {yourname}, {path-to-SPM-download}, {path-to-autopano-download}) has to be changed to match your system. For example, you have to put your username (what Mac OS X calls your shortname) in place of "{yourname}".

This creates what will look like the directory C:\SPM to Wine and SPM, and puts the correct files in it. This also gets rid of some extra files from autopano.

Now you are finally ready to launch SPM with the following command in a Terminal.app window:

wine $HOME/.wine/drive_c/users/reynolds/SPM/stphmkre.exe