[vlc] Cross Compile VLC for mips32

Arthur Chiu arthurchiu at gmail.com
Tue Oct 11 21:50:20 CEST 2005


Hi,

I am currently trying to get VLC to work on a little mips32 machine running
linux.
I successfully cross-compiled it (with many hacks in between), but when I
run it on the mips machine, I get a seg fault:

# ./vlc --plugin-path=/usr/lib/vlc -vvv -I -rc
VLC media player 0.8.2 Janus
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file
/root/.vlc/cache/plugins-04041e.dat
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing
`/home/mediadev/Arthur/blackWidow/vlc-configure/usr/local/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: recursively browsing `/usr/lib/vlc'
Segmentation fault

----------------------------------------------------------------------------------------
What I did to compile it:

OBJECTIVE: I want to disable ALL video and GUI related things. Just want a
pure command line mp3 player.

I first cross compiled all the dependencies that I think I'll need. All the
files I got from the videolan homepage (I don't dare the try newer ones as I
hear some new versions of these libraries might break vlc):
- libmad
- zlib
- libogg
- live media
- libid3tag
- mp3lame
- ffmpeg (./configure --prefix=<my install path> --enable-gpl --enable-pp
--enable-mp3lame --cc=mipsel-linux-gcc)

Then I go ahead and configure vlc:
./configure --host=mipsel-linux
--prefix=/home/mediadev/Arthur/blackWidow/vlc-configure/usr/local
--disable-libmpeg2 --disable-dvdnav --disable-dshow --disable-smb
--disable-libcdio --disable-libcddb --disable-cdda --disable-vcd
--disable-screen --disable-png --disable-xvideo --disable--x11
--disable-cmml --disable-x264 --disable-glx --disable-opengl --disable-sdl
--disable-hd1000v --disable-directx --disable-wingdi --disable-alsa
--disable-waveout --disable-coreaudio --disable-hd1000a --disable-skins2
--disable-wxwindows --disable-macosx --disable-visual --disable-daap
--disable-joystick --disable-activex
--with-mad=/home/mediadev/Arthur/blackWidow/vlc-dependencies/libmad-configure/
--with-ffmpeg-mp3lame --with-ffmpeg-zlib
--with-ffmpeg-tree=/home/mediadev/Arthur/blackWidow/vlc-dependencies/ffmpeg-20041113/
--with-livedotcom-tree=/home/mediadev/Arthur/blackWidow/vlc-dependencies/live

After, I edit vlc-config to remove the x11 and freetype from the plugins
part ( I am having trouble compiling with those parts on)

Then I make and make install.
After copying all the libraries over to the mips32 linux machine, I ran it
and I got that segmentation fault. :(

What might be wrong with this? Any help will be deeply appreciated. Thanks!

Cheers,

Arthur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20051011/ca5e61c3/attachment.html>


More information about the vlc mailing list