Building a Live CD ISO Image

Suppose that you have downloaded Glidix source code and want to build a live ISO yourself. To start, create a working directory, and put the Glidix package root under a subdirectory, glidix. Next to it, make a directory called glidix-iso. We will be building from glidix-iso.

Configuring

The most basic configuration would be as follows:

$ ../glidix/configure --sysroot=/glidix --iso

The sysroot does not have to be /glidix, but that's just what I use. It must be consistent with where you installed the cross-compiler. The configure --help command will show you other options, if you want to customize further.

Building system libraries

It must be possible to link against system libraries when building the executables for the ISO. You must therefore build and install the system libraries first, in the correct order. You only need to do this once (unless a library has changed and affects the build). Here's the full deal:

make libc
sudo make install-libc
make libz
sudo make install-libz
make libgpm
sudo make install-libgpm
make libpng
sudo make install-libpng
make freetype
sudo make install-freetype
make libddi
sudo make install-libddi
make fstools
sudo make install-fstools
make libgwm
sudo make install-libgwm

Perhaps in the future there will be a script which automatically solves this!

Building the ISO

After all that was done, simply run:

make

If everything went well, you should now have a file called glidix.iso. Congratulations, you can now boot it!