[vlc] Re: Porting VLC on MIPS

kartikay malhotra kartikay.malhotra at gmail.com
Wed Nov 22 06:19:56 CET 2006


Hello All,

Taking clue from
http://wiki.videolan.org/index.php/Win32Compile#Configuring_the_build
I tried to compile VLC for MIPS (little endian)

I am (for the present) using generic toolchain: mipsel-linux.

I'm using the following configuration:

./configure --host=mipsel-linux --build=i386-linux --disable-mad
--with-libmpeg2-tree=/home/vlc_mips/mpeg2dec-0.4.1-cvs/ --disable-wxwidgets
--disable-skins2 --disable-gnomevfs --disable-x11 --disable-glx
--disable-opengl --disable-screen --disable-sdl --without-libiconv-prefix

I get the following error:

mkdir .libs
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

I tried compiling libiconv from source. It compiles correctly with the
following options:
./configure --host=mipsel-linux --build=i386-linux
However, no libiconv.a is created. Only libiconv.la/.so are present.

I'd tried compiling VLC with:

 --with-libiconv-prefix=/path/to/libiconv-1.9.1/ , but that too gives the
same error as above.

Any suggesstions?

Many Thanks
Er. Kartikay Malhotra


On 11/21/06, Rafaël Carré <funman at videolan.org> wrote:
>
> Le Tue, 21 Nov 2006 15:06:40 +0900,
> "kartikay malhotra" <kartikay.malhotra at gmail.com> a écrit :
>
> > Hello
> >
> > I wish to compile VLC on MIPS. My tool chain is mips2_nfp_le-
> >
> > I'm successful in compiling VLC for x86. How should I configure for
> > MIPS?
> >
> > I searched for answers in the archives, but didn't find anything
> > related to MIPS porting. If you happen to have seen this problem
> > addressed before, kindly point me to it.
> >
> > Thanks
> > Er. KM
>
> Hello, you should look at the commands used in
> http://wiki.videolan.org/index.php/Win32Compile#Configuring_the_build
>
> and replace i586-mingw32msvc by mips2_nfp_le
>
> Please report if you succeed into doing that, we could add this info on
> the website
>
> --
> Rafaël Carré
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20061122/adde25a0/attachment.html>


More information about the vlc mailing list