Ошибка при установке tiff 4.0.3

Я получаю следующие ошибки при установке tiff 4.0.3:

pranav@pranav-Inspiron-1545:~$ cd dependency/
pranav@pranav-Inspiron-1545:~/dependency$ tar -xvf libtiff4-3.6.0-5.tar.bz2 
usr/bin/cygtiff4.dll  

pranav@pranav-Inspiron-1545:~/dependency$ tar -xvf libtiff4-3.6.0-5-src.tar.bz2 
Libtiff is now configured for i686-pc-linux-gnu

  Installation directory:             /usr/local  
  Documentation directory:            ${prefix}/share/doc/tiff-4.0.3  
  C compiler:                         gcc -g -O2 -Wall -W  
  C++ compiler:                       g++ -g -O2  
  Enable runtime linker paths:        no  
  Enable linker symbol versioning:    no  
  Support Microsoft Document Imaging: yes  
  Use win32 IO:                       no  

 Support for internal codecs:  
  CCITT Group 3 & 4 algorithms:       yes  
  Macintosh PackBits algorithm:       yes  
  LZW algorithm:                      yes  
  ThunderScan 4-bit RLE algorithm:    yes  
  NeXT 2-bit RLE algorithm:           yes  
  LogLuv high dynamic range encoding: yes  

 Support for external codecs:  
  ZLIB support:                       yes  
  Pixar log-format algorithm:         yes  
  JPEG support:                       yes  
  Old JPEG support:                   yes  
  JPEG 8/12 bit dual mode:            no  
  ISO JBIG support:                   no  
  LZMA2 support:                      no  

  C++ support:                        yes  

  OpenGL support:                     no  

pranav@pranav-Inspiron-1545:~/dependency/tiff-4.0.3$ make
Making all in port  
make[1]: Entering directory `/home/pranav/dependency/tiff-4.0.3/port'  
make[1]: Nothing to be done for `all'.  
make[1]: Leaving directory `/home/pranav/dependency/tiff-4.0.3/port'  
Making all in libtiff  
make[1]: Entering directory `/home/pranav/dependency/tiff-4.0.3/libtiff'  
make  all-am  
make[2]: Entering directory `/home/pranav/dependency/tiff-4.0.3/libtiff'  
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -g -O2 -Wall -W -MT tif_jpeg.lo -MD -MP -MF .deps/tif_jpeg.Tpo -c -o tif_jpeg.lo tif_jpeg.c  
libtool: compile:  gcc -DHAVE_CONFIG_H -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:88:  
/usr/local/include/jmorecfg.h:263:16: error: expected identifier before numeric constant
**make[2]: *** [tif_jpeg.lo] Error 1  **
**make[2]: Leaving directory `/home/pranav/dependency/tiff-4.0.3/libtiff'  **  
**make[1]: *** [all] Error 2**  
make[1]: Leaving directory `/home/pranav/dependency/tiff-4.0.3/libtiff'  
**make: *** [all-recursive] Error 1  **

Как я избавляюсь от этих ошибок?

1
задан 14 June 2013 в 18:26

3 ответа

Просто отредактируйте файл /usr/local/include/jmorecfg.h в строке 263 и замените пробел перед знаком =.

Изменить

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

на

typedef enum { FALSE= 0, TRUE= 1 } boolean;
0
ответ дан 14 June 2013 в 18:26
typedef enum { FALSE= 0, TRUE= 1 } boolean;

это не работает для меня. однако, это работает:

//typedef enum { FALSE= 0, TRUE= 1 } boolean;
#define boolean bool

да, уродливо, но по крайней мере это компилируется.

0
ответ дан 14 June 2013 в 18:26

Версия libtiff4, которую вы пытаетесь установить, больше не поддерживается Ubuntu, однако доступны более новые версии libtiff4. Список версий libtiff4, доступных для всех версий Ubuntu, отсортированных по именам выпусков Ubuntu, можно найти здесь здесь .

Чтобы найти версию libtiff4, которая соответствует вашей системе, откройте Центр программного обеспечения Ubuntu и введите «libtiff4» в поле поиска.

В Ubuntu 14.04, 14.10, 15.04, 15.10 и 16.04 пакет libtiff4 был заменен на libtiff5.

0
ответ дан 14 June 2013 в 18:26

Другие вопросы по тегам:

Похожие вопросы: