Using CygWin to build VLC from the source

Submitted by yuz on Tue, 2006-04-11 23:35.

Today I'm trying to setup CygWin to build VLC from the source. Again, the experience is not as good as I expected. But here, I'm spending most of my time downloading and installing necessary development packages. At first, I had troubles in picking up a download site. I was unlucky on the first two attempts; one was extremely slow, the other dropped the connection on me after I've spent half hour selecting packages!

Then I started the usual build procedure. Again, I was unlucky on the first two attempts due to the missing packages. First time, I had to add the libtool package. Second time, I had to add the CVS package. It took me an hour to finally figure out it's caused by the missing CVS! Here was the error message from the bootstrap command:
---------------------
autopoint: *** infrastructure files for version 0.11.5 not found; this is autopoint from GNU gettext-tools 0.14.5
---------------------

The good thing is, no further troubles down the load. No source code changes, no tricky business.

So between CygWin and MinGW, I will choose CygWin as my main cross platform development environment. I especially like its X windows port. I can even run some cool X applications on my WinXP. A pleasent surprise.

Can you help me do the same?

Hello Yuz,

I'm also trying to do the same thing, but I got error when doing ./bootstrap:

Copying file intl/plural.c
Copying file intl/plural.y
Copying file intl/ref-add.sin
Copying file intl/ref-del.sin
Copying file intl/textdomain.c
Copying file autotools/mkinstalldirs
+ aclocal-1.9 -I m4
+ autoconf
+ autoheader
+ automake-1.9 --add-missing --copy -Wall
configure.ac: installing `autotools/install-sh'
configure.ac: installing `autotools/missing'
activex/Makefile.am: installing `autotools/compile'
activex/Makefile.am: installing `autotools/depcomp'
modules/gui/macosx/Makefile.am: Objective C source seen but `OBJC' is undefined
modules/misc/testsuite/Makefile.am: Objective C source seen but `OBJC' is undefi
ned
src/Makefile.am: Objective C source seen but `OBJC' is undefined
Makefile.am:282: user target `vlc$(EXEEXT)' defined here...
/usr/share/automake-1.9/am/program.am: ... overrides Automake target `vlc$(EXEEX
T)' defined here
Makefile.am:230: while processing program `vlc'

Then it exits, I tried to do MAKE but it states no targets specified.

Please help me email hoaz[@]yahoo.com

Thanks

required CygWin packages missing?

Looks like you may have missed some CygWin packages. It's tricky. The error messages doesn't help much here.

Also, I put this in a file named config.
---------------------------
PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
./configure \
--disable-gtk \
--enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \
--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-livedotcom --with-livedotcom-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 \
--enable-debug
---------------------------

and run this file in a CygWin like this.
---------------------------
./config
---------------------------

Can you help me by posting your steps in doing this? Please

Hi Yuz,

I'm having problem with doing the samething like this. I can't get it to compile.

Thanks a lot.

VLC build steps on Cygwin

Just do it according to steps in INSTALL.win32. There's also a document at http://developers.videolan.org/vlc/cygwin-compile.txt

The most important step is to get all the needed CygWin packages. If you see any compile errors, go back to check if there's any CygWin packages missing or not up-to-date.