[oe] openembedded to cross compile QT4 to FriendlyArm mini2440

Skan skander.lab at gmail.com
Wed Mar 17 14:13:32 UTC 2010


Hello, 
I m using ubuntu9.10 with vmware to cross 
compile a Qt4 application to Qtopia
for the FriendlyArm mini2440.
I 've done this following a tutorial
-----------------------------------------
------------------------------------------
a) dowload bitbake from: 
http://download.berlios.de/bitbake/bitbake-1.8.8.tar.gz
b) mkdir /home/paul/project 
(I make a directory named "project" under my home
folder)
c) cd /home/paul/project (Go to the new folder)
b) mkdir build (Creating a new folder under project)
d) mkdir build/conf (This folder will containts the configure file)
e) touch soure-me.txt 
(Creating a new text file under project,it will used for
initializing the enviroment)
content of soure-me.txt:

export OETREE="${PWD}"
BBPATH=${OETREE}/:${OETREE}/build/:${OETREE}/openembedded/
PKGDIR=${OETREE}/build/
echo Setting up dev env for Ångström

if [ -z ${ORG_PATH} ] ; then
ORG_PATH=${PATH}
export ORG_PATH
fi

if [ -z ${ORG_LD_LIBRARY_PATH} ] ; then
ORG_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
export ORG_LD_LIBRARY_PATH
fi

PATH=${OETREE}/bitbake/bin:${ORG_PATH}

cd $PKGDIR

LD_LIBRARY_PATH=
export PATH LD_LIBRARY_PATH BBPATH
export LANG=C
export BB_ENV_EXTRAWHITE="MACHINE DISTRO OETREE ANGSTROM_MODE 
ANGSTROMLIBC LIBC"
echo "Altered environment for OE Development"
f) tar -xzvf bitbake-1.8.8.tar.gz -C /home/paul/project 
(untar bitbake into
project folder)
2. Getting openembedded
a) cd /home/paul/project (Go to project folder)
b) git clone git://git.openembedded.org/openembedded 
(dowload openembedded)
c) cp openembedded/conf/local.conf.sample build/conf/local.conf 
(Setting
local.conf file)

3.Building qt4-embedded recipe
Because the small project needs the lib of qt4,
 so the first thing to do is
building qt4-embedded recipe,
of cause , if you already finished this task ,
you can skin this step.
Building it by command follow:
a) cd /home/paul/project (Go to the project folder)
b) source source-me.txt (initializing envira)
c) bitbake qt4-embedded (This will takes a long time)
-------------------------------------------------------
but t have this error :

skan at skan-desktop:~/project$ bitbake qt4-embedded
/usr/lib/pymodules/python2.6/bb/COW.py:29: 
DeprecationWarning: the sets module
is deprecated
  import types, sets
/usr/lib/pymodules/python2.6/bb/COW.py:29:
 DeprecationWarning: the sets module
is deprecated
  import types, sets
Traceback (most recent call last):
  File "/usr/bin/bitbake", line 143, in <module>
    main()
  File "/usr/bin/bitbake", line 123, in main
    cooker.parseConfiguration()
  File "/usr/lib/pymodules/python2.6/bb/cooker.py", line 68, in parseConfiguration
    self.parseConfigurationFile( os.path.join( "conf", "bitbake.conf" ) )
  File "/usr/lib/pymodules/python2.6/bb/cooker.py", line 404, in
parseConfigurationFile
    bb.event.fire(bb.event.ConfigParsed(self.configuration.data))
  File "/usr/lib/pymodules/python2.6/bb/event.py", line 67, in fire
    if tmpHandler(event) == Handled:
  File "tmpHandler(e)", line 4, in tmpHandler
  File "<bb>", line 18, in check_sanity
NameError: global name 'os' is not defined




What can I do?





More information about the Openembedded-devel mailing list