problème compilation trouve pas avcodec.h

bonjour

Je veux compiler un soft XBMC et au configure j’ai une erreur

./configure --enable-external-libraries --enable-external-ffmpeg --enable-external-libmad --enable-external-liba52 --enable-external-libdts --enable-external-libfaad --enable-external-libmpeg2 --enable-external-libass --enable-external-libvorbis --enable-external-libogg --enable-external-libmpcdec --enable-external-libflac --enable-external-libwavpa ....................................... checking for main in -lswscale... yes checking libavcodec/avcodec.h usability... no checking libavcodec/avcodec.h presence... no checking for libavcodec/avcodec.h... no checking ffmpeg/avcodec.h usability... no checking ffmpeg/avcodec.h presence... no checking for ffmpeg/avcodec.h... no configure: error: Could not find some required headers. Please see the README for your platform.
pourtant j’ai bien les dev
$ locate avcodec.h
/usr/include/ffmpeg/libavcodec/avcodec.h

$ pkg-config --cflags libavcodec
-I/usr/include/ffmpeg

Effectivement si je fais les liens symboliques

ln -s /usr/include/ffmpeg/libavcodec/avcodec.h /usr/include/ffmpeg/avcodec.h

ca fonctionne (il faut aussi le faire pour d’autre fichier)

Mais je veux utiliser une méthode sans faire des liens symboliques.

 ./configure --help
`configure' configures "xbmc" 9.04 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/-xbmc-]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-debug          enable debugging information (default is yes)
  --enable-optimizations  enable optimization (default is yes)
  --enable-gl             enable OpenGL rendering (default is yes)
  --enable-vdpau          enable VDPAU decoding (default is yes)
  --enable-profiling      enable gprof profiling (default is no)
  --enable-joystick       enable SDL joystick support (default is yes)
  --enable-xrandr         enable XRandR support (default is yes)
  --enable-ccache         enable building with ccache feature (default is yes
                          if ccache is installed)
  --enable-pulse          enable PulseAudio support (default is yes)
  --enable-faac           enable FAAC support (default is yes)
  --enable-dvdcss         enable DVDCSS support (default is yes)
  --enable-mid            enable MID support (default is no)
  --disable-avahi         disable Avahi support (default is enabled if
                          libavahi-common and libavahi-client is found)
  --enable-external-libraries
                          enable use of all supported external libraries
                          (default is no) 'Linux only'
  --enable-external-ffmpeg
                          enable use of external ffmpeg libraries (default is
                          no) 'Linux only'
  --enable-external-libmad
                          enable use of external libmad library (default is
                          no) 'Linux only'
  --enable-external-liba52
                          enable use of external liba52 library (default is
                          no) 'Linux only'
  --enable-external-libdts
                          enable use of external libdts library (default is
                          no) 'Linux only'
  --enable-external-libfaad
                          enable use of external libfaad library (default is
                          no) 'Linux only'
  --enable-external-libmpeg2
                          enable use of external libmpeg2 library (default is
                          no) 'Linux only'
  --enable-external-libass
                          enable use of external libass library (default is
                          no) 'Linux only'
  --enable-external-libvorbis
                          enable use of external libvorbis library (default is
                          no) 'Linux only'
  --enable-external-libogg
                          enable use of external libogg library (default is
                          no) 'Linux only'
  --enable-external-libmpcdec
                          enable use of external libmpcdec library (default is
                          no) 'Linux only'
  --enable-external-libflac
                          enable use of external libflac library (default is
                          no) 'Linux only'
  --enable-external-libwavpack
                          enable use of external libwavpack library (default
                          is no) 'Linux only'
  --enable-external-python
                          enable use of external python library (default is
                          no) 'Linux only'

Some influential environment variables:
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CC          C compiler command
  CFLAGS      C compiler flags
  CXXCPP      C++ preprocessor
  CPP         C preprocessor

J’essaye de jouer avec export (CXX CXXFLAGS …) mais je n’y arrive pas

Qui peut me donner un coup de main? merci

Ce ne serait pas linux-headers-xx qu’il te manque ?

[quote=“Myth0logy”]Ce ne serait pas linux-headers-xx qu’il te manque ?[/quote]non je les ai.

Je change le titre d’ailleur

C’est un bug donc. Si pkg-config renvoie ca et qu’il cherche dans le resultat de pkg-config alors il devrait trouver…
Et dans le config.log, ptet des infos?

Sinon:

CPPFLAGS="-I/usr/include/ffmpeg" ./configure
?

mélange paquet ffmpeg de lenny/debian et paquet ffmpeg de lenny/debian-multimedia

merci à vous c’est effectivement ca mélange de différente versions debian et debian-multimedia

J’ai réglé le problème avec l’aide de ignatioza

C’est marrant j’étais certain de l’avoir fait. CPPFLAGS="-I/usr/include/ffmpeg/"
merci encore

A propos c’est ca que je veux essayer xbmc.fr/

[quote=“limax”]A propos c’est ca que je veux essayer xbmc.fr/[/quote]Très beau ! :smiley:

@limax

Merci de l’idée d’installer XBMC, c’est vraiment un très beau média center !
Un peu chaud à installer… Mais quand ça tourne, c’est coooooooool ! :smiley: