]> git.sesse.net Git - vlc/blob - INSTALL-win32.txt
484baebbdc63076a138ec489f31a682a73f80367
[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 \
64    ./configure --host=i586-mingw32msvc --target=i586-mingw32msvc \
65     --build=i386-linux --with-gtk-config-path=/usr/i586-mingw32msvc/bin \
66     --with-sdl-config-path=/usr/i586-mingw32msvc/bin
67
68 ./configure uses the 'gtk-config' and 'sdl-config' scripts and unfortunately,
69 when cross-compiling you have to tell ./configure where to find them.
70 You have two choices for this, you can either add the path to these files at
71 the beginning of your PATH variable. Or you can use the
72 '--with-gtk/sdl-config-path' option.
73 (by the way, you may have to create a gtk-config script yourself or modify
74 the one from your linux distro)
75
76 If you are cross-compiling using the package provided by
77 http://www.libsdl.org/Xmingw32/, you can use something along those lines:
78
79  make distclean ; PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH \
80    ./configure --host=i386-mingw32msvc \
81    --target=i386-mingw32msvc --build=i386-linux
82
83 Building VideoLAN
84 =================
85
86 Have a look at the generated Makefile.opts file, you may want to choose
87 which modules will be compiled as plugins, and which ones will remain in
88 the core application. The configure script tries to guess for you.
89
90 Once configured, run `make' to build vlc.
91
92 If you are using the tools from http://www.libsdl.org/Xmingw32/ you can type something like:
93
94  PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH \
95    make
96
97
98 Well done, now you're ready to use vlc!