Changeset 15384
- Timestamp:
- 12/06/05 17:47:56 (3 years ago)
- Files:
-
- 1 modified
-
haiku/trunk/ReadMe (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
haiku/trunk/ReadMe
r13627 r15384 1 1 Setting Up 2 -------- 2 ---------- 3 3 4 4 The build system uses Jam/MR (http://www.perforce.com/jam/jam.html). … … 17 17 Older versions of GCC 2.95.3 will likely not work. 18 18 19 If you intend to build Haiku from a supported build platform other than BeOS, 20 e.g. GNU/Linux, you need to build a jam executable yourself (don't use the 21 one coming with your distribution). cd into the "src/tools/jam" subdirectory 22 of the Haiku tree and type "make" (or "gmake"). The generated jam executable 23 will be found in a platform specific subdirectory, e.g. "bin.linuxx86/". 24 The easiest way to use it, is to copy it to a place in your PATH. Furthermore 25 you need to build the tools for cross compilation (binutils and gcc). Fear not, 26 the configure script will help you with that one; see below. 27 19 28 20 29 Configuring 21 -------- 30 ----------- 31 32 Under BeOS: 22 33 23 34 Open a Terminal and change to your Haiku trunk folder. To configure the build you … … 26 37 $ ./configure --target=TARGET 27 38 28 Where "TARGET" is the target platform for the build. Valid targets are "r5", "bone",29 " dano" and "haiku". If you omit the target it defaults to "haiku". To configure for ZETA30 use the "dano" target.39 Where "TARGET" is the target platform for the build. Valid targets are "r5", 40 "bone", "dano" and "haiku". If you omit the target it defaults to "haiku". To 41 configure for ZETA use the "dano" target. 31 42 32 The configure script generates a file named "BuildConfig" in the "build" directory.33 As long as configure is not modified (!), there is no need to call it again. That is for 34 re-building you only need to invoke Jam or makehdimage(see below).43 The configure script generates a file named "BuildConfig" in the "build" 44 directory. As long as configure is not modified (!), there is no need to call it 45 again. That is for re-building you only need to invoke jam (see below). 35 46 If you don't update the source tree very frequently, you may want to execute 36 47 configure after each update just to be on the safe side. 48 49 50 Under Linux or another supported build platform: 51 52 You don't need to supply the "--target" option to configure, since the only 53 supported target is the default "haiku" anyway. But you have to tell, what 54 cross compilation tools to use. The tools installed in the system won't work 55 for compiling Haiku itself (they will be used for building some build tools, 56 though). The easiest way is to instruct configure to build those tools from the 57 sources. Supposing you have checked out the buildutils module from the Haiku 58 SVN repository alongside the Haiku source tree, you can do that via: 59 60 $ ./configure --build-cross-tools ../buildtools 61 62 One of the last output lines should tell you that the tools have been built 63 successfully. 64 65 Note, that the old gcc 2.95.3 will be used for building Haiku, required for 66 binary compatibility with BeOS R5. If you're not interested in binary 67 compatibility (or want to build for the PowerPC architecture), you can instead 68 use: 69 70 $ ./configure --build-cross-tools-gcc4 <arch> ../buildtools 71 72 Replace "<arch>" with either "x86" or "ppc", depending on which of the two 73 architectures you want to build for. 74 [At the moment (2005-12-06) the build for PowerPC, or at least the resulting 75 Haiku does not work.] 76 37 77 38 78 … … 40 80 -------- 41 81 42 The preferred method to build Haiku (currently only possible on a BeOS machine) 43 is this: 82 Haiku can be built in either of two ways, as disk image file (e.g. for use with 83 emulators) or as installation in a directory. 44 84 45 $ makehdimage /Haiku 85 Image File: 46 86 47 Where "/Haiku" is the mounted BFS partition where you want to install Haiku on. 48 This can be any BFS partition with enough space available. Use DriveSetup to initialize 49 a partition to BFS. 50 If the parameter is omitted, makehdimage currently creates a 60 MB Haiku image in 51 this directory that you can use for Bochs, Qemu and other emulators to boot. 87 $ jam -q haiku-image 52 88 53 To build the whole source tree for your selected target platform (to use the apps, 54 drivers, add-ons, etc.) you can simply invoke Jam: 89 Generates an image file named "haiku.image" in your output directory (usually 90 "generated/"). This method works for all supported build platforms. 55 91 56 $ jam57 92 58 Or to build only a specific app/driver/etc. include it as an argument: 93 Directory Installation: 94 95 $ HAIKU_INSTALL_DIR=/Haiku jam -q install-haiku 96 97 Installs all Haiku components into the directory "/Haiku". If that directory 98 is the root of a mounted BFS partition, you'll have a Haiku partition afterwards. 99 To create a partition in the first place use DriveSetup and initialize it to BFS. 100 101 Note, that installing Haiku in a directory only works as expected under BeOS. 102 103 104 Building Components: 105 106 If you don't want to build the complete Haiku, but only a certain app/driver/etc. 107 you can specify it as argument to jam, e.g.: 59 108 60 109 $ jam Pulse 61 62 NOTE: If you have checked out the latest SVN revision, it is not unlikely that63 some parts of the tree won't build.64 110 65 111 … … 68 114 69 115 Generally there are two ways of running Haiku. On real hardware using a partition 70 and on emulated hardware using an emulator like Bochs .116 and on emulated hardware using an emulator like Bochs or QEmu. 71 117 72 118 1. On Real Hardware 73 119 74 If you have installed Haiku to it's own partition you can include this partition in75 your bootmanager and try to boot Haiku like any other OS you have installed.120 If you have installed Haiku to it's own partition you can include this partition 121 in your bootmanager and try to boot Haiku like any other OS you have installed. 76 122 To include a new partition in the BeOS bootmanager run this in a Terminal: 77 123 … … 82 128 2. On Emulated Hardware 83 129 84 For emulated hardware you should build a "haiku.image" using makehdimage without 85 arguments. How to setup this image depends on your emulater. A tutorial for Bochs 86 on BeOS is below. 130 For emulated hardware you should build disk image (see above). How to setup this 131 image depends on your emulater. A tutorial for Bochs on BeOS is below. If you 132 use QEmu, you can usually just provide the path to the image as command line 133 argument to the "qemu" executable. 87 134 88 135 … … 96 143 The package installs to: /boot/apps/BeBochs2.2 97 144 98 You have to set up a configuration for Bochs. You should edit the ".bochsrc" to include99 the following:145 You have to set up a configuration for Bochs. You should edit the ".bochsrc" to 146 include the following: 100 147 101 148 ata0-master: type=disk, path="/path/to/haiku.image", cylinders=122, heads=16, spt=63 … … 108 155 109 156 Answer with RETURN and with some patience you will see Haiku booting. 110 If booting into the graphical evironment fails you can try to hit "space" at the very111 beginning of the boot process. The Haiku bootloader should then come up and you can 112 select some safe mode options.157 If booting into the graphical evironment fails you can try to hit "space" at the 158 very beginning of the boot process. The Haiku bootloader should then come up and 159 you can select some safe mode options. 113 160 114 161
