I have my own libmad installed in /usr/local/lib.

So I configure avifile, for autodetection works well, with :
./configure --enable-x86opt --enable-release

And get :

Configuration:
Compiler C:       gcc -g -O2 -march=i586 -ffast-math  -pipe 
Compiler C++:     g++ -g -O2 -march=i586 -ffast-math  -pipe 
Install path:     /usr/local
Qt:               yes
Sdl:              yes
Xft:              yes
Oss audio:        yes
Sun audio:        no
Mga_vid:          no
Plugins:
  ac3passthrough  yes  (with SBLive only)
  divx4           yes  (DivX :-), OpenDivX, DivX4)
  ffmpeg          yes  (DivX :-), OpenDivX, MJPEG, AC3)
  os motion jpeg  yes  (MJPEG)
  win32           yes  (DivX, WMF1/2, DV, MJPEG, Ati, Asus,...)
  MAD             yes  (MPEG Layer I/II/III)
  ogg/vorbis      yes
  lame runtime    yes

A check to config.log to see if libmad is well detected :

configure:11837: checking for mad_stream_init in -lmad
configure:11864: gcc -o conftest -g -O2 -march=i586 -ffast-math  -pipe  
-Wall -
Wno-unused  -L/usr/X11R6/lib -L/usr/lib/qt conftest.c -lmad -lmad
-lpthread -lns
l -ldl  -lm >&5
configure:11867: $? = 0
configure:11870: test -s conftest
configure:11873: $? = 0
configure:11884: result: yes

Fine, but when compiling :

[...]
Making all in libmad
make[2]: Entering directory
`/usr/local/src/divx/avifile/avifile-0.6/plugins/libmad'
make[3]: Entering directory
`/usr/local/src/divx/avifile/avifile-0.6/plugins/libmad'
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
        -I../../include   -Wall -Wno-unused   -g -O2 -march=i586        -ffast-math 
-pipe  -c libmad.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../../include -Wall -Wno-unused -g -O2
        -march=i586 -ffast-math -pipe -Wp,-MD,.deps/libmad.pp -c libmad.cpp 
        -fPIC -DPIC -o libmad.lo
libmad.cpp: In function `const char * error_str(mad_error)':
libmad.cpp:44: warning: enumeration value `MAD_ERROR_NONE' not handled
        in switch
/bin/sh ../../libtool --mode=link g++   -g -O2 -march=i586 -ffast-math 
        -pipe  -L/usr/X11R6/lib -L/usr/lib/qt -o libmad_audiodec.la     -rpath
/usr/local/lib/avifile0.6 -module -avoid-version libmad.lo      -lmad
-lpthread -lnsl -ldl -lm
mkdir .libs
rm -fr .libs/libmad_audiodec.la .libs/libmad_audiodec.*
        .libs/libmad_audiodec.*
(cd . && ln -s libmad.lo libmad.o)
gcc -shared  libmad.lo  -Wl,--rpath
        -Wl,/usr/local/src/divx/avifile/avifile-0.6/plugins/libmad/.libs
        -Wl,--rpath -Wl,/usr/local/lib/avifile0.6  -L/usr/lib   -L/usr/X11R6/lib
-L/usr/lib/qt
/usr/local/src/divx/avifile/avifile-0.6/plugins/libmad/.libs/libmad.so
        -lpthread -lnsl -ldl -lm   -Wl,-soname -Wl,libmad_audiodec.so -o
        .libs/libmad_audiodec.so
gcc:
/usr/local/src/divx/avifile/avifile-0.6/plugins/libmad/.libs/libmad.so:
No such file or directory
make[3]: *** [libmad_audiodec.la] Erreur 1
make[3]: Leaving directory
`/usr/local/src/divx/avifile/avifile-0.6/plugins/libmad'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory
`/usr/local/src/divx/avifile/avifile-0.6/plugins/libmad'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory
`/usr/local/src/divx/avifile/avifile-0.6/plugins'
make: *** [all-recursive] Erreur 1

I have to purge my own libmad to have compiling work...

I do not attach config.log, but can provide it ;)

-- 
C�dric Blancher
Consultant s�curit� syst�mes et r�seaux
Cartel Informatique - Groupe CGBI - http://www.cartel-info.fr/
T�l : 01 44 06 97 87 - Fax 01 44 06 97 99


_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to