2013.12.03 07:29 "[Tiff] jpeglib.h present but cannot be compiled...", by Nacho Man

2013.12.03 07:45 "Re: [Tiff] jpeglib.h present but cannot be compiled...", by Nacho Man

I think I figured out the problem.  It only happens when I include the -DHAVE_BOOLEAN option in the CPPFLAGS  variable.  When I remove that and re-add my code to the tiffiop.h, I no longer get that error.  Here's the code that I added again:

#ifndef HAVE_BOOLEAN
# ifndef TRUE
#  define TRUE    1
#  define FALSE   0               /* values of boolean */
# endif
typedef unsigned char boolean;
#define HAVE_BOOLEAN
#endif

And here's part of the config.log complaining about the boolean stuff.

configure:17851: checking jpeglib.h usability

configure:17851: powerpc64-ps3-elf-gcc -c -I/usr/local/ps3dev/ppu/include -I/usr/local/ps3dev/portlibs/ppu/include -Wall -W -I/usr/local/ps3dev/ppu$

In file included from conftest.c:116:0:

/usr/local/ps3dev/portlibs/ppu/include/jpeglib.h:103:3: error: unknown type name 'boolean'

   boolean sent_table;  /* TRUE when table has been output */
   ^

/usr/local/ps3dev/portlibs/ppu/include/jpeglib.h:119:3: error: unknown type name 'boolean'

   boolean sent_table;  /* TRUE when table has been output */

On Tuesday, December 3, 2013 2:40 AM, Nacho Man <nacho2874@yahoo.com> wrote:

I have gotten the new version of the tiff library to compile for the PS3 thanks to everyones help. I run configure though, I receive the following message:   When

checking jpeglib.h usability... no
checking jpeglib.h presence... yes
configure: WARNING: jpeglib.h: present but cannot be compiled
configure: WARNING: jpeglib.h:     check for missing prerequisite headers?
configure: WARNING: jpeglib.h: see the Autoconf documentation

configure: WARNING: jpeglib.h:     section "Present But Cannot Be Compiled"
configure: WARNING: jpeglib.h: proceeding with the compiler's result
configure: WARNING:     ## -------------------------------------- ##
configure: WARNING:     ## Report this to tiff@lists.maptools.org ##
configure: WARNING:     ## -------------------------------------- ##

checking for jpeglib.h... no

I'm still using jpeg v9.  Is that the reason?  Should I be using version 09a from http://www.infai.org/jpeg/?

These are my configure options:

CPPFLAGS="-I${PSL1GHT}/ppu/include -I${PS3DEV}/portlibs/ppu/include -DHAVE_BOOLEAN" \
CFLAGS="-I${PSL1GHT}/ppu/include -I${PS3DEV}/portlibs/ppu/include" \
LDFLAGS="-L${PSL1GHT}/ppu/lib -L${PS3DEV}/portlibs/ppu/lib -lrt -llv2" \
PKG_CONFIG_PATH="${PS3DEV}/portlibs/ppu/lib/pkgconfig" \
../configure --prefix="${PS3DEV}/portlibs/ppu" --host="powerpc64-ps3-elf" --disable-shared --enable-option-checking

I have even tried putting a -DHAVE_BOOLEAN at the end of the CFLAGS even though I believe the -D[macro definition] flag is only for the preprocessor.  Any ideas?   And thanks for the help.

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/