libtiff - 安装 tiff-3.8.2 时出错

标签 libtiff

pranav@pranav-Inspiron-1545:~/dependency/tiff-3.8.2$ make
Making all in port
make[1]: Entering directory `/home/pranav/dependency/tiff-3.8.2/port'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/pranav/dependency/tiff-3.8.2/port'
Making all in libtiff
make[1]: Entering directory `/home/pranav/dependency/tiff-3.8.2/libtiff'
make  all-am
make[2]: Entering directory `/home/pranav/dependency/tiff-3.8.2/libtiff'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I.     -g -O2 -Wall -W -MT tif_jpeg.lo -MD -MP -MF ".deps/tif_jpeg.Tpo" -c -o tif_jpeg.lo tif_jpeg.c; \
    then mv -f ".deps/tif_jpeg.Tpo" ".deps/tif_jpeg.Plo"; else rm -f ".deps/tif_jpeg.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -Wall -W -MT tif_jpeg.lo -MD -MP -MF .deps/tif_jpeg.Tpo -c tif_jpeg.c  -fPIC -DPIC -o .libs/tif_jpeg.o
In file included from /usr/local/include/jpeglib.h:27:0,
                 from tif_jpeg.c:87:
/usr/local/include/jmorecfg.h:263:16: error: expected identifier before numeric constant
tif_jpeg.c: In function 'JPEGVSetField':
tif_jpeg.c:1578:8: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
make[2]: *** [tif_jpeg.lo] Error 1
make[2]: Leaving directory `/home/pranav/dependency/tiff-3.8.2/libtiff'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/pranav/dependency/tiff-3.8.2/libtiff'
make: *** [all-recursive] Error 1

最佳答案

编辑文件:/usr/local/include/jmorecfg.h
换行:

typedef enum { FALSE = 0 , TRUE = 1 } boolean;

到:
typedef enum { false= 0 , true= 1 } boolean;

然后,取得成功。

关于libtiff - 安装 tiff-3.8.2 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15172387/

相关文章:

c++ - 在 Visual Studio 2010 中使用 LibTiff

c++ - 如何读取自定义 TIFF 标签(无 TIFFFieldInfo)

c# - 如何创建 tesseract OCR 可读的 TIFF 文件?

c# - 使用 LibTiff - C# 读取像素的 RGB 值

c++ - 如何在 C++ 中使用颜色图(调色板)保存 tif

python - 在 python 中处理 Group4 TIFF 图像

c# - 在 C# 中使用 libtiff 从一种 TIFF 格式转换为另一种

c - 32 位 TIFF 图像呈白色且与 RAW 不同

tiffcp.exe 将结果文件与循环中的结果文件合并

c++ - 保存大型原始图像的最快方法