2012.07.06 13:15 "Re: [Tiff] Update of tiffgt.c", by Robert Wilson
Dear all,
As I understand, since tiff 4.0 the configure script doesn't recognize the option --with_apple_opengl_framework anymore. Indeed, this option was removed from autoconf-gl-macros (from which AX_CHECK_GL in m4/acinclude.m4 is taken) as of 2007-11-29.
Therefore, I suggest cleaning up tools/tiffgt.c to remove the use of HAVE_APPLE_OPENGL_FRAMEWORK -- here is a patch.
Dear Christophe et. al.,
I apologise for not replying to the original e-mail directly, but I have only just joined the mailing list.
I am concerned about the idea of removing the HAVE_APPLE_OPENGL_FRAMEWORK section from tools/tiffgt.c.
I compile libtiff on OSX 10.6.8, and have had problems building the libtiff v4.0.x versions of the package due to tools/tiffgt.c. After configuring the package as follows:
CFLAGS="-O3 -mmacosx-version-min=10.6 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk" \
./configure --enable-shared --disable-static \
--disable-dependency-tracking \
--prefix=$TIFF_CONFIGURE_PREFIX \
--disable-cxx \
--with-jpeg-include-dir=$JPEG_CONFIGURE_PREFIX/include \
--with-jpeg-lib-dir=$JPEG_CONFIGURE_PREFIX/lib
when running make I encountered the following error:
tiffgt.c:38:20: error: GL/gl.h: No such file or directory
tiffgt.c:39:22: error: GL/glut.h: No such file or directory
...
make[1]: *** [tiffgt-tiffgt.o] Error 1
make[1]: *** Waiting for unfinished jobs....
...
make: *** [all-recursive] Error 1
However, I realised I could pass HAVE_APPLE_OPENGL_FRAMEWORK to the C preprocessor to bypass the issue of the missing GL/gl.h file as follows:
CFLAGS="-O3 -mmacosx-version-min=10.6 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -DHAVE_APPLE_OPENGL_FRAMEWORK" \
./configure --enable-shared --disable-static \
--disable-dependency-tracking \
--prefix=$TIFF_CONFIGURE_PREFIX \
--disable-cxx \
--with-jpeg-include-dir=$JPEG_CONFIGURE_PREFIX/include \
--with-jpeg-lib-dir=$JPEG_CONFIGURE_PREFIX/lib
Unless I have misunderstood something if this section of code is changed as suggested I would need to manually edit tools/tiffgt.c before I could compile the package, so I would strongly argue against making this change and if possible would like to see the configure option --with_apple_opengl_framework reinstated.
Best wishes,
Robert Wilson