LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2007, 03:30 AM   #1
guarriman
Member
 
Registered: Nov 2004
Posts: 101

Rep: Reputation: 15
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.
 
Old 07-20-2007, 05:58 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error installing S-PLus 7.0 -- bash: ./[ANYFILENAME]: No such file or directory purple_monkey Linux - Software 1 04-25-2007 07:03 PM
test.c:1:19: error: stdio.h: No such file or directory Lokathor Debian 2 09-14-2006 12:11 PM
installing a wifi driver gives no such file or directory. please help zonemikel Linux - Hardware 13 09-07-2006 09:48 AM
Installing jpeglib.h bytesurfer Linux - Hardware 2 10-05-2005 12:11 AM
make error with kdenetwork-3.0.5a: no such file or directory olisr72 Linux - Software 1 07-28-2003 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration