On 06/22/2010 03:23 AM, Albrecht Schlosser wrote:

> And here we may have a problem since we're still using jpeglib 7.
> My guess is that you don't use FLTK's bundled jpeglib, and that
> you have a newer version installed on your system. Maybe this
> definition has been removed?
> 
> Which FLTK version do you use, BTW?

I knew I'd forgotten to mention it a second after I clicked "Send".
Version 1.1.10, latest after "svn update" is "At revsion 7652".

Fedora 13 comes with 6b; its MINGW package supplies 7.  I must
hand edit FLTK's makeinclude along the lines of

  http://fltk.org/newsgroups.php?gfltk.general+v:16612

It's certainly possible I muffed a "-I..." somewhere and incorporated
the older .h files.

> What happens if you configure with --enable-localjpeg ?

No complaints about "boolean", but I did notice that all of .../jpeg/
is unnecessarily recompiled as I trudge back to a working makeinclude
(because I was too stupid to save the one I made *without*
"--enable-localjpeg").

> For FLTK 1.3, however, we need to use the newer libjpeg anyway.
> Filing an STR for this would be a good idea.

Erm..  Since the bug went away "--enable-localjpeg", it is still a bug?

Reading further in the thread, I see the bad news:

> What is the exact error message ?

Oh, no!  Now I feel obligated to try to reconstruct it.  It isn't so easy
since FLTK resists cross-building ...

OK.  I got it. after "mingw-configure" (without "--enable-localjpeg)
and another bout of hand editing, after "rm src/Fl_JPEG_Image.o":

$ mingw32-make
=== making src ===
Compiling Fl_JPEG_Image.cxx...
Fl_JPEG_Image.cxx: In constructor 'Fl_JPEG_Image::Fl_JPEG_Image(const char*)':
Fl_JPEG_Image.cxx:158: error: 'boolean' was not declared in this scope
Fl_JPEG_Image.cxx:158: error: expected ';' before numeric constant
make[1]: *** [Fl_JPEG_Image.o] Error 1
make: *** [all] Error 1

Following Ian's advice to consider jmorecfg.h, I looked in mingw's version
and found a possible explanation:

"""
/*
 * On a few systems, type boolean and/or its values FALSE, TRUE may appear
 * in standard header files.  Or you may have conflicts with application-
 * specific header files that you want to include together with these files.
 * Defining HAVE_BOOLEAN before including jpeglib.h should make it work.
 */
typedef int jpeg_boolean;
     :
"""

I see that "typedef boolean ..." or something similar is nowhere to be found.

Jim

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to