[PyQt] Open Embedded python-sip recipe question

ed enelson1000 at comcast.net
Fri Feb 19 23:12:04 GMT 2010


I am trying to build pyqt with qt4-embedded using stable branch of OE to
run on mini2440.

My image gets built with no failures.  When I try and run simple pyqt
program the fails because it cannot find the sip module.  I can run the
qt4-demo program call spreadsheet without any problems.

When I look at python2.6/site-packages directory I notice that the
sip.so file is missing.

Shouldn't the recipe python-sip_4.7.9.bb /python-sip.inc make the sip.so
file be packaged into the rootfs?


The OE log file shows it does all the build tasks but complains about
the 1st task do_setscene.
1. do_setscene - It complains about the following:

NOTE: <type 'exceptions.TypeError'>:exceptions must be classes or
instances, not str while evaluating:
${@python_dir(d)}
NOTE: <type 'exceptions.TypeError'>:exceptions must be classes or
instances, not str while evaluating:
        install -d ${D}${libdir}/${PYTHON_DIR}/site-packages/
        install -m 0755 libsip.so.1.0.0
${D}${libdir}/${PYTHON_DIR}/site-packages/sip.so

2.  All the other tasks run with no complaints.

I find sip.so file in the install and image directories.
tmp/work/armv4t-angstrom-linux-gnueabi/python-sip-4.7.9-ml0
    /install/python-sip/usr/lib/python2.6/site-packages/

tmp/work/armv4t-angstrom-linux-gnueabi/python-sip-4.7.9-ml0
    /image/usr/lib/python2.6/site-packages

In the staging-pkg  I see the following.
tmp/work/armv4t-angstrom-linux-gnueabi/python-sip-4.7.9-ml0
    /staging-pkg/staging/armv4t-angstrom-linux-gnueabi/shlibs/
    python-sip.list ===> contains libsip.so.1
    python-sip.ver ==> contains 4.7.9

So my questions are:
1. Why didn't sip.so end up in my rootfs?

Thanks
Ed




More information about the PyQt mailing list