From: Terry K. <kl...@kl...> - 2008-03-31 18:35:57
|
The OE .dev branch has the updated PYQT 4.3.3 recipe already. See if you can browse the MTN sources and look at the recipe(s). I always keep a current OE.dev checked out for just these sorts of things, the gumstix snapshot is getting pretty old now. here is python-pyqt_4.3.3.bb from OE.dev anyway ----------------------------------------------------------- DESCRIPTION = "Python Qt4 Bindings" HOMEPAGE = "http://riverbankcomputing.co.uk" AUTHOR = "Phil Thomson @ riverbank.co.uk" SECTION = "devel/python" PRIORITY = "optional" LICENSE = "GPL" DEPENDS = "sip-native python-sip" RDEPENDS = "python-core" SRCNAME = "pyqt" PR = "ml1" SRC_URI = "\ http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/PyQt-x11-gpl-${PV}.tar.gz \ file://cross-compile.patch;patch=1 \ file://01_configure.dpatch;patch=1 \ file://02_htmllinks.dpatch;patch=1 \ file://03_qreal.dpatch;patch=1 \ file://04_qreal_api_fixes.dpatch;patch=1 \ file://assistantclient-fix.patch;patch=1" S = "${WORKDIR}/PyQt-x11-gpl-${PV}" inherit qt4x11 sip distutils-base PARALLEL_MAKE = "" QMAKE_PROFILES = "pyqt.pro" # NOTE: match with qt version we have in OE EXTRA_SIPTAGS = "-tWS_X11 -tQt_4_3_3 -xVendorID -xPyQt_SessionManager -xPyQt_Accessibility" EXTRA_OEMAKE = " MAKEFLAGS= " SIP_MODULES = "QtCore QtGui QtNetwork QtSql QtSvg QtXml QtAssistant" EXTRA_QMAKEVARS_POST += "INCLUDEPATH+=${OE_QMAKE_INCDIR_QT}/Qt \ INCLUDEPATH+=${STAGING_INCDIR}/${PYTHON_DIR} \ DEFINES+=QT_NO_FPU" FIX_QREAL = "\ QtCore/qtimeline.sip \ QtCore/qrect.sip \ QtGui/qtransform.sip \ " do_generate_prepend() { for i in ${FIX_QREAL}; do sed -i -e s,qreal,float,g sip/$i done } do_configure_prepend() { printf "TEMPLATE=subdirs\nSUBDIRS=${SIP_MODULES}\n" >pyqt.pro } do_stage() { install -d ${STAGING_SIPDIR}/qt/ install -d ${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages for module in ${SIP_MODULES} do install -m 0644 ${S}/sip/${module}/*.sip ${STAGING_SIPDIR}/qt/ install -m 0755 ${module}/lib${module}.so ${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages/${module}.so done } do_install() { install -d ${D}${libdir}/${PYTHON_DIR}/site-packages/PyQt4 for module in ${SIP_MODULES} do echo "from PyQt4.${module} import *\n" >> ${D}${libdir}/${PYTHON_DIR}/site-packages/PyQt4/Qt.py install -m 0755 ${module}/lib${module}.so ${D}${libdir}/${PYTHON_DIR}/site-packages/PyQt4/${module}.so done cp -pPR elementtree ${D}${libdir}/${PYTHON_DIR}/site-packages/PyQt4/ cp __init__.py ${D}${libdir}/${PYTHON_DIR}/site-packages/PyQt4/ } FILES_${PN} = "${libdir}/${PYTHON_DIR}/site-packages" -------------------------------------------------------------- Terry On Mon, 2008-03-31 at 09:46 -0500, Hal Glenn wrote: > Hello everyone, > > I was hopping to use PYQT on one of my next projects using a gumstix. > And I've been trying to get everything running smoothly with OE, this is > still kind of new to me. > > First off it seems that Riverbank computing that hosts the pyqt source > has upped the version from 4.3 to 4.3.3, which causes a fetch error > because the 4.3 source is not available anymore. I just changed the > recipe file name to 4.3.3 and it found the new source correctly, > although it did complain about having the wrong version. I would like to > try and fix the recipe and resubmit it back to the OE repository. But > first I need to get it building in general. Now with the 4.3.3 source i > get an error with the generation. From something called sip? > > NOTE: using modules 'QtCore QtGui QtNetwork QtSql QtSvg QtXml' and tags > '-tWS_X11 -tQt_4_3_0 -xVendorID -xPyQt_SessionManager -xPyQt_Accessibility' > > calling 'sip4 -I sip -I > /home/hglenn/gumstix/gumstix-oe/tmp/staging/i686-linux/share/sip > -tWS_X11 -tQt_4_3_0 -xVendorID -xPyQt_SessionManager > -xPyQt_Accessibility -c QtCore -b QtCore/QtCore.pro.in > sip/QtCore/QtCoremod.sip' > > sip: sip/QtCore/qtimer.sip:41: SIP_RXOBJ_CON and SIP_SLOT_CON must both > be given and at most once > > FATAL: Error calling sip on QtCore > > I would like to try getting this all patched up. And if things go well > it's something we may use a lot and we can try and help maintain it. I > appreciate the help in getting us started with it. > > > > As a side note, I think the uClibc build basic image is broken. I really > didn't know where to start looking to try and fix it so I just switched > back to the glibc C library and it built fine, someone may want to know > this? Sorry, i don't have any error info on it to report. > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > |