Page 1 of 1

Trouble with cross-compiling in Ubuntu

Posted: 14 Jan 2009 17:06
by m.e
I've tried to follow the guide about compiling using cygwin but that didn't work and then I read that it was buggy and it was recommended to cross-compile from linux. But it isn't easier :cry:

This is what I've done:
1. Install ubuntu 8.04
2. download vlc-0.9.8a source. I'm trying to compile this completely unchanged.
3. Download http://people.videolan.org/~jb/Contribs ... ly.tar.bz2
4. sudo tar xf contrib-20081021-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2 -C /
5. sudo apt-get install mingw32 mingw32-binutils mingw32-runtime
6. sudo apt-get install autoconf
7. sudo apt-get install automake
8 sudo apt-get install libtool
9. sudo apt-get install libgcrypt11-dev
10. export CONTRIBS=/usr/win32
11. sudo sh configure-vlc.sh and it goes through :)

Code: Select all

./bootstrap && \ export PKG_CONFIG_PATH=$CONTRIBS/lib/pkgconfig \ CPPFLAGS="-I$CONTRIBS/include -I$CONTRIBS/include/ebml" CXXCPP=i586-mingw32msvc-cpp \ LDFLAGS=-L$CONTRIBS/lib \ CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ ./configure --host=i586-mingw32msvc --build=i386-linux \ --disable-gtk \ --enable-nls --enable-sdl --with-sdl-config-path=$CONTRIBS/bin \ --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \ --with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora \ --with-wx-config-path=$CONTRIBS/bin \ --with-freetype-config-path=$CONTRIBS/bin \ --with-fribidi-config-path=$CONTRIBS/bin \ --with-libgcrypt-prefix=$CONTRIBS \ --enable-live555 --with-live555-tree=$CONTRIBS/live.com \ --enable-caca --with-caca-config-path=$CONTRIBS/bin \ --with-xml2-config-path=$CONTRIBS/bin \ --with-dvdnav-config-path=$CONTRIBS/bin \ --disable-cddax --disable-vcdx --enable-goom \ --enable-twolame --enable-dvdread \ --enable-debug
12. try to compile but I get this errorviewtopic.php?f=14&t=53000
13. edit libtool by changing ECHO= to echo=
14. Then I got some error with live555, and then with libgcrypt and then with dvdnav :cry:

It's just too much. So I'm asking if you got vlc to compile what exactly did you do different.


I'm actually just trying to modify a few lines so I get access set_var and get_var from libvlc public api. Here is the code and if anyone is willing to compile it for me I would be very thankful. http://rapidshare.com/files/183182829/vlc.tar.gz.html
Files should be located here:
vlc-0.9.8a/include/vlc/libvlc.h
vlc-0.9.8a/src/control/video.c
vlc-0.9.8a/src/libvlc.sym

Re: Trouble with cross-compiling in Ubuntu

Posted: 14 Jan 2009 18:04
by VLC_help
14. Then I got some error with live555, and then with libgcrypt and then with dvdnav
You can disable live555 if you don't need it (so --enable-live555 --with-live555-tree=$CONTRIBS/live.com \ -> --disable-live555 \). What errors do you get with crypt and dvdnav?

Re: Trouble with cross-compiling in Ubuntu

Posted: 14 Jan 2009 20:16
by m.e
Thanks,
But the point is really that if everything is set up correctly I shouldn't have to disable anything.

Re: Trouble with cross-compiling in Ubuntu

Posted: 15 Jan 2009 03:10
by KenS
Building VLC (and especially cross compiling) is not a task for the faint-hearted and requires great skill and determination. These obstacles are placed in your way to ensure you have the required willpower to continue. :D

Re: Trouble with cross-compiling in Ubuntu

Posted: 16 Jan 2009 15:03
by Jean-Baptiste Kempf
I can provide a VM with everything set-up.

Re: Trouble with cross-compiling in Ubuntu

Posted: 06 Feb 2009 09:46
by basvbeek
I would be very interested in a copy of that VM as well. Have been trying to cross-compile vlc for two weeks now...

Re: Trouble with cross-compiling in Ubuntu

Posted: 06 Feb 2009 10:28
by Jean-Baptiste Kempf
Waouw! That much? Mail me.