[PyQt] Lates PyQt4 snapshot doesn't compile
Phil Thompson
phil at riverbankcomputing.com
Tue Dec 23 02:23:12 GMT 2014
On 22/12/2014 6:02 pm, Detlev Offenbach wrote:
> Hi,
>
> trying to compile the latest PyQt4 snapshot against Qt 5.4.0 fails
> with an error like that.
>
> In file included from
> /usr/local/Qt-5.4.0/include/QtCore/qobjectdefs.h:43:0,
> from
> /usr/local/Qt-5.4.0/include/QtCore/qmetatype.h:44,
> from /usr/local/Qt-5.4.0/include/QtCore/QMetaType:1,
> from sipAPIQtCore.h:35,
> from sipQtCorepart1.cpp:29:
> /usr/local/Qt-5.4.0/include/QtCore/qobjectdefs_impl.h: In
> instantiation of ‘static void
> QtPrivate::Functor<Function, 0>::call(Function&, void*, void**) [with
> Args = void; R = void;
> Function = char*]’:
> /usr/local/Qt-5.4.0/include/QtCore/qobject_impl.h:192:105: required
> from ‘static void
> QtPrivate::QFunctorSlotObject<Func, N, Args, R>::impl(int,
> QtPrivate::QSlotObjectBase*,
> QObject*, void**, bool*) [with Func = char*; int N = 0; Args = void; R
> = void]’
> /usr/local/Qt-5.4.0/include/QtCore/qobject_impl.h:201:70: required
> from
> ‘QtPrivate::QFunctorSlotObject<Func, N, Args,
> R>::QFunctorSlotObject(const Func&) [with
> Func = char*; int N = 0; Args = void; R = void]’
> /usr/local/Qt-5.4.0/include/QtCore/qtimer.h:133:87: required from
> ‘static typename
> QtPrivate::QEnableIf<((!
> QtPrivate::FunctionPointer<Func>::IsPointerToMemberFunction) && (!
> QtPrivate::is_same<const char*, Func1>::value)), void>::Type
> QTimer::singleShot(int,
> Qt::TimerType, QObject*, Func1) [with Func1 = char*; typename
> QtPrivate::QEnableIf<((!
> QtPrivate::FunctionPointer<Func>::IsPointerToMemberFunction) && (!
> QtPrivate::is_same<const char*, Func1>::value)), void>::Type = void]’
> /usr/local/Qt-5.4.0/include/QtCore/qtimer.h:120:90: required from
> ‘static typename
> QtPrivate::QEnableIf<((!
> QtPrivate::FunctionPointer<Func>::IsPointerToMemberFunction) && (!
> QtPrivate::is_same<const char*, Func1>::value)), void>::Type
> QTimer::singleShot(int, QObject*,
> Func1) [with Func1 = char*; typename QtPrivate::QEnableIf<((!
> QtPrivate::FunctionPointer<Func>::IsPointerToMemberFunction) && (!
> QtPrivate::is_same<const char*, Func1>::value)), void>::Type = void]’
> /home/detlev/src/Python/PyQt/PyQt4/PyQt-x11-gpl-4.11.4-snapshot-
> feec4cda951e/QtCore/sipQtCorepart1.cpp:14886:40: required from here
> /usr/local/Qt-5.4.0/include/QtCore/qobjectdefs_impl.h:421:63: error:
> expression cannot be used
> as a function
> static void call(Function &f, void *, void **arg) { f(),
> ApplyReturnValue<R>(arg[0]); }
> ^
> Makefile:921: recipe for target 'sipQtCorepart1.o' failed
>
>
> Compiling PyQt5 works fine.
Should be fixed now - it's actually a sip bug.
Thanks,
Phil
More information about the PyQt
mailing list