summaryrefslogtreecommitdiffstats
path: root/BUILD
blob: 6e2e41b1430c7ecf75dac9ce4a278f1e6ab8179c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
$Id: BUILD,v 1.11 2005/10/23 01:35:59 titer Exp $

BUILD file for HandBrake <http://handbrake.m0k.org/>

Building HandBrake with make
=============================

Step 1: get needed tools
==============

+ gcc and g++
    There are usually included in your OS' dev tools. On BeOS/Zeta, the
    default gcc isn't enough, gcc 2.95.3 is required.

+ nasm (Only for x86. On Mac OS X Intel, Xcode 2.4.1 include it)

Cygwin setup:
    There are a couple extra things required to make the code build for Cygwin.
    Make sure you have /bin and /usr/bin on your path *first*, before
    the Windows paths.  Otherwise the Cygwin find.exe won't be used, and
    lame won't build.
    Also, I have not tried to build this with MinGW, I've only built it with
    the Cygwin environment, so you should build with Cygwin gcc and dev tools.
    Unfortunately this means you need to have cygwin1.dll around to run the
    HandbrakeCLI.exe program, but that's the way it is for now, until I get time
    to try building it with MinGW.  If you want to try making it work with
    MinGW, then go for it!

Step 2: configuration
==============

The HB_BUILD and HB_VERSION are defined in a single file, the Makefile correct the values in Xcode too.

The file where the informations are stored is Makefile.config

Step 3: build
==============

Run `make'. This will build libhb, Handbrake and HandBrakeCLI as Universal Binary.
This build method use precompiled contrib libraries. Script to build those binaries are provided too.
All the build is handled by Xcode 2.4.1, should work on powerPC and Intel Macs.

# To build under Cygwin simply use the command:
make HandbrakeCLI

This will download pre-compiled libaries and build the handbrake source.

-----------------------------------------------------------------------------------------------------

Building HandBrake with jam
=============================

You can build HandBrake on BeOS, MacOS X, Linux, and on Windows using Cygwin.
If you'd like to port it to another OS, email me (titer@m0k.org).

Step 1: get needed tools
==============

+ gcc and g++
    There are usually included in your OS' dev tools. On BeOS/Zeta, the
    default gcc isn't enough, gcc 2.95.3 is required.
+ jam
    I use 2.5rc3, earlier versions might cause issues.
    On BeOS, you can download it at <http://www.haiku-os.org/develop.php>.
    On OS X, you cannot use the modified jam shipped with the developer
    tools, use this one instead:
    <http://download.m0k.org/handbrake/jam-2.5rc3-OSX.zip>.
    On Cygwin, get the jam source from
    http://public.perforce.com/public/jam/index.html,
    compile it with gcc in Cygwin, and put the jam executable somewhere on
    your path.
+ nasm (Only for x86. On Mac OS X Intel, Xcode 2.4.1 include it)

Cygwin setup:
    There are a couple extra things required to make the code build for Cygwin.
    Make sure you have /bin and /usr/bin on your path *first*, before
    the Windows paths.  Otherwise the Cygwin find.exe won't be used, and
    lame won't build.
    Also, I have not tried to build this with MinGW, I've only built it with
    the Cygwin environment, so you should build with Cygwin gcc and dev tools.
    Unfortunately this means you need to have cygwin1.dll around to run the
    HandbrakeCLI.exe program, but that's the way it is for now, until I get time
    to try building it with MinGW.  If you want to try making it work with
    MinGW, then go for it!

Step 2: build
==============

Run `./configure && jam'. This will build every library HandBrake
requires, then HandBrake itself.