|
Packit Service |
6754ca |
OpenEXR on MacOS X
|
|
Packit Service |
6754ca |
------------------
|
|
Packit Service |
6754ca |
|
|
Packit Service |
6754ca |
Building OpenEXR on MacOS X is just like building it on GNU/Linux.
|
|
Packit Service |
6754ca |
Follow the instructions in the README file under BUILDLING OPENEXR,
|
|
Packit Service |
6754ca |
but see below re: shared libraries.
|
|
Packit Service |
6754ca |
|
|
Packit Service |
6754ca |
Missing gnu automake tools on Mac OS X 10.8+
|
|
Packit Service |
6754ca |
------------------
|
|
Packit Service |
6754ca |
Later versions of OS X ,10.8+, do not, by default have all the necessary
|
|
Packit Service |
6754ca |
tools for building. In particular, Autoconf and Automake may be missing.
|
|
Packit Service |
6754ca |
|
|
Packit Service |
6754ca |
The following commands will download and install the necessary components:
|
|
Packit Service |
6754ca |
|
|
Packit Service |
6754ca |
cd ~/myDevLoc
|
|
Packit Service |
6754ca |
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.64.tar.gz
|
|
Packit Service |
6754ca |
tar xzf autoconf-2.64.tar.gz
|
|
Packit Service |
6754ca |
cd autoconf-2.64
|
|
Packit Service |
6754ca |
./configure --prefix=~/myDevLoc/autotools-bin
|
|
Packit Service |
6754ca |
make; make install
|
|
Packit Service |
6754ca |
|
|
Packit Service |
6754ca |
cd ~/myDevLoc
|
|
Packit Service |
6754ca |
curl -OL http://ftpmirror.gnu.org/automake/automake-1.12.tar.gz
|
|
Packit Service |
6754ca |
tar xzf automake-1.12.tar.gz
|
|
Packit Service |
6754ca |
cd automake-1.12
|
|
Packit Service |
6754ca |
./configure --prefix=~/myDevLoc/autotools-bin
|
|
Packit Service |
6754ca |
make; make install
|
|
Packit Service |
6754ca |
|
|
Packit Service |
6754ca |
cd ~/myDevLoc
|
|
Packit Service |
6754ca |
curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.tar.gz
|
|
Packit Service |
6754ca |
tar xzf libtool-2.4.tar.gz
|
|
Packit Service |
6754ca |
cd libtool-2.4
|
|
Packit Service |
6754ca |
./configure --prefix=~/myDevLoc/autotools-bin
|
|
Packit Service |
6754ca |
make; make install
|
|
Packit Service |
6754ca |
|
|
Packit Service |
6754ca |
|
|
Packit Service |
6754ca |
You may want to export the installation path for your convenience.
|
|
Packit Service |
6754ca |
Finally, make sure that you have installed the command line tools for XCode.
|
|
Packit Service |
6754ca |
|
|
Packit Service |
6754ca |
|
|
Packit Service |
6754ca |
Universal Builds on Mac OS X
|
|
Packit Service |
6754ca |
------------------
|
|
Packit Service |
6754ca |
|
|
Packit Service |
6754ca |
On OS X 10.4, you can build universal binaries by passing
|
|
Packit Service |
6754ca |
'--enable-osx-universal-binaries --disable-dependency-tracking' to the
|
|
Packit Service |
6754ca |
configure script. The default is *not* to build universal binaries.
|
|
Packit Service |
6754ca |
|
|
Packit Service |
6754ca |
|
|
Packit Service |
6754ca |
Shared libraries
|
|
Packit Service |
6754ca |
----------------
|
|
Packit Service |
6754ca |
|
|
Packit Service |
6754ca |
OpenEXR requires the "flat namespace" option when built as a shared
|
|
Packit Service |
6754ca |
library. You may have problems trying to use OpenEXR shared libraries
|
|
Packit Service |
6754ca |
with applications that expect OS X's two-level namespace. We have not
|
|
Packit Service |
6754ca |
tested the shared libs extensively, though they appear to work with
|
|
Packit Service |
6754ca |
exrdisplay and exrheader, but use them at your own risk. We will
|
|
Packit Service |
6754ca |
support two-level namespace shared libs in a future release.
|