[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] libjpeg



Am Dienstag, den 15.06.2010, 11:53 +0200 schrieb Peter Slegg
<p.slegg@scubadivers.co.uk>:
> On Tue, 15 Jun 2010 12:43:35 , Miro Kropacek <miro.kropacek@gmail.com>
> wrote:
>> > In file included from /usr/include/jpeglib.h:27,
>> > á á á á á á á á from p_about.c:31:
>> > /usr/include/jmorecfg.h:156: warning: empty declaration
>> > make: *** [obj.040/p_about.o] Error 1
>> It this is only error message, I suspect -Werror is used (i.e.
>> interpret warning as errors).
>>
>> > The offending line is the typedef:
>> >
>> > /* INT16 must hold at least the values -32768..32767. */
>> >
>> > #ifndef XMD_H á á á á á á/* X11/xmd.h correctly defines INT16
>>  */
>> > typedef short INT16;
>> > #endif
>> >
>> >
>> > I suspect this might not be needed but suggestions welcomed.
>> Well, you shouldn't change official headers (in /usr/include). So
>> either inspect why you get this warning in source code (gcc4, i.e.
>> strict compiler for example) or remove -Werror flag from Highwire as
>> temporary solution.
>>
> 
> As a temporary solution I added -DXMD_H  to the gcc def options
> in the HW makefile.

So this "fix" would just leave the INT16 undefined. 
I don't know the libjpeg - but does it really depend on X11 code? If so,
there is probably an way to disable these parts of libjpeg. Did you
executed "./configure --help" or something like that to see witch options
are available? Maybe there is something like, for example:
--disable-x11-stuff )