Difference between revisions of "Build Environment Ubuntu 8.10"

From Gumstix User Wiki
Jump to: navigation, search
(New page: This the current set-up for Ubuntu 8.10 as described [http://www.nabble.com/Ubuntu-8.10-and-Open-Embeded-td21136352.html on this thread] == Setup Build Environment == 1) Get Ubuntu linux ...)
 
Line 1: Line 1:
This the current set-up for Ubuntu 8.10 as described [http://www.nabble.com/Ubuntu-8.10-and-Open-Embeded-td21136352.html on this thread]
+
This the current set-up for Ubuntu 8.10 with file modifications as described [http://www.nabble.com/Ubuntu-8.10-and-Open-Embeded-td21136352.html on this thread]
  
 
== Setup Build Environment ==
 
== Setup Build Environment ==

Revision as of 23:33, 8 February 2009

This the current set-up for Ubuntu 8.10 with file modifications as described on this thread

Setup Build Environment

1) Get Ubuntu linux 8.10, and install it on your computer; you can install a vmware version of Ubuntu too, but it will be slow during the building process

2) Install (build-essential, help2man, diffstat, texi2html, texinfo, libncurses5-dev, cvs, gawk, python-dev, python-pysqlite2, ckermit, lrzsz) by using apt-get. i.e:

sudo apt-get install build-essential help2man diffstat texi2html texinfo libncurses5-dev cvs gawk python-dev python-pysqlite2 ckermit lrzsz

3) Download the source from svn, and caching the source code

mkdir ~/gumstix 
cd ~/gumstix 
svn co https://gumstix.svn.sourceforge.net/svnroot/gumstix/trunk gumstix-oe
cat gumstix-oe/extras/profile >> ~/.bashrc
sudo groupadd oe
sudo usermod -a -G oe YOUR_CURRENT_USERNAME
sudo mkdir /usr/share/sources
sudo chgrp oe /usr/share/sources
sudo chmod 0775 /usr/share/sources
sudo chmod ug+s /usr/share/sources

4) Downgrade to gcc-4.1 and g++-4.1 and change the links:

sudo aptitude install gcc-4.1 g++-4.1
sudo ln -sf /usr/bin/gcc-4.1 /usr/bin/gcc
sudo ln -sf /usr/bin/g++-4.1 /usr/bin/g++.

Check is correct using:

ls -l /usr/bin/gcc
ls -l /usr/bin/g++

5) Edit gumstix/gumstix-oe/tmp/work/i686-linux/dbus-native-1.0.1-r0/ dbus-1.0.1/dbus/dbus-sysdeps-unix.c

Add this struct:

struct ucred { 
   unsigned int pid; 
   unsigned int uid; 
   unsigned int gid; 
};

after the macros

6) Edit gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux- gnueabi/gumstix-kernel-2.6.21-r1/linux-2.6.21/scripts/mod/sumversion.c

Add this line:

 #include <limits.h> 

after all of the other includes.

7) Logout and then login again.

8) Start compiling the environment by bitbake; this will talk a very long time!

bitbake gumstix-basic-image