Page 1 of 1

Compilation Error: configure: error: jpeg library not found

Posted: 07.10.2005, 21:27
by rdasilva
Hi, I'm getting the same compilation errors (v1.3.2) no matter which options I try with 'configure', i.e. --wth-kde, --with-gnome, --with-glut or --with-gtk. Same for --without-.... I get:

=========

checking for libjpeg6b... no
checking for libjpeg... no
configure: WARNING: libjpeg not found. disable JPEG support.
checking for Qt... libraries /usr/lib/qt3/lib64, headers /usr/lib/qt3/include using -mt
checking if Qt compiles without flags... no
checking for moc... /usr/lib/qt3/bin/moc
checking for uic... /usr/lib/qt3/bin/uic
checking whether uic supports -L ... yes
checking whether uic supports -nounload ... yes
checking if Qt needs ... sed: -e expression #1, char 0: no previous regular expression
yes
checking for rpath... yes
checking for KDE... libraries /opt/kde3/lib64, headers /opt/kde3/include
checking if UIC has KDE plugins available... yes
checking for KDE paths... defaults
checking for dcopidl... /opt/kde3/bin/dcopidl
checking for dcopidl2cpp... /opt/kde3/bin/dcopidl2cpp
checking for mcopidl... /opt/kde3/bin/mcopidl
checking for artsc-config... /opt/kde3/bin/artsc-config
checking for kde-config... /opt/kde3/bin/kde-config
checking for meinproc... /opt/kde3/bin/meinproc
checking for jpeg_start_decompress in -ljpeg... no
configure: error: jpeg library not found


=========

I'm certain I have all the libjpeg libraries installed:

/tmp/celestia-1.3.2 # ll /usr/lib/libjpeg*
lrwxrwxrwx 1 root root 12 Oct 7 21:52 /usr/lib/libjpeg.so -> libjpeg.so.6
lrwxrwxrwx 1 root root 16 Oct 6 19:42 /usr/lib/libjpeg.so.6 -> libjpeg.so.6.0.1
-rwxr-xr-x 1 root root 142000 May 30 17:10 /usr/lib/libjpeg.so.6.0.1
lrwxrwxrwx 1 root root 17 Oct 6 19:42 /usr/lib/libjpeg.so.62 -> libjpeg.so.62.0.0
-rwxr-xr-x 1 root root 125804 May 30 17:04 /usr/lib/libjpeg.so.62.0.0


I manually created the 'libjpeg.so' but that didn't help either.

Compiling on AMD 64 3700+ with NVidia 6600GT (Dual DVI) with 1.5Gb of RAM. Distro: Suse 9.3 (x86_64). Using gcc (GCC) 3.3.5 20050117.

uname -a:

Linux isis 2.6.11.4-21.9-default #1 Fri Aug 19 11:58:59 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux

Any help would be very much appreciated as I'm desperate to run Celestia and have been for a couple of years now. Compilation crashed my previous system and I was very much hoping that my new powerful hardware would solve the problems. Many thanks in advance. I can email you my 'config.log' if you send me an email. It's too long to post here...

Posted: 07.10.2005, 21:34
by t00fri
Of course you need all the header files (*.h) besides the runtime libraries as well. Typically during the configure tests, the error message says xxxlibrary not found but often it's the corresponding /header/ files that are missing.

Depending on the Linux distribution, they might e.g. be called jpeg-devel*.rpm. Similarly for the other libs.

Good luck,
Bye Fridger

Posted: 07.10.2005, 22:01
by rdasilva
Thanks, but unfortunately that didn't work either. I installed 'jpeg-6b-738.src.rpm' which seems to correspond to the 'libjpeg' rpm I have installed on my system, namely: 'libjpeg-6.2.0-738.1.x86_64.rpm'. The 'configure' script still responds as before.

I can't think what the problem is. I installed Suse 9.3 yesterday and updated it with the latest available packages.

Posted: 07.10.2005, 22:17
by t00fri
rdasilva wrote:Thanks, but unfortunately that didn't work either. I installed 'jpeg-6b-738.src.rpm' which seems to correspond to the 'libjpeg' rpm I have installed on my system, namely: 'libjpeg-6.2.0-738.1.x86_64.rpm'. The 'configure' script still responds as before.

I can't think what the problem is. I installed Suse 9.3 yesterday and updated it with the latest available packages.


Excuse me but you forgot to install libjpeg-devel-6.2 which is new since SuSE9.3. In 9.x<9.3 the headers and lib*.a were in libjpeg-6.2.

Just believe me and install the stuff...I CAN think what the problem is ;-)

It's always useful to learn the command options of rpm.
Then you may easily test what is in an rpm archive by

rpm -pql libjpeg-devel-6.2.0-4.i586.rpm

before installing
Bye Fridger

Posted: 07.10.2005, 22:27
by rdasilva
Unfortunately libjpeg-6.2-devel doesn't seem to be available for Suse 9.3. It's on my 9.2 DVD but installing that changes the error to:

There is an installation error in jpeg support. You seem to have only one
of either the headers _or_ the libraries installed. You may need to either
provide correct --with-extra-... options, or the development package of
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
Disabling JPEG support.

which is logical seeing as I'm now mixing versions in desperation. I also downloaded the source (jpegsrc.v6b.tar.gz) from http://www.ijg.org/ and passed its install path to configure with --with-extra-include=... but I get the same error as above. I guess I also need to pass the libraries using --with-extra-libs=... but I don't know where/if they are installed...

I now have the following installed:

> rpm -q jpeg
jpeg-6b-738.1 (installed by Suse 9.3 install)
> rpm -q libjpeg
libjpeg-6.2.0-738.1 (installed by Suse 9.3 install)
> rpm -q libjpeg-devel
libjpeg-devel-6.2.0-2 (installed manually from Suse 9.2 install DVD)

I also have the expected header file in /usr/include:

-rw-r--r-- 1 root root 46205 Oct 2 2004 jpeglib.h

Posted: 07.10.2005, 22:49
by t00fri
rdasilva wrote:Unfortunately libjpeg-6.2-devel doesn't seem to be available for Suse 9.3. It's on my 9.2 DVD but installing that changes the error to:

There is an installation error in jpeg support. You seem to have only one
of either the headers _or_ the libraries installed. You may need to either
provide correct --with-extra-... options, or the development package of
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
Disabling JPEG support.

which is logical seeing as I'm now mixing versions in desperation. I also downloaded the source (jpegsrc.v6b.tar.gz) from http://www.ijg.org/ and passed its install path to configure with --with-extra-include=... but I get the same error as above. I guess I also need to pass the libraries using --with-extra-libs=... but I don't know where/if they are installed...

I now have the following installed:

> rpm -q jpeg
jpeg-6b-738.1 (installed by Suse 9.3 install)
> rpm -q libjpeg
libjpeg-6.2.0-738.1 (installed by Suse 9.3 install)
> rpm -q libjpeg-devel
libjpeg-devel-6.2.0-2 (installed manually from Suse 9.2 install DVD)

I also have the expected header file in /usr/include:

-rw-r--r-- 1 root root 46205 Oct 2 2004 jpeglib.h


Why don't you download the actual version of the file from the SuSE server. The CD is ALWAYS completely outdated. This seemed to be your first SuSE installation... ;-)

ftp://ftp.tu-chemnitz.de/pub/linux/suse/ftp.suse.com/suse/i386/9.3/suse/i586/

You should NEVER combine headers with libs belonging to different versions. Instead you could have quickly compiled the SuSE 9.3 *src.rpm SOURCES which automatically produces also the *devel* archive. Why on earth to you use the *tar.gz sources?


I note that all these issues are completely INDEPENDENT of Celestia...certainly not pertaining to "Celestia BUGS".

Bye Fridger

Posted: 07.10.2005, 22:58
by rdasilva
Enschueldigung Bye, I have now downloaded the 64-bit version of the libjpeg-devel package. That was the problem. I didn't think the Suse FTP server would have additional files to what I had on the CD. I DO now! I guess I'm not experienced enough with this stuff. Anyway, it's compiling now... Actually, it's just finished and I'm running it now! Fantastic!

Vielen dank fuer ihre hilfe und entschueldigung dass ich ihre zeit benutzt habe.

Tschuss!

Posted: 07.10.2005, 23:06
by t00fri
rdasilva wrote:Enschueldigung Bye, I have now downloaded the 64-bit version of the libjpeg-devel package. That was the problem. I didn't think the Suse FTP server would have additional files to what I had on the CD. I DO now! I guess I'm not experienced enough with this stuff. Anyway, it's compiling now... Actually, it's just finished and I'm running it now! Fantastic!

Vielen dank fuer ihre hilfe und entschueldigung dass ich ihre zeit benutzt habe.

Tschuss!


Excellent! Much fun!

All the needed jpeg archives are generated by one src.rpm,
jpeg-6b-738.src.rpm. All you got to do when compiling it yourself would be

> rpm -ihv jpeg-6b-738.src.rpm
> cd /usr/src/packages/SPECS
> rpmbuild -ba <jpeg spec file>

Then you install all the generated *.rpm files with

> rpm -Uhv *rpm
> SuSEconfig

Never forget to call SuSEconfig at the end...

Bye Fridger