Erro ao instalar o tiff-4.0.3

1

Eu recebo os seguintes erros ao instalar o 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  **

Como posso me livrar desses erros?

    
por pranav 05.03.2013 / 08:57

3 respostas

3

A versão do libtiff4 que você está tentando instalar não é mais suportada pelo Ubuntu, no entanto versões mais recentes do libtiff4 estão disponíveis. Uma lista das versões do libtiff4 que estão disponíveis para todas as versões do Ubuntu, classificadas por nomes de lançamento do Ubuntu, pode ser encontrada aqui .

Você pode encontrar a versão do libtiff4 que corresponde ao seu sistema abrindo o Ubuntu Software Center e digitando "libtiff4" na caixa de pesquisa.

No Ubuntu 14.04, 14.10, 15.04, 15.10 e 16.04 o pacote libtiff4 foi substituído pelo libtiff5.

    
por karel 05.03.2013 / 09:17
0
typedef enum { FALSE= 0, TRUE= 1 } boolean;

isso não funciona para mim. no entanto, isso funciona:

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

sim, feio, mas pelo menos compila.

    
por feider 24.01.2014 / 13:29
-1

Basta editar o arquivo /usr/local/include/jmorecfg.h na linha 263 e substituir o espaço antes do sinal = .

Alterar

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

para

typedef enum { FALSE= 0, TRUE= 1 } boolean;
    
por Christian Wimmer 14.06.2013 / 15:22