[vlc] Re: Porting VLC on MIPS

kartikay malhotra kartikay.malhotra at gmail.com
Thu Nov 23 01:15:12 CET 2006


I tried contrib. I modified contrib/config.mak:
HOST = mipsel-linux
CC = mipsel-linux-gcc

Everything was working fine until it reached ffmpeg, where the compilation
halted due to connection refused by
pserver:anonymous at mplayerhq.hu (213.144.138.186).

I tried to use source forge CVS, but although the checkout succeeds, it is
unable to comply with install-libs
in the Makefile. Same goes for any other source ffmpeg-0.4.8.tar.gz (we can
comment checkout, and proceed). Surely CVS version from mplayerhq.hu differs
from distribution versions.

I changed the src/Makefile command install-libs and install-headers to
install (keeping my fingers crossed), but it didn't work either :)

> AFAIK, MIPS really needs PIC for libraries. Using the .a is most likely
> not going to work unless shared libvlc build is explicitly disabled. In
> fact, I suspect most of contrib is unusable, except on i386.

I am unable to understand that completely. Actually I'm not very keen to
build contrib, as it is a considerably larger build than the
"proof-of-concept" build I want.

> Have you looked in .libs (that's where libtool hides the .a usuallly)
I looked into libiconv-1.9.1/lib/.libs. There is no ".a" file. Again, I am
open to using ".so" (I would rather prefer it) but I cannot solve this:

Making all in .
make[2]: Entering directory `/home/vlc_mips/vlc-0.8.5'
/bin/sh ./libtool --mode=link mipsel-linux-gcc -Wsign-compare -Wall -pipe -o
vlc vlc-vlc.o src/libvlc.a ./modules/codec/ffmpeg/libffmpeg.a
./modules/stream_out/libstream_out_switcher.a ./modules/codec/liblibmpeg2.a
-L/usr/local/lib -lrt -lpthread -ldl -lm
/home/vlc_mips/ffmpeg-20051126/libavcodec/libpostproc/libpostproc.a
/home/vlc_mips/ffmpeg-20051126/libavcodec/libavcodec.a
/home/vlc_mips/ffmpeg-20051126/libavutil/libavutil.a
/home/vlc_mips/ffmpeg-20051126/libavformat/libavformat.a -lm -ldl -lm
-L/home/vlc_mips/mpeg2dec-0.4.1-cvs/libmpeg2/.libs -lmpeg2
mipsel-linux-gcc -Wsign-compare -Wall -pipe -o vlc vlc-vlc.o  src/libvlc.a
./modules/codec/ffmpeg/libffmpeg.a
./modules/stream_out/libstream_out_switcher.a ./modules/codec/liblibmpeg2.a
-L/usr/local/lib -lrt -lpthread
/home/vlc_mips/ffmpeg-20051126/libavcodec/libpostproc/libpostproc.a
/home/vlc_mips/ffmpeg-20051126/libavcodec/libavcodec.a
/home/vlc_mips/ffmpeg-20051126/libavutil/libavutil.a
/home/vlc_mips/ffmpeg-20051126/libavformat/libavformat.a -ldl -lm
-L/home/vlc_mips/mpeg2dec-0.4.1-cvs/libmpeg2/.libs /usr/local/lib/libmpeg2.a
src/libvlc.a(libvlc_a-libc.o)(.text+0x400): In function `vlc_iconv_open':
: undefined reference to `libiconv_open'
src/libvlc.a(libvlc_a-libc.o)(.text+0x448): In function `vlc_iconv':
: undefined reference to `libiconv'
src/libvlc.a(libvlc_a-libc.o)(.text+0x488): In function `vlc_iconv_close':
: undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make[2]: *** [vlc] Error 1
make[2]: Leaving directory `/home/vlc_mips/vlc-0.8.5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vlc_mips/vlc-0.8.5'
make: *** [all] Error 2

So it all comes to this: How to get past this error?

Thanks for all your suggestions
Er. KM


On 11/22/06, Rémi Denis-Courmont <rdenis at simphalempin.com> wrote:
>
> Le mercredi 22 novembre 2006 10:52, Christophe Mutricy a écrit :
> > > following options:
> > > ./configure --host=mipsel-linux --build=i386-linux
> > > However, no libiconv.a is created. Only libiconv.la/.so are
> > > present.
> >
> > Have you looked in .libs (that's where libtool hides the .a usuallly)
>
> AFAIK, MIPS really needs PIC for libraries. Using the .a is most likely
> not going to work unless shared libvlc build is explicitly disabled. In
> fact, I suspect most of contrib is unusable, except on i386.
>
> --
> Rémi Denis-Courmont
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20061123/cf1200cc/attachment.html>


More information about the vlc mailing list