INSTALL.win32 6.79 KB
Newer Older
1
$Id: INSTALL.win32,v 1.17 2003/07/06 16:22:15 gbazin Exp $
Gildas Bazin's avatar
Gildas Bazin committed
2

3
INSTALL file for the Windows9x/Me/NT4/2k/XP version of the VLC media player
4 5 6 7


Running VLC
===========
Gildas Bazin's avatar
Gildas Bazin committed
8

9
If you have already built VLC (see below) or are using a binary release,
Gildas Bazin's avatar
Gildas Bazin committed
10 11
just run 'vlc.exe'.

12
You can also run VLC from a dos command box, in which case you'll be able
Gildas Bazin's avatar
Gildas Bazin committed
13
to use the command line arguments. You can obtain a list of these command
14 15
line arguments by typing 'vlc --help' or 'vlc --help --advanced'.

16
To store a debug log of the current VLC session, you can use
17 18
'vlc -vv --extraintf=logger'. You will end-up with a vlc-log.txt file in
your current directory.
Gildas Bazin's avatar
Gildas Bazin committed
19

20
If you want to play a DVD, run VLC and click on the Disc option in the
21 22
interface. You then have to type your drive letter followed by a colon in
the 'Device name' box (eg. 'D:' if this is the letter for your dvdrom drive).
Gildas Bazin's avatar
Gildas Bazin committed
23

24 25 26
Additional documentation is available at http://www.videolan.org/doc/


27 28
Building VLC from the source code
=================================
Gildas Bazin's avatar
Gildas Bazin committed
29

30 31 32 33 34
If you want to build VLC from sources, you can do it in several ways:

- natively on Windows, using cygwin (www.cygwin.com) with or without the
  unix emulation layer. This is the prefered way to compile vlc if you want
  to do it on Windows.
Gildas Bazin's avatar
Gildas Bazin committed
35 36 37

- natively on Windows, using MSYS+MINGW (www.mingw.org)
  (MSYS is a minimal build environnement to compile unixish projects under
38 39 40 41
  windoze. It provides all the common unix tools like sh, gmake...)
  Please note that there is currenlty a bug in MSYS which requires you to
  edit the acgeneral.m4 file and replace the value of ac_max_sed_lines to
  something higher, for instance 976.
Gildas Bazin's avatar
Gildas Bazin committed
42

43 44 45 46 47
- natively on Windows, using Microsoft Visual C++. Even though we provide some
  msvc project files with vlc, this method is advised only if you just want to
  experiment/play with some basic functionnalities in vlc. The reason for this
  is that vlc depends on a lot of 3rd party libraries and building them in
  MSVC is not convenient and sometimes even impossible.
48 49 50
  ( NOTE: if you want to run vlc under the msvc debugger, you need to run it
    with the --fast-mutex --win9x-cv-method=1 options because the debugger
    usually loses signals sent by PulseEvent() )
51

52
- or on Linux, using the mingw32 cross-compiler.
Gildas Bazin's avatar
Gildas Bazin committed
53

54 55
Getting the right compiler tools
================================
Gildas Bazin's avatar
Gildas Bazin committed
56 57 58

- cross-compiling with mingw32:
You first need to download a linux cross-compiler version of mingw32.
59 60
(for Debian GNU/Linux users, you can use the mingw32, mingw32-binutils and
mingw32-runtime packages)
Gildas Bazin's avatar
Gildas Bazin committed
61

62 63 64 65
- compiling natively on Windoze with cygwin:
You will need to download and run the setup.exe app from cygwin's web site
(www.cygwin.com). You will also need to make sure you install at least the
gcc-mingw, mingw-runtime and w32api packages.
Gildas Bazin's avatar
Gildas Bazin committed
66

67
- compiling natively on Windoze with MSYS+MINGW:
68
You will need to download and install the latest MSYS, MSYS-DTK and MINGW.
69 70 71 72 73 74
The installation is really easy. Begin with the MSYS auto-installer and once
this is done, extract MINGW into c:\msys\1.0\mingw. You also have to remember
to remove the make utility included with MINGW as it conflicts with the one
from MSYS (just rename or remove c:\msys\1.0\mingw\bin\make.exe).

http://www.mingw.org/download.shtml
75 76 77
http://prdownloads.sf.net/mingw/MSYS-1.0.9-2003.14.18-1.exe
http://prdownloads.sf.net/mingw/MinGW-2.0.0-3.exe
http://prdownloads.sf.net/mingw/msysDTK-1.0.1.exe
Gildas Bazin's avatar
Gildas Bazin committed
78

79 80
Getting the additionnal libraries
=================================
Gildas Bazin's avatar
Gildas Bazin committed
81

82 83
VLC depends on other libraries to provide some features like ac3 audio decoding
or mpeg4 video decoding, etc...
Gildas Bazin's avatar
Gildas Bazin committed
84

85 86
Depending on your needs you will have to compile/install some or all of these
external libraries.
87

88 89 90 91 92 93
They can be found here (source code):
http://www.videolan.org/pub/testing/contrib/

I also provide a package with all the libraries already compiled so it is
actually really easy to compile a full-featured version of vlc (these compiled
libraries will only work with mingw or cygwin):
94
http://www.videolan.org/pub/testing/win32/contrib-20030622-win32-bin.tar.bz2
95
All you need to do is extract it in your root directory (the include files
96 97
and libraries will be put in /usr/win32). You can do this with the following
command: "tar xjvf contrib-20030622-win32-bin.tar.bz2 -C /"
98 99 100

A complete list of the libraries on which we depend can be found here:
http://developers.videolan.org/vlc/
101

Gildas Bazin's avatar
Gildas Bazin committed
102 103 104
Configuring the build
=====================

105 106
Once you've got all the files you need in place, you need to configure the
build with the `./configure' script.
Gildas Bazin's avatar
Gildas Bazin committed
107

108 109
I'll assume that you are using the pre-compiled 3rd party libraries I'm
providing and that they are in /usr/win32.
Gildas Bazin's avatar
Gildas Bazin committed
110 111 112 113

If you are cross-compiling from Debian, you can use something
along those lines:

114 115
  ./bootstrap && \
  CPPFLAGS=-I/usr/win32/include LDFLAGS=-L/usr/win32/lib \
116
  CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ \
Gildas Bazin's avatar
Gildas Bazin committed
117
  ./configure --host=i586-mingw32msvc --build=i386-linux \
118 119 120 121 122 123 124 125 126 127 128 129
      --disable-sdl --disable-gtk \
      --with-included-gettext --enable-nls \
      --enable-mad \
      --enable-ffmpeg \
      --enable-dvdread --enable-dvdplay \
      --enable-faad \
      --enable-flac \
      --enable-theora \
      --with-wx-config-path=/usr/win32/bin \
      --with-skins-wx-config-path=/usr/win32/bin \
      --with-freetype-config-path=/usr/win32/bin \
      --enable-debug
130

131
If you are using cygwin, you can build VLC with or without the unix emulation
132 133
layer (without is usually better). To build without the emulaion layer, use
something like this:
134 135
  ./bootstrap && \
  CPPFLAGS=-I/usr/win32/include LDFLAGS=-L/usr/win32/lib \
136
  CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
137
  ./configure \
138 139 140 141 142 143 144 145 146 147 148 149 150
      --disable-sdl --disable-gtk \
      --with-included-gettext --enable-nls \
      --enable-mad \
      --enable-ffmpeg \
      --enable-dvdread --enable-dvdplay \
      --enable-faad \
      --enable-flac \
      --enable-theora \
      --with-wx-config-path=/usr/win32/bin \
      --with-skins-wx-config-path=/usr/win32/bin \
      --with-freetype-config-path=/usr/win32/bin \
      --enable-debug

151
If you want to use the emulation layer, then just omit the CC="gcc -mno-cygwin"
152
CXX="g++ -mno-cygwin" line.
153

154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
If you are compiling with MSYS/MINGW, then you can use something along those
lines:
  ./bootstrap && \
  CPPFLAGS=-I/usr/win32/include LDFLAGS=-L/usr/win32/lib \
  ./configure \
      --disable-sdl --disable-gtk \
      --with-included-gettext --enable-nls \
      --enable-mad \
      --enable-ffmpeg \
      --enable-dvdread --enable-dvdplay \
      --enable-faad \
      --enable-flac \
      --enable-theora \
      --with-wx-config-path=/usr/win32/bin \
      --with-skins-wx-config-path=/usr/win32/bin \
      --with-freetype-config-path=/usr/win32/bin \
      --enable-debug
Gildas Bazin's avatar
Gildas Bazin committed
171

172
See `./configure --help' for more information.
Gildas Bazin's avatar
Gildas Bazin committed
173

174 175
Actually Compiling the VLC source
=================================
Gildas Bazin's avatar
Gildas Bazin committed
176

177
Once configured, to build VLC, just run `make'.
Gildas Bazin's avatar
Gildas Bazin committed
178

179
Well done, now you're ready to use VLC!
180
=======================================