Difference between revisions of "Autopano-sift-C Compiling OSX"

From PanoTools.org Wiki
Jump to: navigation, search
(Building environment: regrouped the second step (I'm already used to if..then formulas) ;-))
(Building environment)
Line 5: Line 5:
 
The very first thing you'll have to do is to set up the environment. Please follow the order in which items are presented:
 
The very first thing you'll have to do is to set up the environment. Please follow the order in which items are presented:
 
# Make sure you have Xcode installed: go to the Finder and type Apple+Shift+G (the shortcut for "go to folder..."). In the the dialog insert "/Developer/" (without the quotes).<br />If the folder ''Developer'' opens, Xcode is already installed on your system (it's in Developer/Applications/) and you can proceed to the next step.<br />If not, look for the installation DVD of that system version and install Xcode.<br />If that option isn't available, [http://developer.apple.com/tools/download/ download] and install the Xcode Tools version for the operating system on the machine that you will use for the building job. A free registration is required. Be warned that the download is huge (>1 GB).
 
# Make sure you have Xcode installed: go to the Finder and type Apple+Shift+G (the shortcut for "go to folder..."). In the the dialog insert "/Developer/" (without the quotes).<br />If the folder ''Developer'' opens, Xcode is already installed on your system (it's in Developer/Applications/) and you can proceed to the next step.<br />If not, look for the installation DVD of that system version and install Xcode.<br />If that option isn't available, [http://developer.apple.com/tools/download/ download] and install the Xcode Tools version for the operating system on the machine that you will use for the building job. A free registration is required. Be warned that the download is huge (>1 GB).
# If you already use Mac OS X 10.5 (Leopard) you can skip this step, otherwise [http://metissian.com/projects/macosx/subversion/ download] and install subversion (latest stable).
+
# If you already use Mac OS X 10.5 (Leopard) you can skip this step, otherwise [http://metissian.com/projects/macosx/subversion/ download] and install subversion (latest stable). Follow the Readme.txt suggestions.
 
# [http://www.macports.org/install.php Download] and install MacPorts from the appropriate .dmg from those listed at the top.
 
# [http://www.macports.org/install.php Download] and install MacPorts from the appropriate .dmg from those listed at the top.
  

Revision as of 00:52, 9 February 2008

Building environment

Important note: before you begin, a little note of warning. Be advised that even if the procedures described here are all (somehow) verified, nobody can assure you that everything will go fine, especially that the compiled software will behave perfectly, since it's an in-development version.

The very first thing you'll have to do is to set up the environment. Please follow the order in which items are presented:

  1. Make sure you have Xcode installed: go to the Finder and type Apple+Shift+G (the shortcut for "go to folder..."). In the the dialog insert "/Developer/" (without the quotes).
    If the folder Developer opens, Xcode is already installed on your system (it's in Developer/Applications/) and you can proceed to the next step.
    If not, look for the installation DVD of that system version and install Xcode.
    If that option isn't available, download and install the Xcode Tools version for the operating system on the machine that you will use for the building job. A free registration is required. Be warned that the download is huge (>1 GB).
  2. If you already use Mac OS X 10.5 (Leopard) you can skip this step, otherwise download and install subversion (latest stable). Follow the Readme.txt suggestions.
  3. Download and install MacPorts from the appropriate .dmg from those listed at the top.

Getting the dependencies

Open a terminal window (you can find terminal.app inside Applications/utilities)

  1. First we'll update the ports (you will be asked for your password)
sudo port -d sync
  1. Then we make macports fetch, compile and install all the necessary stuff for libpano/autopano.
sudo port install cmake libtool jpeg tiff libpng

This is gonna take a while, so grab a book and wait for macports to finish.

Building libpano

If you did everything right, the following should go smoothly:

cd /usr/
mkdir src
cd src
svn co https://panotools.svn.sourceforge.net/svnroot/panotools/trunk/libpano libpano13
cd libpano13
./bootstrap
./configure
make
sudo make install

Building autopano-sift-c

Now we can finally build autopano

cd /usr/src/
svn co https://hugin.svn.sourceforge.net/svnroot/hugin/autopano-sift-C/trunk/ autopano-sift-C
cd autopano-sift-C
cmake -DCMAKE_INSTALL_PREFIX=/usr/local
make
sudo make install