MinGW support, JPEG issue
[email protected] ("Pierre Joye") Sat, 19 Apr 2008 12:04:29 +0200
| Newsgroups | php.gd.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! Yesterday I restored the full mingw support in cvs HEAD (cvs co ... gd/libgd). It is not possible to compile gd smoothly using CMake and mingw. It works well so far except the JPEG library support. The problem seems to be known but the solutions I found did not work at all here: gd-jpeg: JPEG library reports unrecoverable error: JPEG parameter struct mismatch: library thinks size is 464, caller expects 432 This is due to the size of the jpeg_decompress_struct struct which differs between the library and gd. The problem is that GD was built using this exact library using its header. I also use the recommended flag ms-bitfields. I use the MinGW port for libz, libpng and libpng (the goal is to have the safest possible mingw build). Any help or advice will be greatly appreciated (I'm out of ideas...). The tests/jpeg/ tests can be used to reproduce the problem. As soon as we found a solution, I can then provide again windows builds for 2.0.x, and snapshots from HEAD (2.1). Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org