https://wiki.panotools.org/api.php?action=feedcontributions&user=ArAgost&feedformat=atomPanoTools.org Wiki - User contributions [en]2024-03-28T20:57:18ZUser contributionsMediaWiki 1.35.3https://wiki.panotools.org/index.php?title=Autopano-sift-C_Compiling_OSX&diff=9994Autopano-sift-C Compiling OSX2008-02-11T23:22:03Z<p>ArAgost: forgot the configure options</p>
<hr />
<div>== Building environment ==<br />
<br />
'''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.<br />
<br />
The very first thing you'll have to do is to set up the environment. Please follow the order in which items are presented:<br />
<br />
# 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).<br />
# 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 suggestions of the Readme file and tell your system to have a look at /usr/local/bin. If you don't know how to use terminal to edit these files directly just use [http://www.barebones.com/products/textwrangler/ TextWrangler]. In TextWrangler, make sure you selected "Install Command Line Tools..." from the ''Menu: TextWrangler''. Back in terminal type<pre>edit /etc/profile</pre>The file will now open in TextWrangler. Look for the line that starts with ''PATH'' and make sure it contains the string ":/usr/local/bin" (without the quotes). Save and close the file, and do the same with /etc/csh.login, i.e. type <pre>edit /etc/csh.login</pre> in the terminal. Save and restart the Mac. Again back in terminal to test the installation, type<pre>svn cat http://svn.collab.net/repos/svn/trunk/README</pre>This should show the README file directly from subversions server.<br />
# [http://www.macports.org/install.php Download] and install MacPorts from the appropriate .dmg from those listed at the top.<br />
<br />
== Getting the dependencies ==<br />
Open a terminal window (you can find terminal.app inside Applications/utilities)<br />
# First we'll update the ports (you will be asked for your password)<br />
<pre>sudo port -d sync</pre><br />
# Then we make macports fetch, compile and install all the necessary stuff for libpano/autopano.<br />
<pre>sudo port install cmake libtool jpeg tiff libpng</pre><br />
This is gonna take a while, so grab a book and wait for macports to finish.<br />
<br />
== Building libpano == <br />
If you did everything right, the following should go smoothly:<br />
<pre>cd /usr/<br />
mkdir src<br />
cd src<br />
svn co https://panotools.svn.sourceforge.net/svnroot/panotools/trunk/libpano libpano13<br />
cd libpano13<br />
./bootstrap<br />
./configure --with-jpeg=/opt/local/ --with-tiff=/opt/local/<br />
make<br />
sudo make install</pre><br />
<br />
== Building autopano-sift-c ==<br />
Now we can finally build autopano<br />
<pre>cd /usr/src/<br />
svn co https://hugin.svn.sourceforge.net/svnroot/hugin/autopano-sift-C/trunk/ autopano-sift-C<br />
cd autopano-sift-C<br />
cmake -DCMAKE_INSTALL_PREFIX=/usr/local<br />
make<br />
sudo make install</pre></div>ArAgosthttps://wiki.panotools.org/index.php?title=Autopano-sift-C_Compiling_OSX&diff=9985Autopano-sift-C Compiling OSX2008-02-08T15:54:43Z<p>ArAgost: </p>
<hr />
<div>== Building environment ==<br />
<br />
'''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.<br />
<br />
The very first thing you'll have to do is to set up the environment. Please follow the order in which items are presented:<br />
# [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)<br />
# [http://metissian.com/projects/macosx/subversion/ Download] and install subversion (latest stable). This is only needed if you don't use Mac OS X 10.5 Leopard.<br />
# [http://www.macports.org/install.php Download] and install MacPorts from the appropriate .dmg from those listed at the top. <br />
<br />
== Getting the dependencies ==<br />
Open a terminal window (you can find terminal.app inside Applications/utilities)<br />
# First we'll update the ports (you will be asked for your password)<br />
<pre>sudo port -d sync</pre><br />
# Then we make macports fetch, compile and install all the necessary stuff for libpano/autopano.<br />
<pre>sudo port install cmake libtool jpeg tiff libpng</pre><br />
This is gonna take a while, so grab a book and wait for macports to finish.<br />
<br />
== Building libpano == <br />
If you did everything right, the following should go smoothly:<br />
<pre>cd /usr/<br />
mkdir src<br />
cd src<br />
svn co https://panotools.svn.sourceforge.net/svnroot/panotools/trunk/libpano libpano13<br />
cd libpano13<br />
./bootstrap<br />
./configure<br />
make<br />
sudo make install</pre><br />
<br />
== Building autopano-sift-c ==<br />
Now we can finally build autopano<br />
<pre>cd /usr/src/<br />
svn co https://hugin.svn.sourceforge.net/svnroot/hugin/autopano-sift-C/trunk/ autopano-sift-C<br />
cd autopano-sift-C<br />
cmake -DCMAKE_INSTALL_PREFIX=/usr/local<br />
make<br />
sudo make install</pre></div>ArAgosthttps://wiki.panotools.org/index.php?title=Autopano-sift-C_Compiling_OSX&diff=9984Autopano-sift-C Compiling OSX2008-02-08T15:35:44Z<p>ArAgost: New page: == 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 a...</p>
<hr />
<div>== Building environment ==<br />
<br />
'''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.<br />
<br />
The very first thing you'll have to do is to set up the environment. Please follow the order in which items are presented:<br />
# [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)<br />
# [http://metissian.com/projects/macosx/subversion/ Download] and install subversion (latest stable). This is only needed if you don't use Mac OS X 10.5 Leopard.<br />
# [http://www.macports.org/install.php Download] and install MacPorts from the appropriate .dmg from those listed at the top. <br />
<br />
== Getting the dependencies ==<br />
Open a terminal window (you can find terminal.app inside Applications/utilities)<br />
# First we'll update the ports (you will be asked for your password)<br />
<pre>% sudo port -d sync</pre><br />
# Then we make macports fetch, compile and install all the necessary stuff for libpano/autopano.<br />
<pre>% sudo port install cmake libtool jpeg tiff libpng</pre><br />
This is gonna take a while, so grab a book and wait for macports to finish.<br />
<br />
== Building libpano</div>ArAgosthttps://wiki.panotools.org/index.php?title=Hugin_Compiling_OSX&diff=9983Hugin Compiling OSX2008-02-08T14:51:42Z<p>ArAgost: Added link to intructions to compile autopano-sift-c</p>
<hr />
<div>== Building environment ==<br />
<br />
'''Important note:''' this section is written without hands-on experience of a Mac, based on the [http://groups.google.com/group/hugin-ptx/browse_thread/thread/5666ff65a3570806 experience] reported by John Riley. I'd be grateful if people with access to a Mac can verify and rectify it. After rectification, please remove the note.<br />
<br />
# [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.<br />
# You may find [http://finkcommander.sourceforge.net/ Fink Commander] helpful. Unfortunately it [http://sourceforge.net/forum/forum.php?forum_id=684829 seems] unsupported / unmaintained. The Fink [http://www.finkproject.org/faq/index.php?phpLang=en FAQ] may help. Can somebody please describe here how to install Fink and Fink Commander?<br />
# You may find [http://porticus.alittledrop.com/ Porticus] helpful with [http://www.macports.org/ MacPorts]<br />
# Get and install Subversion<br />
<br />
== Compiling Hugin.app on OSX ==<br />
<br />
OSX Users: Do you wish you could test those snazzy new Hugin features, provide feedback on its development, or contribute patches to make it a better tool? Here are the steps necessary to compile your very own Hugin.app direct from the latest sources:<br />
<br />
# Get and install the build system CMake, version 2.4.7 or later, from [http://www.cmake.org/HTML/Download.html CMake].<br />
# If you don't have it already, install MacPorts, which provides the <tt>port</tt> command, from [http://macports.org MacPorts], giving you compilable package access to thousands of pieces of open source software. If you already have macports (formerly darwinports) installed, update it: <pre>% sudo port selfupdate</pre>Make sure you have synced the latest port files:<pre>% sudo port -d sync</pre><br />
# Don't forget to add <tt>/opt/local/bin</tt> to your path (e.g. <tt>export PATH=/opt/local/bin:$PATH</tt>). Note: I also had to add <tt>/opt/local/include/OpenEXR</tt> to my path.<br />
# Use port to install the necessary libraries and commands for Hugin:<pre>% sudo port install boost tiff jpeg libpng wxWidgets26 subversion openexr exiv2</pre>Wait as all of these things are downloaded and compiled, and placed into /opt/local. Go get a frappe, walk the dog, and total the first 1000 prime numbers in binary. Rinse, lather, repeat as necessary. <br />
# Download and build libpano13 from [http://sourceforge.net/project/showfiles.php?group_id=96188&package_id=237430 SourceForge]. Alternatively, use SVN to checkout a fresh copy of libpano13 ([http://sourceforge.net/svn/?group_id=96188 Instructions]). Build and install it (configure might need to be used with "$ ./configure --with-jpeg=/opt/local/ --with-tiff=/opt/local/", by default it will go into <tt>/usr/local/lib</tt>).<br />
# Check out the hugin sources from SVN, like:<pre>% svn co https://hugin.svn.sourceforge.net/svnroot/hugin/hugin/trunk hugin</pre><br />
# Create another directory alongside the newly created <tt>hugin/</tt> for the build files (a cool feature of CMake: it doesn't need to pollute your source directory with build files!):<pre>% mkdir hugin_build; cd hugin_build</pre><br />
# Configure hugin using cmake from inside the build directory:<pre>% cmake ../hugin</pre><br />
# Fix up a (hopefully temporary) issue with Macport's threaded Boost library not providing generic link names for <tt>libboost_thread</tt>:<br />
<pre>% cd /opt/local/lib<br />
% sudo ln -s libboost_thread-mt.a libboost_thread.a<br />
% sudo ln -s libboost_thread-mt.dylib libboost_thread.dylib<br />
% cd -<br />
</pre><br />
# Compile hugin and friends:<pre>% make</pre>Watch the pretty colors go by. Give the dog another quick spin around the block; you're finished. Look for the new bundle <tt>src/hugin/Hugin.app</tt>. Copy it to <tt>/Applications</tt>, or your preferred location, and commence testing.<br />
<br />
'''Note: This is a new build configuration and you may encounter problems. Report them on [http://groups.google.com/group/hugin-ptx the Hugin mailing list].'''<br />
<br />
== Important Note on the produced Bundle ==<br />
<br />
Since the produced Hugin.app bundle links dynamically to libraries outside of the bundle, it is not yet portable, i.e. cannot be copied or shared unless the other machine has the same collection of libraries available in the same places. This is to facilitate development and testing (re-compile external libraries and test without re-building). Building a fully portable universal binary version at the command line is planned.<br />
<br />
== Notes on wxWidgets ==<br />
<br />
wxWidgets, the GUI toolkit currently employed by Hugin, is currently at version 2.8.4. You can try either this version or the older version 2.6.4. Switching to the latest version is easy:<blockquote>% sudo port deactivate wxWidgets26; sudo port install wxWidgets</blockquote> and recompile by typing <tt>cmake ../hugin; make</tt> in your build directory. Switching back is as easy as:<blockquote>% sudo port deactivate wxWidgets; sudo port activate wxWidgets26</blockquote><br />
<br />
[[User:Jdsmith|Jdsmith]] 23:47, 4 August 2007 (CEST)<br />
<br />
== Building Enblend (using Fink) ==<br />
<br />
follow these [[Enblend_Compiling_OSX|updated instructions]]<br />
<br />
== Bulding Autopano-Sift-C ==<br />
<br />
Follow [[autopano-sift-C_Compiling_OSX|these instructions]]<br />
<br />
[[Category:Software:Hugin]] [[Category:Software:Platform:Mac OS X]]</div>ArAgost