Page 1 of 1

FFMPEG in alternative directory : cannot find -lmp3lame

Posted: 09 Oct 2009 19:46
by DrGonzo
Hi guys,

I try to compile from source mp3lame, x264, ffmpeg & VLC. I got troube tryin to make vlc, it seems it keeps looking for mp3lame in current dir instead of appropriate one, I cant find the right set of options. Here are my compile lines. If anyone got a clue, well, thx a lot.

LIBMP3LAME

./configure --prefix=/usr/local/lame --enable-shared
make
make install

X264

./configure --prefix=/usr/local/x264 --enable-shared
make
make install

FFMPEG

./configure --prefix=/usr/local/ffmpeg --enable-postproc --enable-gpl --enable-libmp3lame --enable-libx264 --enable-shared --extra-cflags=-I/usr/local/lame/include --extra-ldflags=-L/usr/local/lame/lib --extra-cflags=-I/usr/local/x264/include --extra-ldflags=-L/usr/local/x264/lib
make
make install

VLC

export PKG_CONFIG_PATH="/usr/local/src/ffmpeg/libpostproc:/usr/local/src/ffmpeg/libavformat:/usr/local/src/ffmpeg/libavcodec:/usr/local/src/ffmpeg/libavutil:/usr/local/src/ffmpeg/libswscale:/usr/local/src/ffmpeg/libavdevice"
./configure --prefix=/usr/local/vlc --disable-x11 --disable-glx --disable-xcb --disable-xcb --disable-xvideo --disable-opengl --disable-skins2
make


Here is the error when I make VLC :

/usr/bin/ld: cannot find -lmp3lame
collect2: ld returned 1 exit status
make[6]: *** [libavcodec_plugin.la] Error 1
make[6]: Leaving directory `/usr/local/src/vlc-1.0.2/modules/codec/avcodec'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/usr/local/src/vlc-1.0.2/modules/codec/avcodec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/local/src/vlc-1.0.2/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/local/src/vlc-1.0.2/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/vlc-1.0.2/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/vlc-1.0.2'
make: *** [all] Error 2

Re: FFMPEG in alternative directory : cannot find -lmp3lame

Posted: 09 Oct 2009 22:58
by xtophe
first it'd be better to point pkg-config at /usr/local/ffmpeg/lib/pkgconfig/

then you should add /usr/local/lame/lib to your LDFLAGS

Re: FFMPEG in alternative directory : cannot find -lmp3lame

Posted: 10 Oct 2009 14:17
by DrGonzo
Hi,

Thx for the reply. Compile works now. I got another problem though :

When I try to start VLC I got the following error :

vlc: unknown option or missing mandatory argument `--sout-ts-pid-video=68'

Do I miss some flag at compile time to have access to that option ?

Thx again.

Julien.

Re: FFMPEG in alternative directory : cannot find -lmp3lame

Posted: 10 Oct 2009 14:25
by xtophe
looks like you don't have the mux_ts module. Most likely you don't have libdvbpsi or configure didn't find it

Re: FFMPEG in alternative directory : cannot find -lmp3lame

Posted: 10 Oct 2009 14:46
by DrGonzo
Ok, thx again. That was it. Same kind of problem now with :

vlc: unknown option or missing mandatory argument `--rtp-client-port=1618'

What am I missing here ?

Julien

Re: FFMPEG in alternative directory : cannot find -lmp3lame

Posted: 12 Oct 2009 17:27
by RĂ©mi Denis-Courmont
live555