[PyQt] Open Embedded python-sip recipe question
ed
enelson1000 at comcast.net
Mon Feb 22 01:56:45 GMT 2010
On Mon, 2010-02-22 at 01:40 +0100, David Boddie wrote:
> On Fri, 19 Feb 2010 15:12:04 -0800, ed wrote:
>
> > I am trying to build pyqt with qt4-embedded using stable branch of OE to
> > run on mini2440.
>
> The Mini2440 looks like an interesting piece of hardware. :-)
>
> > 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?
>
> I would have thought so, but I haven't looked at OpenEmbedded closely
> enough to be able to quickly figure that out.
>
> > 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
>
> Maybe this is the cause of the missing sip.so. Those error messages are
> surprising - which version of Python is being used to run the tasks?
My host system is Ubuntu 9.04 and I am running Python 2.6.2
>
> > 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?
>
> Sorry, I don't know. :-( I think you might get some detailed help on an
> OpenEmbedded mailing list, or if you ask the person who committed the
> recipes for SIP.
Asked already on OE, no response. Phil Thomson wrote the pyqt recipe
not sure if he did the sip recipe.
>
> Please let us know if you manage to resolve this issue.
Will do.
>
> Regards,
>
> David
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
More information about the PyQt
mailing list