sprhawk / leptonica

Automatically exported from code.google.com/p/leptonica
0 stars 0 forks source link

Compilation error against giflib 5.1.0 #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Giflib is changed its API in version 5.1.0.
Leptonica doesn't compile.

 gifio.c: In function 'pixReadStreamGif':
 gifio.c:124:9: error: too few arguments to function 'DGifCloseFile'
          DGifCloseFile(gif);
          ^
 In file included from gifio.c:72:0:
 /usr/include/gif_lib.h:183:9: note: declared here
      int DGifCloseFile(GifFileType * GifFile, int *ErrorCode);
          ^
 gifio.c:129:9: error: too few arguments to function 'DGifCloseFile'
          DGifCloseFile(gif);

And so on…

Can you help, please?

Original issue reported on code.google.com by lazy.ken...@gmail.com on 26 Sep 2014 at 8:53

GoogleCodeExporter commented 9 years ago
Are you using 1.70?

1.71 should handle all these various versions of giflib.

Original comment by dan.bloo...@gmail.com on 26 Sep 2014 at 9:01

GoogleCodeExporter commented 9 years ago
I'm using 1.70.
Where can I find the 1.71 version?
Thanks.

Original comment by lazy.ken...@gmail.com on 26 Sep 2014 at 9:20

GoogleCodeExporter commented 9 years ago
you can download it from leptonica.org.

e.g., see the note at the top of the leptonica home page on this site: 
https://code.google.com/p/leptonica/

Original comment by dan.bloo...@gmail.com on 26 Sep 2014 at 10:10