OSDN Git Service

A line went missing from Controller.mm in the reorg of that file, you
[handbrake-jp/handbrake-jp-git.git] / BUILD
1 $Id: BUILD,v 1.11 2005/10/23 01:35:59 titer Exp $\r
2 \r
3 BUILD file for HandBrake <http://handbrake.m0k.org/>\r
4 \r
5 Building HandBrake with make\r
6 =============================\r
7 \r
8 Step 1: get needed tools\r
9 ==============\r
10 \r
11 + gcc and g++\r
12     There are usually included in your OS' dev tools. On BeOS/Zeta, the\r
13     default gcc isn't enough, gcc 2.95.3 is required.\r
14 \r
15 + nasm (Only for x86. On Mac OS X Intel, Xcode 2.4.1 include it)\r
16 \r
17 Cygwin setup:\r
18     There are a couple extra things required to make the code build for Cygwin.\r
19     Make sure you have /bin and /usr/bin on your path *first*, before\r
20     the Windows paths.  Otherwise the Cygwin find.exe won't be used, and\r
21     lame won't build.\r
22     Also, I have not tried to build this with MinGW, I've only built it with\r
23     the Cygwin environment, so you should build with Cygwin gcc and dev tools.\r
24     Unfortunately this means you need to have cygwin1.dll around to run the\r
25     HandbrakeCLI.exe program, but that's the way it is for now, until I get time\r
26     to try building it with MinGW.  If you want to try making it work with\r
27     MinGW, then go for it!\r
28 \r
29 Step 2: configuration\r
30 ==============\r
31 \r
32 The HB_BUILD and HB_VERSION are defined in a single file, the Makefile correct the values in Xcode too.\r
33 \r
34 The file where the informations are stored is Makefile.config\r
35 \r
36 Step 3: build\r
37 ==============\r
38 \r
39 Run `make'. This will build libhb, Handbrake and HandBrakeCLI as Universal Binary.\r
40 This build method use precompiled contrib libraries. Script to build those binaries are provided too.\r
41 All the build is handled by Xcode 2.4.1, should work on powerPC and Intel Macs.\r
42 \r
43 # To build under Cygwin simply use the command:\r
44 make HandbrakeCLI\r
45 \r
46 This will download pre-compiled libaries and build the handbrake source.\r
47 \r
48 -----------------------------------------------------------------------------------------------------\r
49 \r
50 Building HandBrake with jam\r
51 =============================\r
52 \r
53 You can build HandBrake on BeOS, MacOS X, Linux, and on Windows using Cygwin.\r
54 If you'd like to port it to another OS, email me (titer@m0k.org).\r
55 \r
56 Step 1: get needed tools\r
57 ==============\r
58 \r
59 + gcc and g++\r
60     There are usually included in your OS' dev tools. On BeOS/Zeta, the\r
61     default gcc isn't enough, gcc 2.95.3 is required.\r
62 \r
63 + jam\r
64     I use 2.5rc3, earlier versions might cause issues.\r
65     On BeOS, you can download it at <http://www.haiku-os.org/develop.php>.\r
66     On OS X, you cannot use the modified jam shipped with the developer\r
67     tools, use the one included in the Handbrake svn checkout instead.\r
68     On Cygwin, get the jam source from\r
69     http://public.perforce.com/public/jam/index.html,\r
70     compile it with gcc in Cygwin, and put the jam executable somewhere on\r
71     your path.\r
72 \r
73 + nasm (Only for x86. On Mac OS X Intel, Xcode 2.4.1 include it)\r
74 \r
75 + libtool, autoconf, automake\r
76     To build libdca (the DTS audio extraction library) on Mac OS X via jam, you'll\r
77     need to update the default Mac OS X versions of libtool, autoconf and automake.\r
78     Compilation has been seen to work with libtool and libtool-shlibs v1.5.22-1000,\r
79     autoconf v2.60-4, and automake v1.9.6-3.  You can update these tools using Fink.\r
80     Download the Fink 0.8.1 Binary Installer for your platform (PowerPC or Intel)\r
81     from http://www.finkproject.org/download/index.php?phpLang=en and install Fink\r
82     using the installer.  If you want to use a GUI to run Fink, you can install\r
83     FinkCommander.  Download the FinkCommander 0.5.4 installer from\r
84     http://finkcommander.sourceforge.net/ and install from the disk image.  You can\r
85     install libtool, libtool-shlibs, autoconf and automake using FinkCommander.\r
86 \r
87 Cygwin setup:\r
88     There are a couple extra things required to make the code build for Cygwin.\r
89     Make sure you have /bin and /usr/bin on your path *first*, before\r
90     the Windows paths.  Otherwise the Cygwin find.exe won't be used, and\r
91     lame won't build.\r
92     Also, I have not tried to build this with MinGW, I've only built it with\r
93     the Cygwin environment, so you should build with Cygwin gcc and dev tools.\r
94     Unfortunately this means you need to have cygwin1.dll around to run the\r
95     HandbrakeCLI.exe program, but that's the way it is for now, until I get time\r
96     to try building it with MinGW.  If you want to try making it work with\r
97     MinGW, then go for it!\r
98 \r
99 Step 2: build\r
100 ==============\r
101 \r
102 Run `./configure && jam'. This will build every library HandBrake\r
103 requires, then HandBrake itself.\r