[FFmpeg-user] not able to build libmp3lame.so using command

Reindl Harald h.reindl at thelounge.net
Fri Oct 4 14:31:43 CEST 2013



Am 04.10.2013 14:15, schrieb Sudarshan:
> Hi All,
> I am compiling the libmp3lame, and wanted to creat libmp3lame.so but failed
> to do it
> I used following steps from the Centos OS compilation guild by the ffmpeg
> team.
>  cd ~/ffmpeg_sources
>  curl -L -O
> http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
>  tar xzvf lame-3.99.5.tar.gz
>  cd lame-3.99.5
>  ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
> --enable-shared --enable-static
>  make
> 
> also I have tried to remove static flag from configuration and compilated
> but it don't generate libmp3lame.so
> 
> if you need my log, let me know I will provide it

%build
sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure
export CFLAGS="%{optflags} -fPIC -fPIE -ffast-math"
export LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack -pie"
export SH_LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack -pie"
%configure --disable-static --enable-mp3x --enable-mp3rtp --enable-decode-layer1 --enable-expopt=norm
%{__make} %{?_smp_mflags}
____________________________________

[builduser at testserver:~]$ rpm -q --filesbypkg lame-devel
lame-devel                /usr/include/lame
lame-devel                /usr/include/lame.h
lame-devel                /usr/include/lame/lame.h
lame-devel                /usr/lib64/libmp3lame.so

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20131004/b656767e/attachment.asc>


More information about the ffmpeg-user mailing list