FFMPEG in alternative directory : cannot find -lmp3lame

*nix specific usage questions
DrGonzo
New Cone
New Cone
Posts: 5
Joined: 09 Oct 2009 19:26

FFMPEG in alternative directory : cannot find -lmp3lame

Postby DrGonzo » 09 Oct 2009 19:46

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

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: FFMPEG in alternative directory : cannot find -lmp3lame

Postby xtophe » 09 Oct 2009 22:58

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
Xtophe

DrGonzo
New Cone
New Cone
Posts: 5
Joined: 09 Oct 2009 19:26

Re: FFMPEG in alternative directory : cannot find -lmp3lame

Postby DrGonzo » 10 Oct 2009 14:17

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.

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: FFMPEG in alternative directory : cannot find -lmp3lame

Postby xtophe » 10 Oct 2009 14:25

looks like you don't have the mux_ts module. Most likely you don't have libdvbpsi or configure didn't find it
Xtophe

DrGonzo
New Cone
New Cone
Posts: 5
Joined: 09 Oct 2009 19:26

Re: FFMPEG in alternative directory : cannot find -lmp3lame

Postby DrGonzo » 10 Oct 2009 14:46

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: FFMPEG in alternative directory : cannot find -lmp3lame

Postby Rémi Denis-Courmont » 12 Oct 2009 17:27

live555
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 19 guests