]> git.sesse.net Git - vlc/blob - INSTALL-win32.txt
* Fixed a little omission in INSTALL-win32.txt.
[vlc] / INSTALL-win32.txt
1 INSTALL file for the Windows9x/2k version of vlc, the VideoLAN Client
2
3 Running VideoLAN
4 ================
5
6 If you have already built vlc (see below) or are using a binary release,
7 just run 'vlc.exe'.
8
9 You can also run vlc from a dos command box, in which case you'll be able
10 to use the command line arguments. You can obtain a list of these command
11 line arguments by typing 'vlc --help'.
12 It is also sometimes useful to display vlc's debug console. You can do so
13 by running 'vlc -v'.
14 This feature is at the moment broken. To display vlc's debug messages,
15 open the menu 'view', select 'messages'.
16 To store a debug log of the current vlc session, you can use
17 'vlc -vvv --stdout=debug.txt'.
18
19 If you want to play a DVD, run vlc and click on the Disc option in the
20 interface. You then have to type your drive letter in the 'Device name'
21 box including the final '\' (eg. 'D:\' if your dvdrom drive is assigned the letter 'D').
22 ( !Warning: you have to be in administrator mode (for now) on Win2k )
23
24
25 Building VideoLAN from source code
26 ==================================
27
28 If you want to do the tricky job of building vlc from source, follow
29 these instructions:
30 ( WARNING: the win32 build process is not yet really stable, so you may have
31   to hack manually the MAKEFILES )
32
33 Getting the right tools
34 =======================
35
36 You can build the win32 vlc port in two ways:
37 - natively on Windows
38 - or on Linux, using cross-compiling
39
40 All the necessary tools can be found on the libSDL web page:
41 http://www.libsdl.org/Xmingw32/
42
43 - cross-compiling with mingw32:
44 You need to download the linux cross-compiler version of mingw32.
45 (for Debian GNU/Linux users, there is a mingw32 package)
46 You must also not forget to install some extra header files and libraries if
47 you want to build some plugins like DirectX, GTK or SDL.
48
49 - compiling natively on Windoze:
50 [coming soon (investigating a combination of cygwin+mingw32)]
51
52 Configuring the build
53 =====================
54
55 A typical way to configure the build process of vlc is to use the
56 `./configure' script.
57
58 See `./configure --help' for more information.
59
60 For example if you are cross-compiling from Debian, you can use something
61 along those lines:
62
63  make distclean ; CC=i586-mingw32msvc-gcc CFLAGS=-I/usr/i586-mingw32msvc \
64    RANLIB=i586-mingw32msvc-ranlib WINDRES=i586-mingw32msvc-windres \
65    ./configure --host=i586-mingw32msvc --target=i586-mingw32msvc \
66     --build=i386-linux --with-gtk-config-path=/usr/i586-mingw32msvc/bin \
67     --with-sdl-config-path=/usr/i586-mingw32msvc/bin
68
69 ./configure uses the 'gtk-config' and 'sdl-config' scripts and unfortunately,
70 when cross-compiling you have to tell ./configure where to find them.
71 You have two choices for this, you can either add the path to these files at
72 the beginning of your PATH variable. Or you can use the
73 '--with-gtk/sdl-config-path' option.
74 (by the way, you may have to create a gtk-config script yourself or modify
75 the one from your linux distro)
76
77 If you are cross-compiling using the package provided by
78 http://www.libsdl.org/Xmingw32/, you can use something along those lines:
79
80  make distclean ; PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH \
81    ./configure --host=i386-mingw32msvc \
82    --target=i386-mingw32msvc --build=i386-linux
83
84 Building VideoLAN
85 =================
86
87 Have a look at the generated Makefile.opts file, you may want to choose
88 which modules will be compiled as plugins, and which ones will remain in
89 the core application. The configure script tries to guess for you.
90
91 Once configured, run `make' to build vlc.
92
93 If you are using the tools from http://www.libsdl.org/Xmingw32/ you can type something like:
94
95  PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH \
96    make
97
98
99 Well done, now you're ready to use vlc!