armv5te-softfloat-linux/bin/ld: cannot find -lavformat

*nix specific usage questions
yuntianruoren
Blank Cone
Blank Cone
Posts: 17
Joined: 07 Mar 2010 13:19
Operating System: Linux - Debian
Location: Taiwan

armv5te-softfloat-linux/bin/ld: cannot find -lavformat

Postby yuntianruoren » 01 Nov 2010 04:03

Hi, everyone
My VLC's problem has not been resolved.

Mission: cross compile VLC to CDK
VLC version: 1.1.4

I configured this way:

Code: Select all

./configure --host=armv5te-float-linux --target=armv5te-float-linux --build=arm --disable-dbus --disable-dbus-control --disable-alsa --enable-avcodec --disable-lua --enable-mad --disable-dvdread --disable-freetype --disable-dvbpsi --disable-vcd --enable-vorbis --enable-sout --disable-directx --disable-waveout --disable-macosx --enable-sdl --disable-ogg --disable-mkv --disable-a52 --enable-libmpeg2 --disable-fb --disable-xvideo --disable-glx --disable-qt4 --disable-skins2 --disable-nls --disable-mozilla --disable-libgcrypt --disable-remoteosd --prefix=/home/yuntianruoren/VLC --with-mad=/home/yuntianruoren/mad-0.14.2b/ --with-mad-tree=/home/yuntianruoren/mad-0.14.2b/libmad/ --disable-alsa LDFLAG=-L/home/yuntianruoren/ffmpeg/lib CPPFLAGS=-I/home/yuntianruoren/ffmpeg/include
and occurred this error:

Code: Select all

make[6]: Entering directory `/home/yuntianruoren/vlc-1.1.4/modules/access/zip' make[6]: Nothing to be done for `all-am'. make[6]: Leaving directory `/home/yuntianruoren/vlc-1.1.4/modules/access/zip' make[5]: Leaving directory `/home/yuntianruoren/vlc-1.1.4/modules/access/zip' make[5]: Entering directory `/home/yuntianruoren/vlc-1.1.4/modules/access' CC libaccess_avio_plugin_la-avio.lo CCLD libaccess_avio_plugin.la /opt/crosstool/gcc-3.4.5-glibc-2.3.5/armv5te-softfloat-linux/bin/../lib/gcc/armv5te-softfloat-linux/3.4.5/../../../../armv5te-softfloat-linux/bin/ld: cannot find -lavformat collect2: ld returned 1 exit status make[5]: *** [libaccess_avio_plugin.la] Error 1 make[5]: Leaving directory `/home/yuntianruoren/vlc-1.1.4/modules/access' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/yuntianruoren/vlc-1.1.4/modules/access' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/yuntianruoren/vlc-1.1.4/modules/access' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/yuntianruoren/vlc-1.1.4/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/yuntianruoren/vlc-1.1.4' make: *** [all] Error 2
Hope your help~
Thanks!

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: armv5te-softfloat-linux/bin/ld: cannot find -lavformat

Postby Jean-Baptiste Kempf » 01 Nov 2010 11:54

Did you compile FFmpeg?
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.

yuntianruoren
Blank Cone
Blank Cone
Posts: 17
Joined: 07 Mar 2010 13:19
Operating System: Linux - Debian
Location: Taiwan

Re: armv5te-softfloat-linux/bin/ld: cannot find -lavformat

Postby yuntianruoren » 04 Nov 2010 06:59

Yes, I have compiled it.
But it still could not find lavformat.
Finally, I solved this problem by modifying makefile.

Nevertheless, I still did not successfully compile VLC.
Here is error:

Code: Select all

/opt/crosstool/gcc-3.4.5-glibc-2.3.5/armv5te-softfloat-linux/bin/../lib/gcc/armv5te-softfloat-linux/3.4.5/../../../../armv5te-softfloat-linux/bin/ld: cannot find -lraw1394 collect2: ld returned 1 exit status make[5]: *** [libaccess_avio_plugin.la] Error 1 make[5]: Leaving directory `/home/yuntianruoren/vlc-1.1.4/modules/access' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/yuntianruoren/vlc-1.1.4/modules/access' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/yuntianruoren/vlc-1.1.4/modules/access' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/yuntianruoren/vlc-1.1.4/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/yuntianruoren/vlc-1.1.4' make: *** [all] Error 2
I cann't find libraw1394's folder in VLC-1.1.4.
Do I download the libraw1394 and compile it?
Thanks!

nova-silver
New Cone
New Cone
Posts: 4
Joined: 10 Nov 2010 05:20
VLC version: 1.2.0-git
Operating System: RHE Linux

Re: armv5te-softfloat-linux/bin/ld: cannot find -lavformat

Postby nova-silver » 14 Nov 2010 05:44

Hi yuntianruoren,

I've found that:
% cd extras/contrib;
% ./bootstrap;
% make;

Does an excellent job of tracking down dependencies. Libraw1394-1.2.0.tar.gz should get grabbed for you automatically under ./extras/contrib/build-src. Then you can choose to build independently or let the contrib make handle it. I personally haven't had much luck with the contrib make, but it's probably because I'm using an older kernel in RHEL 5.5.

---

You mention that you were able to modify the makefile to fix the lavformat issue? I'm running into the same problem with a 1.2.0-git.

Did you simply remote -lavformat from the AVFORMAT_LIBS= line (around 190) in the Makefile?

Thanks.


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

Who is online

Users browsing this forum: No registered users and 17 guests