mozjpeg
mozjpeg copied to clipboard
Compiler errors when building on win32/mingw
Hi there,
I am trying to (statically) build mozjpeg for/on 32bit Windows under cygwin/mingw, however, the following errors occur:
jmorecfg.h:209:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
#define LOCAL(type) static type
^
jccolext.c:31:1: note: in expansion of macro ‘LOCAL’
LOCAL(void)
^
Full output of make
is here.
I tried ./configure
with --enable-static --disable-shared
as it was suggested in #245 and also without it. I followed similar steps on othere platforms and I am not getting the errors there.
Any ideas on what I am doing wrong or how can I further debug this?
Thanks.
It looks like ./configure
generates invalid configuration and/or your compiler is weird and broken.
Officially libjpeg-turbo
(on which MozJPEG is based) only supports CMake
on Windows, so probably this is unsupported, even in mingw environment.
So forget about configure && make, and try cmake instead.