This is second post in the series of articles about Palm OS Emulator. You can find first part here.
First of all we need to install debootstrap if not done already. On Debian or Ubuntu it can be done just by running this command from terminal
Before proceeding to install anything let’s set variable for absolute path to chroot environment where all files will be stored.
In chroot environment I’ll be installing Debian GNU/Linux 4.0 - “Etch”
let’s create a directory where to store all environment files
and install Debian base system
Complete install log can be seen in this gist. After successful installation everything should be in debian.4.0-etch directory under home folder of current user, then I am running a command with a specified root directory. Specified root directory is $MY_CHROOT and command is not specified explicitly and it defaults to $SHELL, in my case it is /bin/bash, that is invoked with the -i option.
In short I am running this line below
after than I am going to install this list of packages
in order to install packages from above list I am running this command below inside chroot environment
then I need to understand where are gcc and g++ located
let’s change shell working directory to /usr/bin where gcc, g++ are and check their properties with ls command
gcc and g++ are symbolic links to specific version of both drivers. Let’s check what else we have there related to these compiler drivers.
From what I have learned, I need to relink these symlinks to version 2.95, I am going to remove gcc and g++ and make symbolic links to gcc-2.95, g++-2.95 instead.
Now I am going to create a build directory to have everything in one place
So far so good. These are sufficient steps for build environment setup.
Further actions will be described in next post.