[MPlayer-dev-eng] CONFIG_MP3LAME solution ..

Bohdan Horst nexus at irc.pl
Wed Nov 5 14:18:13 CET 2003


On Wed, Nov 05, 2003 at 02:04:34PM +0100, Arpi wrote:
> Hi,
> 
> > 
> > is that patch will be ok ? :
> > 
> > --- configure   Wed Nov  5 13:51:44 2003
> > +++ configure Wed Nov  5 13:48:56 2003
> > @@ -5949,6 +5949,9 @@
> >     Note: for mencoder */
> >  $_def_mp3lame
> >  #define CONFIG_MP3LAME HAVE_MP3LAME
> > +#ifdef __FreeBSD__
> > +#undef CONFIG_MP3LAME
> > +#endif
> 
> 
> why don't you find the reason of error, insteda of ugly workarounds?
> if both libmp3lame and libavcodec compiles on bsd, and the same
> config works on linux, it should on bsd too. maybe a linking issue?
> 
> send a full bugreport, etc
> 


i know the problem .. but i don't know how to fix it ..
(i send small bugreport some days ago)



on FreeBSD:
/usr/local/lib/libmp3lame.so
/usr/local/include/lame/lame/h


configure detect mp3lame :

============ Checking for libmp3lame (for mencoder) ============
#include <lame/lame.h>
int main(void) { lame_version_t lv; (void) lame_init(); get_lame_version_numerical(&lv);  printf("%d%d\n",lv.major,lv.minor); return 0; }
cc   -I/usr/local/include   -L/usr/local/lib /tmp/mplayer-conf--56187.c
-o /tmp/mplayer-conf--56187.
o -lmp3lame -lvorbis -logg -lm
ldd /tmp/mplayer-conf--56187.o
/tmp/mplayer-conf--56187.o:
        libmp3lame.so.0 => /usr/local/lib/libmp3lame.so.0 (0x28066000)
        libvorbis.so.2 => /usr/local/lib/libvorbis.so.2 (0x28104000)
        libogg.so.4 => /usr/local/lib/libogg.so.4 (0x28124000)
        libm.so.2 => /usr/lib/libm.so.2 (0x28128000)
        libc.so.4 => /usr/lib/libc.so.4 (0x28144000)
393
Result is: yes


mplayer/mencoder compile fine (using EXTRA_INC and EXTRA_LIB)

libavcodec don't .. without EXTRA_INC cannot compile:

mp3lameaudio.c:
#include <lame/lame.h>


-- 
 /  irl: Bohdan 'Nexus' Horst  |  irc: Nexus  \
{----------------------v-------^---------------}
 \ http://irc.pl/nexus | mailto: nexus&irc.pl /



More information about the MPlayer-dev-eng mailing list