Forum Linux.mandriva pb de compilation "libjpeg.h manquant"

Posté par  .
Étiquettes : aucune
0
6
nov.
2005
J'essaye de compiler w3cam-0.7.2:
./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for POSIXized ISC... no
checking for pow in -lm... (cached) yes
checking for gzopen in -lz... (cached) no
checking for png_create_write_struct in -lpng... (cached) no
checking for jpeg_set_defaults in -ljpeg... (cached) no
checking --with-syslog=?... no
checking --with-device=?... /dev/video
checking --with-ttf-inc=?... /usr/local/X11/include
checking for TT_Init_FreeType in -lttf... (cached) no
creating ./config.status
creating Makefile
creating w3camd/Makefile


il me crée bien makefile mais bon...on essaye make qd même :
make
cd w3camd && make
make[1]: Entering directory `/home/yann/w3cam-0.7.2/w3camd'
gcc -g -O2 -I/usr/local/include -I/usr/local/X11/include -I.. -I. -I/usr/local/include -g -DDEBUG -DCAM_PORT=8999 -D_REENTRANT -c w3camd.c
w3camd.c:29:21: jpeglib.h: No such file or directory
In file included from w3camd.c:33:
w3jpeg.h:24: error: syntax error before "int"
w3camd.c: In function `write_jpeg':
w3camd.c:103: error: `JSAMPROW' undeclared (first use in this function)
w3camd.c:103: error: (Each undeclared identifier is reported only once
w3camd.c:103: error: for each function it appears in.)
w3camd.c:103: error: syntax error before "row_ptr"
w3camd.c:104: error: storage size of 'jpeg' isn't known
w3camd.c:105: error: storage size of 'jerr' isn't known
w3camd.c:121: error: `JCS_RGB' undeclared (first use in this function)
w3camd.c:123: error: `TRUE' undeclared (first use in this function)
w3camd.c:124: error: `JDCT_FASTEST' undeclared (first use in this function)
w3camd.c:127: error: `row_ptr' undeclared (first use in this function)
make[1]: *** [w3camd.o] Erreur 1
make[1]: Leaving directory `/home/yann/w3cam-0.7.2/w3camd'
make: *** [w3camd/w3camd] Erreur 2


A mon avis, tout le pb vient de ce qui est souligné: jpeglib.h: No such file or directory
et pourtant , j'ai :
/usr/lib/libjpeg.so.62
/usr/lib/libjpeg.so.62.0.0

bon, je regarde w3camd.c à la ligne 29 ( celle qui a l'air d'être la source du pb):
#include <jpeglib.h>

je ne l'aurai pas dans /usr/lib/libjpeg.so.62 ??
j'essaye donc un ./configure --with-libjpeg-dir=/usr/lib/libjpeg.so.62 ( sans trop savoir, avouons le...)
ca ne change rien : c'est le même pb

Pourriez vous m'aider :
est-ce que libjpeg.so.62 contient jpeglib.h ?
sinon, comment l'installe-t-on ?
je croyais que si un ./configure créait un makefile, tout était ok ?

PS: j'ai essayé d'installer ce programme via rpm, l'installation est ok, mais le programme ne fonctionne pas, c'est pour cela que j'essaye de compiler les sources ( etd'en apprendre un peu plus sur linux par la même occasion)

Merci

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.