1 $Id: HACKING,v 1.6 2002/10/07 21:58:40 massiot Exp $
9 You will need the following tools if you plan to use the CVS version of vlc:
11 - autoconf version 2.50 or later
13 - automake version 1.5 (but 1.6 or later is recommended)
15 - gettext version 0.10.40 (but 0.11.3 or later is recommended)
17 After retrieving the CVS tree, you need to run the bootstrap script to
18 generate all the files needed to build vlc. You can then run configure.
20 If you do not have the correct version of these tools, or if they are
21 simply not available for the operating system you plan to develop on,
22 you can check out a CVS tree on an OS that provides these tools (such
23 as a recent Linux distribution), run bootstrap, and then copy the whole
24 tree to your retarded OS.
26 There is a possibility that, at some point, automake might segfault. The
27 reason is unsufficient stack size, and can be easily fixed with the
28 `ulimit` command (or an equivalent) available in most shells. For instance
29 on bash 2.0, the following command solves the automake crash on Mac OS X :
33 The bootstrap sequence
34 ----------------------
36 The bootstrap script does the following actions:
38 - browse the modules/ directory for all available modules. A module "foo"
39 exists if there is a Modules.am file in the modules/ directory which
42 - create a top-level Modules.am file (which will be included by Makefile.am)
43 which contains additional build rules for modules, and includes all the
44 Modules.am files that were found in modules/
46 - create a top-level configure.ac file from configure.ac.in, generating
47 the AC_SUBST and AM_CONDITIONAL rules that will be needed.
49 - run autopoint (previously gettextize) to create an intl/ directory,
50 needed when libgettext is not available.
52 - run the usual aclocal, autoheader, automake and autoconf, which create
53 the various Makefile.in files from the corresponding Makefile.am and the
54 configure script from configure.ac.
56 - fix a few files in the vlc repository that may have been altered.
62 To add a module to the repository, just add its sources to a Modules.am
63 file. If you create a new Modules.am, do not forget to add a corresponding
64 line to modules/Makefile.am.