Difference between revisions of "Creating Native Build Environment"

From Gumstix User Wiki
Jump to: navigation, search
(remove unrelated link)
Line 1: Line 1:
 +
----
 +
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 +
----
 +
=[http://otyxemydu.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=
 +
----
 +
=[http://otyxemydu.co.cc CLICK HERE]=
 +
----
 +
</div>
 
[[Category:How_to_-_general]]
 
[[Category:How_to_-_general]]
 
__FORCETOC__
 
__FORCETOC__

Revision as of 15:45, 23 November 2010


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