Page 1 of 1

Can't compile Celestia

Posted: 18.06.2007, 22:09
by kikinovak
Hi,

I'm a sysadmin living in Montpezat, South France. All our machines here are running CentOS 5, which is an exact clone of Red Hat Enterprise Linux 5. When a program is not available for this distro, I usually use a Fedora Core 6 source RPM to build the actual RPM. That's what I am trying to do now with Celestia. Unfortunately, I get the following configure error:

Code: Select all

Using $(sysconfdir)/gconf/schemas as install directory for schema files
checking for CAIRO_CFLAGS... -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 
checking for CAIRO_LIBS... -lcairo 
checking for jpeg_start_decompress in -ljpeg... no
configure: error: jpeg library not found


Now the strange thing:

Code: Select all

[root@mediatheque1 ~]# rpm -qa | grep -i jpeg
libjpeg-6b-37
libjpeg-devel-6b-37


What's wrong, doc? Any suggestions?

One last thing:

Code: Select all

[root@mediatheque1 ~]# find / -name 'jpeglib.h'
/usr/include/jpeglib.h


Any suggestions? I'm clueless...

Niki

PS: is there some complete dependency list somewhere? I wonder if I need Qt... sometimes dependencies are not explicitly mentioned in SRPMs.

re

Posted: 19.06.2007, 02:26
by John Van Vliet
try this
$ " ln libjpeg-6b-37 libjpeg-6b "

in configure

Code: Select all

line 36011
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
line 36065
 eval "ac_cv_lib_jpeg_6b=-ljpeg6b"

and so on...

Posted: 19.06.2007, 16:29
by kikinovak
Actually, libjpeg-6b-37 is the name of the libjpeg package. Here's what it contains:

Code: Select all

]# rpm -ql libjpeg
/usr/bin/cjpeg
/usr/bin/djpeg
/usr/bin/jpegtran
/usr/bin/rdjpgcom
/usr/bin/wrjpgcom
/usr/lib/libjpeg.so.62
/usr/lib/libjpeg.so.62.0.0
/usr/share/doc/libjpeg-6b
/usr/share/doc/libjpeg-6b/README
/usr/share/doc/libjpeg-6b/usage.doc
/usr/share/man/man1/cjpeg.1.gz
/usr/share/man/man1/djpeg.1.gz
/usr/share/man/man1/jpegtran.1.gz
/usr/share/man/man1/rdjpgcom.1.gz
/usr/share/man/man1/wrjpgcom.1.gz


I can also do this:

Code: Select all

# whereis libjpeg
libjpeg: /usr/lib/libjpeg.so


And to make sure things are configured OK:

Code: Select all

# ls -l /usr/lib/libjpeg*
lrwxrwxrwx 1 root root     17 jun 18 23:17 /usr/lib/libjpeg.so -> libjpeg.so.62.0.0
lrwxrwxrwx 1 root root     17 jun 16 15:19 /usr/lib/libjpeg.so.62 -> libjpeg.so.62.0.0
-rwxr-xr-x 1 root root 135716 jan  6 07:09 /usr/lib/libjpeg.so.62.0.0


So I'm still clueless.

Any suggestions?

Posted: 19.06.2007, 17:42
by t00fri
You have to look at the /actual/ errors in config.log. The printed errors are often not the actual ones, due to "follow-up" effects.

So look at what happens BEFORE the jpeg test!

jpeg not found errors we had several times already.
E.g.
http://www.celestiaproject.net/forum/viewtopic ... sc&start=0

How about looking FIRST into the powerful search engine of this forum??


Bye Fridger

Posted: 19.06.2007, 18:30
by kikinovak
Yeah, first thing I did indeed was search the forum. Duly RTFM'ed, but to no avail. Looks like most of the guys simply forgot to install according -devel packages.

Now I'm at home on a Debian machine, but tomorrow I'll get back to work and have a look at the configure log file. I'll report that back then.

Q: is there a somehow complete list of Celestia build dependencies? Libs and versions? That would help.

Cheers,

Niki

Posted: 19.06.2007, 20:59
by cartrite
As Fridger stated above, your errors may have nothing to do with the jpeg libs. If I remember correctly, I was getting similar errors a while back. The cure was an up to date gettext package. I think.
cartrite