Creating Native Build Environment

From Gumstix User Wiki
Revision as of 23:38, 2 March 2008 by Jersacct (Talk | contribs) (This page lists the steps necessary to create a native build environment for OE builds using glibc)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

From a clean image, the following packages must be installed via ipkg (after performing 'ipkg update'):

Installing to root filesystem:

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

Installing to MMC/SD/CF:

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


Please note that lib6c-dev will satisfy a few dependencies if they are not already present:

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

If these packages were installed to a CF, SD, or MMC device, you will need to issue the appropriate 'ipkg-link' commands.

A symbolic link is broken if not installed to the root filesystem, so it needs to be fixed using the following commands:

For MMC/SD Users:

    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

For CF Users:

    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