2005-07-07 18:56:36 +04:00
|
|
|
Setting Up
|
2002-07-09 16:24:59 +04:00
|
|
|
--------
|
|
|
|
|
|
|
|
The build system uses Jam/MR (http://www.perforce.com/jam/jam.html).
|
2005-07-07 18:56:36 +04:00
|
|
|
A BeOS executable of Jam 2.5 is available at:
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
http://haiku-os.org/downloads.php?mode=download&id=10&mirror=0
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
Unzip the executable and copy it to /boot/home/config/bin.
|
2002-07-15 02:10:54 +04:00
|
|
|
The Jam source code is also included in the source tree. You can as well cd
|
|
|
|
into "src/tools/jam" and run "make" to obtain an executable.
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
To build Haiku you also need Oliver Tappe's GCC 2.95.3. You can get it at BeBits:
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
http://www.bebits.com/app/4011
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 20:09:50 +04:00
|
|
|
Older versions of GCC 2.95.3 will likely not work.
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
Configuring
|
|
|
|
--------
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
Open a Terminal and change to your Haiku trunk folder. To configure the build you
|
|
|
|
can run configure like this:
|
|
|
|
|
|
|
|
$ ./configure --target=TARGET
|
|
|
|
|
|
|
|
Where "TARGET" is the target platform for the build. Valid targets are "r5", "bone",
|
2005-07-07 20:09:50 +04:00
|
|
|
"dano" and "haiku". If you omit the target it defaults to "haiku". To configure for ZETA
|
2005-07-07 18:56:36 +04:00
|
|
|
use the "dano" target.
|
|
|
|
|
|
|
|
The configure script generates a file named "BuildConfig" in the "build" directory.
|
|
|
|
As long as configure is not modified (!), there is no need to call it again. That is for
|
|
|
|
re-building you only need to invoke Jam or makehdimage (see below).
|
|
|
|
If you don't update the source tree very frequently, you may want to execute
|
|
|
|
configure after each update just to be on the safe side.
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
Building
|
|
|
|
--------
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
The preferred method to build Haiku (currently only possible on a BeOS machine)
|
|
|
|
is this:
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
$ makehdimage /Haiku
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
Where "/Haiku" is the (mounted) partition of where you want to install Haiku on.
|
|
|
|
If the parameter is omitted, makehdimage currently creates a 60 MB Haiku image in
|
|
|
|
this directory that you can use for Bochs, Qemu and other emulators to boot.
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
To build the whole source tree for your selected target platform (to use the apps,
|
|
|
|
drivers, add-ons, etc.) you can simply invoke Jam:
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
$ jam
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
Or to build only a specific app/driver/etc. include it as an argument:
|
|
|
|
|
|
|
|
$ jam Pulse
|
|
|
|
|
|
|
|
NOTE: If you have checked out the latest SVN revision, it is not unlikely that
|
|
|
|
some parts of the tree won't build.
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
Running
|
|
|
|
-------
|
2002-07-15 02:10:54 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
Generally there are two ways of running Haiku. On real hardware using a partition
|
|
|
|
and on emulated hardware using an emulator like Bochs.
|
2002-07-15 02:10:54 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
1. On Real Hardware
|
2002-07-15 02:10:54 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
If you have installed Haiku to it's own partition you can include this partition in
|
|
|
|
your bootmanager and try to boot Haiku like any other OS you have installed.
|
|
|
|
To include a new partition in the BeOS bootmanager run this in a Terminal:
|
2002-07-15 02:10:54 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
$ bootman
|
2002-07-15 02:10:54 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
And follow the steps of the installer.
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
2. On Emulated Hardware
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
For emulated hardware you should build a "haiku.image" using makehdimage without
|
|
|
|
arguments. How to setup this image depends on your emulater. A tutorial for Bochs
|
|
|
|
on BeOS is below.
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
Bochs
|
|
|
|
-----
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
Version 2.2 of Bochs for BeOS (BeBochs) can be downloaded from BeBits:
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
http://www.bebits.com/app/3324
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
The package installs to: /boot/apps/BeBochs2.2
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
You have to set up a configuration for Bochs. You should edit the ".bochsrc" to include
|
|
|
|
the following:
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
ata0-master: type=disk, path="/path/to/haiku.image", cylinders=122, heads=16, spt=63
|
|
|
|
boot: disk
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
Now you can start Bochs:
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
$ cd /boot/apps/BeBochs2.2
|
2002-07-09 16:24:59 +04:00
|
|
|
$ ./bochs
|
|
|
|
|
2005-07-07 18:56:36 +04:00
|
|
|
Answer with RETURN and with some patience you will see Haiku booting.
|
|
|
|
If booting into the graphical evironment fails you can try to hit "space" at the very
|
|
|
|
beginning of the boot process. The Haiku bootloader should then come up and you can
|
|
|
|
select some safe mode options.
|
2005-05-16 14:03:16 +04:00
|
|
|
|
|
|
|
|
|
|
|
Docbook documentation
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
Requirements :
|
|
|
|
- Docbook XML DTD (http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip)
|
|
|
|
- Docbook Stylesheets (http://prdownloads.sourceforge.net/docbook/docbook-xsl-1.68.1.tar.bz2)
|
|
|
|
- libxml2, xmllin (http://libpak.neoni.net/packages/LibPak_libxml2_dev.zip)
|
|
|
|
- libxslt, xsltproc (http://libpak.neoni.net/packages/LibPak_libxslt_dev.zip)
|
|
|
|
|
|
|
|
XML catalogs must be configured to avoid internet access :
|
|
|
|
- in Docbook Stylesheets directory : sh ./INSTALL
|
|
|
|
- in your .profile, add something like this :
|
|
|
|
export XML_CATALOG_FILES="/boot/home/docbook-xsl-1.68.1/catalog.xml /boot/home/docbook-xml-4.2/catalog.xml /etc/xml/catalog"
|