]> git.sesse.net Git - vlc/blob - INSTALL-win32.txt
3e2183ca40750f3f15dffc49f798a61cde0c989c
[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 To store a debug log of the current vlc session, you can use
15 'vlc -vvv --stdout=debug.txt'.
16
17 If you want to play a DVD, run vlc and click on the Disc option in the
18 interface. You then have to type your drive letter in the 'Device name'
19 box (eg. 'D:' if your dvdrom drive is assigned the letter 'D').
20 ( !Warning: you have to be in administrator mode (for now) on Win2k )
21
22
23 Building VideoLAN from source code
24 ==================================
25
26 If you want to do the tricky job of building vlc from source, follow
27 these instructions:
28 ( WARNING: the win32 build process is not yet really stable, so you may have
29   to hack manually the MAKEFILES )
30
31 Getting the right tools
32 =======================
33
34 You can build the win32 vlc port in two ways:
35 - natively on Windows
36 - or on Linux, using cross-compiling
37
38 All the necessary tools can be found on the libSDL web page:
39 http://www.libsdl.org/Xmingw32/
40
41 - cross-compiling with mingw32:
42 You need to download the linux cross-compiler version of mingw32.
43 (for Debian GNU/Linux users, there is a mingw32 package)
44 You must also not forget to install some extra header files and libraries if
45 you want to build some plugins like DirectX, GTK or SDL.
46
47 - compiling natively on Windoze:
48 [coming soon (investigating a combination of cygwin+mingw32)]
49
50 Configuring the build
51 =====================
52
53 A typical way to configure the build process of vlc is to use the
54 `./configure' script.
55
56 See `./configure --help' for more information.
57
58 For example if you are cross-compiling from Debian, you can use something
59 along those lines:
60
61  make distclean ; CC=i586-mingw32msvc-gcc \
62    ./configure --host=i586-mingw32msvc --target=i586-mingw32msvc \
63     --build=i386-linux --with-gtk-config-path=/usr/i586-mingw32msvc/bin \
64     --with-sdl-config-path=/usr/i586-mingw32msvc/bin
65
66 ./configure uses the 'gtk-config' and 'sdl-config' scripts and unfortunately,
67 when cross-compiling you have to tell ./configure where to find them.
68 You have two choices for this, you can either add the path to these files at
69 the beginning of your PATH variable. Or you can use the
70 '--with-gtk/sdl-config-path' option.
71 (by the way, you may have to create a gtk-config script yourself or modify
72 the one from your linux distro)
73
74 If you are cross-compiling using the package provided by
75 http://www.libsdl.org/Xmingw32/, you can use something along those lines:
76
77  make distclean ; PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH \
78    ./configure --host=i386-mingw32msvc \
79    --target=i386-mingw32msvc --build=i386-linux
80
81 Building VideoLAN
82 =================
83
84 Have a look at the generated Makefile.opts file, you may want to choose
85 which modules will be compiled as plugins, and which ones will remain in
86 the core application. The configure script tries to guess for you.
87
88 Once configured, run `make' to build vlc.
89
90 If you are using the tools from http://www.libsdl.org/Xmingw32/ you can type something like:
91
92  PATH=/usr/local/cross-tools/bin:/usr/local/cross-tools/i386-mingw32msvc/bin:$PATH \
93    make
94
95 Building Win32 interface with bcc32 (Borland's compiler)
96 ========================================================
97
98 [Steps 2 and 3 are temporary]
99
100 1) Compile vlc as usual.
101 include\defs.h should be generated.
102
103 2) Edit include\defs.h, and add the following lines if necessary:
104 #define WIN32
105 #define MODULE_NAME win32
106 #define MODULE_NAME_IS win32
107 #define PLUGIN
108 #define HAVE_DYNAMIC_PLUGINS
109
110 3) Still in defs.h, comment the following line to avoid compilation warnings:
111 #define PACKAGE "vlc"
112
113 4) From the plugin\win32 directory, use Borland C++ command-line tools
114 as follows:
115 bpr2mak intfwin.bpr     // Create a makefile from intfwin.bpr
116 make -fintfwin          // It's Borland's make utility !
117
118 5) This should create a intfwin.so
119 You can remove any other generated file.
120
121
122 Well done, now you're ready to use vlc!