[PyQt] PyQT4 and Qt Embedded 4.8.4
Phil Thompson
phil at riverbankcomputing.com
Fri Feb 1 09:15:29 GMT 2013
On Fri, 1 Feb 2013 17:01:53 +0900, IhatemyISP <ihatemyisp at gmail.com>
wrote:
> I'm trying to compile PyQT against Qt/E and I've run into a problem.
Here's
> the output I'm getting:
>
> g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG
> -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_CORE_LIB
> -I. -I/home/ubuntu/Desktop/tmp/PyQt-x11-gpl-4.9.5/qpy/QtCore
> -I/usr/include/python2.7
> -I/usr/local/Trolltech/QtEmbedded-4.8.4/mkspecs/default
> -I/usr/local/Trolltech/QtEmbedded-4.8.4/include/QtCore
> -I/usr/local/Trolltech/QtEmbedded-4.8.4/include -o sipQtCoreQThread.o
> sipQtCoreQThread.cpp
> /home/ubuntu/Desktop/tmp/PyQt-x11-gpl-4.9.5/QtCore/sipQtCoreQThread.cpp:
In
> function ‘PyObject* meth_QThread_currentThreadId(PyObject*, PyObject*)’:
>
/home/ubuntu/Desktop/tmp/PyQt-x11-gpl-4.9.5/QtCore/sipQtCoreQThread.cpp:325:50:
> error: invalid conversion from ‘Qt::HANDLE {aka void*}’ to ‘long
unsigned
> int’ [-fpermissive]
> /usr/include/python2.7/longobject.h:19:24: error: initializing
argument 1
> of ‘PyObject* PyLong_FromUnsignedLong(long unsigned int)’ [-fpermissive]
> make[1]: *** [sipQtCoreQThread.o] Error 1
> make[1]: Leaving directory
> `/home/ubuntu/Desktop/tmp/PyQt-x11-gpl-4.9.5/QtCore'
> make: *** [all] Error 2
>
> PyQT - 4.9.6
> Qt - 4.9.6
> Python - 2.7.2+
>
> I'm doing this on a Beaglebone, hence the desire to use Qt/E.
>
> Any advice you can give will be appreciated.
>
> Cheers
You probably need to update the .sip files to define a new platform. Then
include the correct definitions (eg for Qt::HANDLE) for that platform.
I'm in the process of adding support for cross-compilation to the build
system but that is a few weeks away yet.
Phil
More information about the PyQt
mailing list