Enblend Compiling OSX

From PanoTools.org Wiki
(Difference between revisions)
Jump to: navigation, search
(Removed "TODO: add openexr" to avoid confusion that this is part of the instructions)
(added link to Domink Schütter MacPorts alternative)
Line 60: Line 60:
 
If the prereq step tries to pull in db44 and it fails to compile, grab the binary of boost instead using <tt>sudo apt-get install boost1.33</tt>
 
If the prereq step tries to pull in db44 and it fails to compile, grab the binary of boost instead using <tt>sudo apt-get install boost1.33</tt>
  
 +
== MacPorts alternative ==
 +
 +
If you have MacPorts on your Mac, you may want to try [http://dev.ultravelours.com/ports/enblend/ these] instructions.
 
[[Category:Software:Hugin]] [[Category:Software:Platform:Mac OS X]]
 
[[Category:Software:Hugin]] [[Category:Software:Platform:Mac OS X]]

Revision as of 14:11, 5 January 2008

Contents

Build Environment

  1. Download and install the XCode Tools version for the operating system on the machine that you will use for the building job.
  2. Install Fink for your environment and configure Fink to use the unstable repositories. See the Fink FAQ for information about the unstable packages and Fink Downloads for a package installer or source code for Fink (depending on your OS).

Building and installing Enblend/Enfuse

Fink itself provides access to an earlier build of Enblend3 - however, this is not the latest version, and may not even be properly compilable from Fink at the moment. The following instructions are geared towards those who want to install the latest version of Enblend (including the new companion tool, Enfuse). The instructions are split into two sections: 1) satisfying prerequisites, which must only be done once; and 2) building the latest Enblend/Enfuse source, which may be done as often as you'd like.

These instructions have been tested on OSX 10.4 and 10.5 on both x86 and PPC systems:

Satisfying Enblend Dependencies and other Prerequisites

1. Install dependencies:

fink install lcms lcms-shlibs boost1.33 libtiff libtiff-shlibs libxmi libxmi-shlibs libjpeg libjpeg-shlibs libpng libpng-shlibs

Click yes to all questions from Fink.

2. Modify the lcms header file:

sudo sed -i= 's/memory.h/\/usr\/include\/memory.h/' "/sw/include/lcms.h"

Building Enblend/Enfuse from the Latest Source

3. Download enblend from cvs,

cvs -z3 -d:pserver:anonymous@enblend.cvs.sourceforge.net:/cvsroot/enblend co -P enblend
cd enblend

4. Setup environment variables:

export CFLAGS='-I/sw/include -I/Developer/Headers/FlatCarbon'
export LDFLAGS=-L/sw/lib 
export CXXFLAGS=$CFLAGS 
export CPPFLAGS=$CXXFLAGS 
export ACLOCAL_FLAGS="-I /sw/share/aclocal" 
export PKG_CONFIG_PATH="/sw/lib/pkgconfig:/usr/local/lib/pkgconfig"

5. Build and install enblend

make -f Makefile.cvs
./configure --with-apple-opengl-framework
make
sudo make install 

Enblend and Enfuse should now be installed in /usr/local/bin/ and ready to use; you may need to open a new terminal window in order for your shell to find the new binaries.

Troubleshooting

If you see errors during make -f Makefile.cvs similar to the following, add autoconf2.5 and automake in fink.

configure.in:22: error: possibly undefined macro: AC_DEFINE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:30: error: possibly undefined macro: AC_MSG_WARN
make: *** [all] Error 1

If the prereq step tries to pull in db44 and it fails to compile, grab the binary of boost instead using sudo apt-get install boost1.33

MacPorts alternative

If you have MacPorts on your Mac, you may want to try these instructions.

Personal tools
Namespaces

Variants
Actions
Navigation
tools
Tools