Can not build vlc-1.0.3 under openSuSE 11.2 x86_64

*nix specific usage questions
alexmkh
New Cone
New Cone
Posts: 2
Joined: 15 Nov 2009 20:13

Can not build vlc-1.0.3 under openSuSE 11.2 x86_64

Postby alexmkh » 15 Nov 2009 20:26

Wile building rpm package (rpmbuild -bb vlc.spec) I'd got:

/bin/sh ../../../libtool --tag=CC --mode=link gcc -std=gnu99 `top_srcdir="../../.." top_builddir="../../.." ../../../vlc-config --cflags plugin libavcodec_plugin.la` -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -rpath '/usr/lib64/vlc/codec' -avoid-version -module -export-symbol-regex ^vlc_entry -shrext .so -no-undefined `top_srcdir="../../.." top_builddir="../../.." ../../../vlc-config --ldflags plugin libavcodec_plugin.la` -o libavcodec_plugin.la libavcodec_plugin_la-avcodec.lo libavcodec_plugin_la-video.lo libavcodec_plugin_la-audio.lo libavcodec_plugin_la-deinterlace.lo libavcodec_plugin_la-fourcc.lo libavcodec_plugin_la-chroma.lo libavcodec_plugin_la-encoder.lo `top_srcdir="../../.." top_builddir="../../.." ../../../vlc-config -libs plugin libavcodec_plugin.la` ../../../src/libvlccore.la ../../../compat/libcompat.la
libtool: link: gcc -std=gnu99 -shared .libs/libavcodec_plugin_la-avcodec.o .libs/libavcodec_plugin_la-video.o .libs/libavcodec_plugin_la-audio.o .libs/libavcodec_plugin_la-deinterlace.o .libs/libavcodec_plugin_la-fourcc.o .libs/libavcodec_plugin_la-chroma.o .libs/libavcodec_plugin_la-encoder.o -Wl,--whole-archive ../../../compat/.libs/libcompat.a -Wl,--no-whole-archive -Wl,-rpath -Wl,/usr/src/packages/BUILD/vlc-1.0.3/src/.libs -lpthread -lavcodec -lavutil -lm ../../../src/.libs/libvlccore.so -mtune=athlon64 -m64 -Wl,-soname -Wl,libavcodec_plugin.so -o .libs/libavcodec_plugin.so
/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: cannot find -lavcodec
collect2: ld returned 1 exit status
make[6]: *** [libavcodec_plugin.la] Error 1
make[6]: Leaving directory `/usr/src/packages/BUILD/vlc-1.0.3/modules/codec/avcodec'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/usr/src/packages/BUILD/vlc-1.0.3/modules/codec/avcodec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/src/packages/BUILD/vlc-1.0.3/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/packages/BUILD/vlc-1.0.3/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/vlc-1.0.3/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/vlc-1.0.3'
make: *** [all] Error 2

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Can not build vlc-1.0.3 under openSuSE 11.2 x86_64

Postby Jean-Baptiste Kempf » 16 Nov 2009 08:39

Install libavcodec-devel
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

alexmkh
New Cone
New Cone
Posts: 2
Joined: 15 Nov 2009 20:13

Re: Can not build vlc-1.0.3 under openSuSE 11.2 x86_64

Postby alexmkh » 16 Nov 2009 19:39

Dear j-b, thank you for your advice, but I can't find nor libavcodec nor libavcodec-devel for openSuSE 11.2 x86_64.
The only I have is libavcodec52-0.5.20511svn-0.pm.1.2.x86_64 .
Please, advice.

dimstar
Cone that earned his stripes
Cone that earned his stripes
Posts: 177
Joined: 15 Dec 2006 14:05
Location: Bucuresti, Romania
Contact:

Re: Can not build vlc-1.0.3 under openSuSE 11.2 x86_64

Postby dimstar » 10 Dec 2009 21:25

a) I assume you have the VideoLAN repo enabled and are just trying to build your own version? (or any other good reason to build it yourself?)

either way: libavcodec is part of he ffmpeg suite. So for the developmen headers you'll need ffmpeg-devel.


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

Who is online

Users browsing this forum: No registered users and 10 guests