It looks like there's a naming conflict between zm and the newly released libjpeg release 8. Here's the error that you'll likely see when you build it:
zm_jpeg.h:39: error: declaration of C function ‘void jpeg_mem_src(jpeg_decompress_struct*, const JOCTET*, int)’ conflicts with
/usr/include/jpeglib.h:959: error: previous declaration ‘void jpeg_mem_src(jpeg_decompress_struct*, unsigned char*, long unsigned int)’ here
zm_jpeg.h:40: error: declaration of C function ‘void jpeg_mem_dest(jpeg_compress_struct*, JOCTET*, int*)’ conflicts with
/usr/include/jpeglib.h:956: error: previous declaration ‘void jpeg_mem_dest(jpeg_compress_struct*, unsigned char**, long unsigned int*)’ here
make[2]: *** [zmc.o] Error 1
jpeg_mem_[src|dest] are now taken by jpeglib.h What I did to make it work is to just rename all zm declarations and references to jpeg_mem_src2 and jpeg_mem_dest2.
Please update the zm source to correct this. Thanks.
compile problem with libjpeg8
-
- Posts: 319
- Joined: Thu Jul 20, 2006 1:07 am
- Location: Australia
-
- Posts: 2
- Joined: Thu Jan 28, 2010 5:46 pm
- lazyleopard
- Posts: 403
- Joined: Tue Mar 02, 2004 6:12 pm
- Location: Gloucestershire, UK