error: jpeglib.h: No such file or directory
| From: | thomas Armstrong | Date: | Thu, 19 Jul 2007 08:34:19 +0000 |
| Subject: | error: jpeglib.h: No such file or directory | ||
| Groups: | php.gd.devel | ||
| Request: | Send a blank email to php-gd-devel+get-231@lists.php.net to get a copy of this message | ||
Hi.
On FC7, I'm trying to install GD library from sources (last version, 2.0.35):
------------------------------------
[]# mkdir /usr/local/gd
[]# configure --prefix=/usr/local/gd
... ok ...
[]# make
------------------------------------
and I get this error message
------------------------------------
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:
[url]http://www.ijg.org/files/[/url]
I also installed this libraries at '/usr/local/jpeg-6b', but when
------------------------------------
./configure --prefix=/usr/local/gd --with-jpeg=/usr/local/jpeg-6b
------------------------------------
I get the same error :(
Thank you very much.