Page 1 of 1

Windows compile

Posted: 15 Jan 2007 08:37
by dreif
Hi,

I want to be able to build VLC from source for windows. I have tried several walkthrough found on internet which use Cygwin. I get something to compile (from SVN) but the result is very unstable and incomplete (missing features,crash often,..).

Is it preferable or even possible to compile VLC for windows under Linux? Do you have some link to an up-to-date step by step documentation about compiling VLC under cygwin?

Thank you for your help,
Frederic

Posted: 15 Jan 2007 10:41
by osmanosman
http://developers.videolan.org/vlc/cygwin-compile.txt

here

but I suggest cross compile with debian etc. It is easy :D

cross compile

Posted: 15 Jan 2007 15:39
by dreif
Hi,

I have setup an ubuntu in order to cross-compile VLC. But I have actually no eperience in cross-compiling. Did you have also documentation for it?

Thank you,
Frederic

Posted: 16 Jan 2007 21:45
by osmanosman
My English is poor but I will try to explain my compile to you.
I use debian etc you can download an install from debian.org. it is free

1 - install libs
libtool,automake,autoconf,mingw32 and others you can found from this document
http://developers.videolan.org/vlc/cygwin-compile.txt

2- download vlc source vlc-0.8.6.tar.gz from videolan.org
3- download libraries contrib-20060619-win32-bin-gcc-3.4.5-only.tar.bz2
and run
tar xjvf contrib-20060526-win32-bin-gcc-3.4.5-only.tar.bz2 -C /
4- create a folder example : /vlc and extract vlc-0.8.6.tar.gz to vlc folder
example: /vlc/vlc-0.8.6.
create a txt files it is name configure-vlc in /vlc
write to configure-vlc

Code: Select all

./bootstrap && \ PKG_CONFIG_LIBDIR=/usr/win32/lib/pkgconfig \ CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \ LDFLAGS=-L/usr/win32/lib \ CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ \ ./configure --host=i586-mingw32msvc --build=i386-linux \ --enable-sdl --with-sdl-config-path=/usr/win32/bin --disable-gtk \ --enable-nls \ --enable-shared-libvlc \ --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \ --with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora \ --with-wx-config-path=/usr/win32/bin \ --with-freetype-config-path=/usr/win32/bin \ --with-fribidi-config-path=/usr/win32/bin \ --enable-live555 --with-live555-tree=/usr/win32/live.com \ --enable-caca --with-caca-config-path=/usr/win32/bin \ --with-xml2-config-path=/usr/win32/bin \ --with-dvdnav-config-path=/usr/win32/bin \ --disable-cddax --disable-vcdx --enable-goom \ --enable-twolame --enable-dvdread \ --disable-gnomevfs \ --enable-dts \ --enable-debug \

Code: Select all

and run cd /vlc/vlc-config ../configure-vlc make make package-win32-base
the end

THX

Posted: 17 Jan 2007 17:09
by dreif
Thank you a lot! It works great.

Regards,
Frederic

Posted: 18 Jan 2007 10:50
by osmanosman
Not at all