<span class="ppt" id="_user_vlc@videolan.org">Hello All,<br><br>Taking clue from </span><br><a href="http://wiki.videolan.org/index.php/Win32Compile#Configuring_the_build">http://wiki.videolan.org/index.php/Win32Compile#Configuring_the_build
</a><br>I tried to compile VLC for MIPS (little endian)<br><span class="ppt" id="_user_vlc@videolan.org"><br>I am (for the present) using generic toolchain: mipsel-linux.<br><br>I'm using the following configuration:<br><br>
./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
<br><br>I get the following error:<br><br>mkdir .libs<br>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<br>src/libvlc.a(libvlc_a-libc.o)(.text+0x400): In function `vlc_iconv_open':<br>: undefined reference to `libiconv_open'<br>src/libvlc.a(libvlc_a-libc.o)(.text+0x448): In function `vlc_iconv':
<br>: undefined reference to `libiconv'<br>src/libvlc.a(libvlc_a-libc.o)(.text+0x488): In function `vlc_iconv_close':<br>: undefined reference to `libiconv_close'<br>collect2: ld returned 1 exit status<br>make[2]: *** [vlc] Error 1
<br>make[2]: Leaving directory `/home/vlc_mips/vlc-0.8.5'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/home/vlc_mips/vlc-0.8.5'<br>make: *** [all] Error 2<br><br>I tried compiling libiconv from source. It compiles correctly with the following options:
<br>./configure </span><span class="ppt" id="_user_vlc@videolan.org">--host=mipsel-linux --build=i386-linux<br>However, no libiconv.a is created. Only <a href="http://libiconv.la/.so">libiconv.la/.so</a> are present. <br>
<br>I'd tried compiling VLC with:<br><br> --with</span><span class="ppt" id="_user_vlc@videolan.org">-libiconv-prefix=/path/to/libiconv-1.9.1/ , but that too gives the same error as above.<br><br>Any suggesstions? <br></span>
<span class="ppt" id="_user_vlc@videolan.org"><br>Many Thanks<br>Er. Kartikay Malhotra<br><br></span><br><div><span class="gmail_quote">On 11/21/06, <b class="gmail_sendername">Rafaël Carré</b> <<a href="mailto:funman@videolan.org">
funman@videolan.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Le Tue, 21 Nov 2006 15:06:40 +0900,<br>"kartikay malhotra" <
<a href="mailto:kartikay.malhotra@gmail.com">kartikay.malhotra@gmail.com</a>> a écrit :<br><br>> Hello<br>><br>> I wish to compile VLC on MIPS. My tool chain is mips2_nfp_le-<br>><br>> I'm successful in compiling VLC for x86. How should I configure for
<br>> MIPS?<br>><br>> I searched for answers in the archives, but didn't find anything<br>> related to MIPS porting. If you happen to have seen this problem<br>> addressed before, kindly point me to it.<br>
><br>> Thanks<br>> Er. KM<br><br>Hello, you should look at the commands used in<br><a href="http://wiki.videolan.org/index.php/Win32Compile#Configuring_the_build">http://wiki.videolan.org/index.php/Win32Compile#Configuring_the_build
</a><br><br>and replace i586-mingw32msvc by mips2_nfp_le<br><br>Please report if you succeed into doing that, we could add this info on<br>the website<br><br>--<br>Rafaël Carré<br><br><br></blockquote></div><br>