Trouble with cross-compiling in Ubuntu

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
m.e
Blank Cone
Blank Cone
Posts: 34
Joined: 27 Jan 2006 23:42

Trouble with cross-compiling in Ubuntu

Postby m.e » 14 Jan 2009 17:06

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

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Trouble with cross-compiling in Ubuntu

Postby VLC_help » 14 Jan 2009 18:04

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?

m.e
Blank Cone
Blank Cone
Posts: 34
Joined: 27 Jan 2006 23:42

Re: Trouble with cross-compiling in Ubuntu

Postby m.e » 14 Jan 2009 20:16

Thanks,
But the point is really that if everything is set up correctly I shouldn't have to disable anything.

KenS
Blank Cone
Blank Cone
Posts: 85
Joined: 09 Apr 2007 14:01
VLC version: 0.9.0
Location: Melbourne, AU

Re: Trouble with cross-compiling in Ubuntu

Postby KenS » 15 Jan 2009 03:10

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
--- Ken

P3 500MHz server 300Gb HDD
Hauppauge Nova-T-500 dual DVB-T
XMLTV GUI 3.06.00W
DVB Webscheduler 4.0.14
VLC 0.9.8a/1.0.0

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Trouble with cross-compiling in Ubuntu

Postby Jean-Baptiste Kempf » 16 Jan 2009 15:03

I can provide a VM with everything set-up.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

basvbeek
New Cone
New Cone
Posts: 1
Joined: 06 Feb 2009 09:37

Re: Trouble with cross-compiling in Ubuntu

Postby basvbeek » 06 Feb 2009 09:46

I would be very interested in a copy of that VM as well. Have been trying to cross-compile vlc for two weeks now...

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Trouble with cross-compiling in Ubuntu

Postby Jean-Baptiste Kempf » 06 Feb 2009 10:28

Waouw! That much? Mail me.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 24 guests