Creating Native Build Environment

From Gumstix User Wiki
Revision as of 09:01, 29 August 2008 by Donnay (Talk | contribs) (Reverted edits by 130.83.139.213 (Talk); changed back to last version by Jersacct)

Jump to: navigation, search


Starting from a clean image

Installing build packages to MMC/SD

Issue the following commands to download and install the necessary packages:

$ ipkg update
$ ipkg -d mmc install gcc libc6-dev binutils libgcc-s-dev

Next, we need to create links on the root filesystem to the installed packages:

$ ipkg-link mount /media/card

The libgcc-s-dev package does not install the proper symbolic links when installed on MMC/SD. Execute the following commands to create the proper link:

$ rm /media/card/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc_s.so
$ ln -s /lib/libgcc_s.so.1 /media/card/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc_s.so

Installing build packages to CF

Issue the following commands to download and install the necessary packages:

$ ipkg update
$ ipkg -d mmc install gcc libc6-dev binutils libgcc-s-dev

Next, we need to create links on the root filesystem to the installed packages:

$ ipkg-link mount /media/cf

The libgcc-s-dev package does not install the proper symbolic links when installed on CF. Execute the following commands to create the proper link:

$ rm /media/cf/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc_s.so
$ ln -s /lib/libgcc_s.so.1 /media/cf/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc_s.so

Installing build packages to root filesystem

Issue the following commands to download and install the necessary packages:

$ ipkg update
$ ipkg install gcc libc6-dev binutils libgcc-s-dev

Completing setup

All the required packages are installed to compile simpler programs.

Notes

Please note that lib6c-dev will satisfy a few dependencies:

glibc-extra-nss
libthread-db1
linux-libc-headers-dev