LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing GD: error: jpeglib.h: No such file or directory (https://www.linuxquestions.org/questions/linux-software-2/installing-gd-error-jpeglib-h-no-such-file-or-directory-570617/)

guarriman 07-19-2007 03:30 AM

Installing GD: error: jpeglib.h: No such file or directory
 
Hi.

On FC7, I'm trying to install GD library from sources (last version, 2.0.35):
Code:

[]# mkdir /usr/local/gd
[]# configure --prefix=/usr/local/gd
... ok ...
[]# make

and I get this error message
Code:

gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include/freetype2 -I/usr/local/inc lude -g -O2 -MT gd_jpeg.lo -MD -MP -MF .deps/gd_jpeg.Tpo -c gd_jpeg.c  -fPIC -DP IC -o .libs/gd_jpeg.o
gd_jpeg.c:47:21: error: jpeglib.h: No such file or directory
gd_jpeg.c:48:20: error: jerror.h: No such file or directory
gd_jpeg.c:60: error: expected ')' before 'cinfo'
gd_jpeg.c:112: error: expected ')' before 'cinfo'
gd_jpeg.c: In function 'gdImageJpegCtx':
gd_jpeg.c:116: error: storage size of 'cinfo' isn't known
gd_jpeg.c:117: error: storage size of 'jerr' isn't known
gd_jpeg.c:120: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'r ow'
gd_jpeg.c:120: error: 'row' undeclared (first use in this function)
gd_jpeg.c:120: error: (Each undeclared identifier is reported only once
gd_jpeg.c:120: error: for each function it appears in.)
gd_jpeg.c:121: error: 'JSAMPROW' undeclared (first use in this function)
gd_jpeg.c:121: error: expected ';' before 'rowptr'
gd_jpeg.c:123: error: 'JDIMENSION' undeclared (first use in this function)
gd_jpeg.c:123: error: expected ';' before 'nlines'
gd_jpeg.c:154: error: 'fatal_jpeg_error' undeclared (first use in this function)
gd_jpeg.c:161: error: 'JCS_RGB' undeclared (first use in this function)
gd_jpeg.c:164: error: 'TRUE' undeclared (first use in this function)
gd_jpeg.c:178: error: expected ';' before 'gdCalloc'
gd_jpeg.c:188: error: 'rowptr' undeclared (first use in this function)
gd_jpeg.c:193: error: 'JPEG_LIB_VERSION' undeclared (first use in this function)
gd_jpeg.c:198: error: 'JPEG_COM' undeclared (first use in this function)
gd_jpeg.c:222: error: 'nlines' undeclared (first use in this function)
gd_jpeg.c:250:2: error: #error IJG JPEG library BITS_IN_JSAMPLE value must be 8 or 12
gd_jpeg.c: At top level:
gd_jpeg.c:283: error: expected ')' before 'cinfo'
gd_jpeg.c: In function 'gdImageCreateFromJpegCtx':
gd_jpeg.c:293: error: storage size of 'cinfo' isn't known
gd_jpeg.c:294: error: storage size of 'jerr' isn't known
gd_jpeg.c:297: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'r ow'
gd_jpeg.c:297: error: 'row' undeclared (first use in this function)
gd_jpeg.c:299: error: 'JSAMPROW' undeclared (first use in this function)
gd_jpeg.c:299: error: expected ';' before 'rowptr'
gd_jpeg.c:301: error: 'JDIMENSION' undeclared (first use in this function)
gd_jpeg.c:301: error: expected ';' before 'nrows'
gd_jpeg.c:325: error: 'fatal_jpeg_error' undeclared (first use in this function)
gd_jpeg.c:333: error: 'JPEG_APP0' undeclared (first use in this function)
gd_jpeg.c:335: error: 'TRUE' undeclared (first use in this function)
gd_jpeg.c:336: error: 'JPEG_HEADER_OK' undeclared (first use in this function)
gd_jpeg.c:360: error: 'JCS_CMYK' undeclared (first use in this function)
gd_jpeg.c:361: error: 'JCS_YCCK' undeclared (first use in this function)
gd_jpeg.c:367: error: 'JCS_RGB' undeclared (first use in this function)
gd_jpeg.c:444: error: 'jpeg_saved_marker_ptr' undeclared (first use in this func tion)
gd_jpeg.c:444: error: expected ';' before 'marker'
gd_jpeg.c:453: error: 'marker' undeclared (first use in this function)
gd_jpeg.c:481: error: 'JSAMPLE' undeclared (first use in this function)
gd_jpeg.c:488: error: 'rowptr' undeclared (first use in this function)
gd_jpeg.c:493: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c urrow'
gd_jpeg.c:493: error: 'currow' undeclared (first use in this function)
gd_jpeg.c:495: error: 'nrows' undeclared (first use in this function)
gd_jpeg.c:514: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c urrow'
gd_jpeg.c: At top level:
gd_jpeg.c:634: error: field 'pub' has incomplete type
gd_jpeg.c:653: error: expected ')' before 'cinfo'
gd_jpeg.c:700: error: expected ')' before 'cinfo'
gd_jpeg.c:768: error: expected ')' before 'cinfo'
gd_jpeg.c:810: error: expected ')' before 'cinfo'
gd_jpeg.c:828: error: expected ')' before 'cinfo'
gd_jpeg.c:866: error: field 'pub' has incomplete type
gd_jpeg.c:882: error: expected ')' before 'cinfo'
gd_jpeg.c:920: error: expected ')' before 'cinfo'
gd_jpeg.c:945: error: expected ')' before 'cinfo'
gd_jpeg.c:966: error: expected ')' before 'cinfo'
make[2]: *** [gd_jpeg.lo] Error 1
make[2]: Leaving directory `/root/install/gd-2.0.35'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/install/gd-2.0.35'
make: *** [all] Error 2

Any similar experience? I did this installation 10 times on other PCs, and worked fine.

This 'jpeglib.h' file can be found if you download JPEG libraries from:
http://www.ijg.org/files/

I also installed this libraries at '/usr/local/jpeg-6b', but when
Code:

./configure --prefix=/usr/local/gd --with-jpeg=/usr/local/jpeg-6b
I get the same error :(

Thank you very much.

rylan76 07-20-2007 05:58 AM

Hmm... I can get GD to configure and compile correctly on FC6 by doing

./configure --with-jpeg=/usr/lib/libjpeg.a

for GD. I guess you'd need to have libjpeg.a on your FC7 system in the same location for this to work.


All times are GMT -5. The time now is 09:02 AM.