How to build VLS under Windows
------------------------------

DISCLAIMER: the windows port of the VideoLAN Server is experimental !
Please report any bug to vls-devel@videolan.org.

With Microsoft Visual C++
-------------------------

You have to rename some files before doing anything:

src\server\config.h.win -> src\server\config.h
src\server\vls_builtins.cpp.win -> src\server\vls_builtins.cpp
src\core\defs.h.win -> src\core\defs.h

You have to link dvbpsi with vls. All the needed files can be found in
ftp://ftp.videolan.org/pub/videolan/libdvbpsi/0.1.1/win/dvbpsi_win32.zip
(uncompress it in the root vls directory)

Then open the project file 'vls.dsp' and build it.

With MINGW (www.mingw.org)
--------------------------

If you are cross-compiling using the mingw32 package provided by
www.videolan.org, you have to use something along those lines:

  CXX=i586-mingw32msvc-g++ \
  PATH=/usr/local/cross-tools/bin:$PATH \
  ./configure --host=i586-mingw32msvc --build=i386-linux \
  --with-dvbpsi-tree=../libdvbpsi-win \
  --disable-dvd

If you are compiling natively on Windoze (You need to download and
install the latest MSYS and MINGW at www.mingw.org), then you can
use something along those lines:

  ./configure \
  --with-dvbpsi-tree=../libdvbpsi-win \
  --disable-dvd

Also note that you will need to compile libdvbpsi beforehand, which
is really straightforward with MINGW.

--------
Cyril Deguet <asmax@via.ecp.fr>
