[vlc] Re: Cross Compile VLC for mips32

Keir Vaughan-Taylor keirvt at optusnet.com.au
Tue Oct 11 23:34:43 CEST 2005



Why not compile everything on the MIPS machine. Cross compiling 
introduces a whole realm of possible problems. If you compile everything 
on the MIPs you can be sure none of the libraries have accidentally been 
compiled for another machine and anything missing would be revealed when 
you do the make. One reason for the segmentation might be that  library 
code from the non MIPs machine has found its way onto the MIPS machine.



At the end

Arthur Chiu wrote:

> 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


-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list