Build Environment openSUSE 11.0

From Gumstix User Wiki
Revision as of 04:40, 2 October 2009 by Adil (Talk | contribs) (Created page with 'Be sure that the followings are installed on your system: * gcc * patch * help2man * diffstat * texinfo * ncurses-devel * cvs * gawk * sqlite3 * sqlite3-devel openSUSE 11.0 an…')

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

Be sure that the followings are installed on your system:

  • gcc
  • patch
  • help2man
  • diffstat
  • texinfo
  • ncurses-devel
  • cvs
  • gawk
  • sqlite3
  • sqlite3-devel

openSUSE 11.0 and above comes with Python 2.6+ installed. So you'll need to remove it and install an older version of Python.

mkdir python
cd python
wget http://www.python.org/ftp/python/2.5.4/Python-2.5.4.tgz
tar xzfv Python-2.5.4.tgz
cd Python-2.5.4
./configure
make
make install

Install pysqlite:

wget http://oss.itsystementwicklung.de/download/pysqlite/2.4/2.4.1/pysqlite-2.4.1.tar.gz
tar xzfv pysqlite-2.4.1.tar.gz
cd pysqlite-2.4.1
python setup.py build
python setup.py install


Now you're ready for building gumstix-oe pack. Checkuot the sources from svn:

$ mkdir ~/gumstix 
$ cd ~/gumstix 
$ svn co http://gumstix.svn.sourceforge.net/svnroot/gumstix/trunk gumstix-oe


Gumstix OE requires some environment setup in order to function properly. There are a couple of ways to handle this requirement.

$ cat gumstix-oe/extras/profile >> ~/.bashrc

First we create a new group called oe and add your login account to the oe group. In the second command be sure to substitute your login user name where your_username is indicated.

$ sudo groupadd oe
$ sudo usermod -G oe your_username

Next we create the directory for the source code cache, set the group owner to the newly created oe group, and finally set permissions on the directory:

$ sudo mkdir /usr/share/sources
$ sudo chgrp oe /usr/share/sources
$ sudo chmod 0775 /usr/share/sources
$ sudo chmod ug+s /usr/share/sources

Now relogin for letting the profile take effect.

Build the OE gumstix image:

$ bitbake gumstix-basic-image