Page 1 of 1

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

Posted: 01 Nov 2010 04:03
by yuntianruoren
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!

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

Posted: 01 Nov 2010 11:54
by Jean-Baptiste Kempf
Did you compile FFmpeg?

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

Posted: 04 Nov 2010 06:59
by yuntianruoren
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!

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

Posted: 14 Nov 2010 05:44
by nova-silver
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.