Hi,
> 1. Download fromftp://
ftp.remotesensing.org/pub/libtiff
> 2. Build x86 normally:
>
> ./configure --with-apple-opengl-framework
> make
> sudo make install
> cp libtiff/.libs/libtiff.3.dylib .
> cp libtiff/.libs/libtiffxx.3.dylib .
> cp libtiff/.libs/libtiff.a .
>
> 3. Build ppc:
>
> make clean
> ./configure --with-apple-opengl-framework CFLAGS="-arch ppc"
> CPPFLAGS="-arch ppc" LDFLAGS="-arch ppc"
> make
>
> 4. Create universal binary:
>
> sudo lipo -create libtiff.3.dylib libtiff/.libs/libtiff.3.dylib -
> output /usr/local/lib/libtiff.3.dylib
> sudo lipo -create libtiffxx.3.dylib libtiff/.libs/libtiffxx.
> 3.dylib -output /usr/local/lib/libtiffxx.3.dylib
> sudo lipo -create libtiff.a libtiff/.libs/libtiff.a -output /usr/
> local/lib/libtiff.a
I'm on a PPC machine, so it would be "the other way round", but thanks
for your instructions.
> This will build libtiff as correct universal. It will install it in /
> usr/local. If you want it in /opt/local you need to add the prefix
> and change the last lipo command.
The main problem seems to be an endianess issue in the header files
for libtiff. Others ran into the same problem and found a workaround -
this fellow (also named Dominik :-) had a patch <
http://www.dleo.de/
howto/imagemagick_fuer_os_x_kompilieren>.
> If you want it in macports /opt/local, the best is to use a standard
> macports install and then overwrite it with your universal libs.
I used the MacPorts install and just split it into two parts. First I
downloaded, extracted and configured the sources with 'sudo port
configure tiff +universal'. Then I manually applied the fixes to
'tif_config.h' and 'tifconf.h'. Now I could finish it with 'sudo port
install tiff +universal'. This will pick up the current state and go
on with the freshly modified headers, so you don't need to mess with
'lipo'.
At the moment I'm building a fresh universal build of 'enblend' and
'enfuse', I'll update my instruction pages and the MacPorts ticket for
'tiff' if that's working for me.
Regards,
Dominik.