[haiku] Re: Are these Haiku build instructions correct?

  • From: Luposian <luposian@xxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Sat, 1 Aug 2015 01:12:03 -0700

On Jul 31, 2015, at 11:18 AM, Ingo Weinhold wrote:

On 31.07.2015 09:19, Luposian wrote:
I wrote them down (modifying, where needed), based on prior instructions I
wrote for Ubuntu.

Are these completely accurate? In the right order? Are any further
correction(s) necessary?


-----

Click on the Blue Leaf and then go to: Applications -> Terminal

Click on Terminal.

At the prompt, type:

git clone git://git.haiku-os.org/buildtools haiku/buildtools

To update the build tools, go to this same directory and type: git pull

When the prompt reappears, type:

git clone git://git.haiku-os.org/haiku haiku/haiku

To update the Haiku tree, go to this same directory and type: git pull

When the prompt reappears, type:

cd haiku/buildtools/jam
make

You build jam here, but later don't actually use it. The executable you build
will sit in a "bin.<something>" subdirectory. Unless you explicitly specify
the path to this file below or move/copy/symlink it to a location in the PATH
(e.g. ~/config/non-packaged/bin/) that shadows /system/bin/jam, the latter
will be used. IOW, unless you have a reason for building and using jam from
the buildtools repository, you can as well omit this part.

When the prompt reappears, type:

cd ../../..

This will take you back to where Terminal started, when you first ran it.

To build Haiku, type the following:

cd haiku/haiku
./configure

This will configure gcc2-only build (or gcc4-only -- depending on your
primary architecture), which may or may not be what you want.

If you want to create a CD image of Haiku, in the /Generated folder, type:

jam -q haiku-cd

If you want to create an Anyboot image of Haiku, in the /Generated folder,
change the above command to:

jam -q haiku-anyboot-image

If you want to create a Raw image of Haiku, in the /Generated folder, change
the above command to:

jam -q haiku-image

These targets probably work, but off the top of my head I couldn't say what
exactly they build. I recommend using the build profiles that are more
specific:

jam -q @release-cd
jam -q @release-anyboot
jam -q @release-raw

jam -q @nightly-cd
jam -q @nightly-anyboot
jam -q @nightly-raw

jam -q @minimum-cd
jam -q @minimum-anyboot
jam -q @minimum-raw

... depending on what you want to build.

CU, Ingo

What is the difference between release, nightly, and minimum?

If I use

jam -q @minimum-raw (or either of the others (release or nightly))

will that put it in my own /Generated folder?

I've always used:

jam -q haiku-image

and it used to work, but now it doesn't. Could the jam parameters have changed
and that's why it's failing now?


Other related posts: