[SailfishDevel] Build with sailfish latest on mer-obs fails, QVariant, double (?)

Kimmo Lindholm Kimmo.Lindholm at eke.fi
Thu Jan 8 14:25:53 UTC 2015


Thanks to fellows on #sailfishos

i had made a bad thing: (or bad copypaste)
#define pi (3.14159)

in some other place someone else;
QtMetaTypePrivate::QPairVariantInterfaceImpl pi =  v.value<QtMetaTypePrivate::QPairVariantInterfaceImpl>();

And seems that my #define messed things up.
Now it builds correctly.

-kimmo


From: devel-bounces at lists.sailfishos.org [mailto:devel-bounces at lists.sailfishos.org] On Behalf Of Kimmo Lindholm
Sent: 8. tammikuuta 2015 11:20
To: devel at lists.sailfishos.org
Subject: [SailfishDevel] Build with sailfish latest on mer-obs fails, QVariant, double (?)

My toholed daemon is built on mer-obs, succesfully built previously during October.
Now the repo has propably been updated to latest sailfish release, and build fails strangely. (Rebuilt for some reason 6th Jan)

That include file trace doesn't help at all.

build-log says this for error:
(Complete log here https://build.merproject.org/package/live_build_log/home:kimmoli:tohs/toholed-daemon/sailfish_latest_armv7hl/armv8el )

[   62s] In file included from /usr/include/qt5/QtCore/qvariantanimation.h:48:0,
[   62s]                  from /usr/include/qt5/QtCore/qpropertyanimation.h:45,
[   62s]                  from /usr/include/qt5/QtCore/QtCore:8,
[   62s]                  from /usr/include/qt5/QtDBus/QtDBusDepends:2,
[   62s]                  from /usr/include/qt5/QtDBus/QtDBus:3,
[   62s]                  from src/toholed.cpp:19:
[   62s] /usr/include/qt5/QtCore/qvariant.h: In static member function 'static QPair<QVariant, QVariant> QtPrivate::QVariantValueHelperInterface<QPair<QVariant, QVariant> >::invoke(const QVariant&)':
[   62s] /usr/include/qt5/QtCore/qvariant.h:789:62: error: no matching function for call to 'QtMetaTypePrivate::QPairVariantInterfaceImpl::QPairVariantInterfaceImpl(double)'
[   62s] /usr/include/qt5/QtCore/qvariant.h:789:62: note: candidates are:
[   62s] /usr/include/qt5/QtCore/qmetatype.h:1247:5: note: QtMetaTypePrivate::QPairVariantInterfaceImpl::QPairVariantInterfaceImpl()
[   62s] /usr/include/qt5/QtCore/qmetatype.h:1247:5: note:   candidate expects 0 arguments, 1 provided
[   62s] /usr/include/qt5/QtCore/qmetatype.h:1236:23: note: template<class T> QtMetaTypePrivate::QPairVariantInterfaceImpl::QPairVariantInterfaceImpl(const T*)
[   62s] /usr/include/qt5/QtCore/qmetatype.h:1215:7: note: QtMetaTypePrivate::QPairVariantInterfaceImpl::QPairVariantInterfaceImpl(const QtMetaTypePrivate::QPairVariantInterfaceImpl&)
[   62s] /usr/include/qt5/QtCore/qmetatype.h:1215:7: note:   no known conversion for argument 1 from 'double' to 'const QtMetaTypePrivate::QPairVariantInterfaceImpl&'
[   62s] /usr/include/qt5/QtCore/qvariant.h:791:62: error: request for member 'first' in '3.14158999999999988261834005243144929409027099609e+0', which is of non-class type 'double'
[   62s] /usr/include/qt5/QtCore/qvariant.h:796:62: error: request for member 'second' in '3.14158999999999988261834005243144929409027099609e+0', which is of non-class type 'double'
[   62s] make: *** [toholed.o] Error 1
[   62s] make: *** Waiting for unfinished jobs....
[   64s] error: Bad exit status from /var/tmp/rpm-tmp.oWhNJy (%build)
[   64s]
[   64s]
[   64s] RPM build errors:
[   64s]     Bad exit status from /var/tmp/rpm-tmp.oWhNJy (%build)

Sources are in my bitbucket

-kimmo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20150108/28157c16/attachment-0001.html>


More information about the Devel mailing list