I get the same error/warning in my app, without it affecting the app. At least not enough for me to dig into the error. I still get the GPS fix, location etc, so my app is usable.
Would love to find out if it’s a real problem or just a ”ghost” problem, but thus far it seems like it’s not going to give me too much problems :) //bob On 12 Jan 2014, at 20:19, christopher.l...@thurweb.ch wrote: > Hi All > > The plot thickens! > > Marcel very kindly posted his code using PositionSource in QML. > > https://github.com/balta3/sailfish-gpsinfo > > So I loaded up Marcel's app, and it worked! > > Then I scanned the application output, and found: > > QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo' > > Exactly the same error that my app was giving > > So it looks like this error is a bit or a red herring in that it does not > stop the PositionSource from working. But the error had stopped me from > further integrating the PositionSource element. > > Chris > > > Zitat von christopher.l...@thurweb.ch: > >> Hi All >> >> In an attempt to track down the source of this problem, and possibly even >> solve it, I have created a throwaway demo posted to Github under: >> >> https://github.com/sailfishapps/ThrowawayDemos/tree/master/Kaputt/PositionSourceDemo >> >> The demo is basically a standard Sailfish new project, with a QML >> PositionSource element added to FirstPage, and the start() method called in >> a Component.onCompleted on that Page. >> >> To actually get into the nitty-gritty of the code where the problem is >> likely to be, I have also copied in C++ code from QtPositioning. I am not >> sure if this identical to the code used in the Sailfish build of >> Positioning, but it is probably close enough. This "in-line" PositionSource >> element is imported by "import PositionSource 5.2" >> >> Switching between the standard import and the in-line import is by comment >> in / out the import statement(s). >> >> Of course, the problem may not be in the code at all, maybe I am missing >> some essential package or plugin on my Jolla .. >> >> Grüsse >> >> Chris >> >> >> >> >> Zitat von christopher.l...@thurweb.ch: >> >>> Hi Alejandro >>> >>> My understanding is that although the version is quotes as 5.1, it is >>> actually a "not quite finished" 5.2 >>> >>> In the target there is a 5.2.0 subdirectory: >>> >>> /Users/christopherlamb/SailfishOS/mersdk/targets/SailfishOS-armv7hl/usr/include/qt5/QtPositioning/5.2.0 >>> >>> >>> import QtPositioning 5.2, import QtPositioning 5.1, and import >>> QtPositioning 5.0 all give me the same error. >>> >>> Whereas something like "import QtPositioning 5.7" gives module >>> "QtPositioning version 5.7 is not installed" >>> >>> Chris >>> >>> >>> Zitat von "Alejandro Exojo" <s...@badopi.org>: >>> >>>> El Saturday 11 January 2014, christopher.l...@thurweb.ch escribió: >>>>> import QtPositioning 5.2 >>>> >>>> Isn't 5.1 the newest available? >>>> >>>> -- >>>> Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2 >>>> http://barnacity.net/ | http://disperso.net >>>> _______________________________________________ >>>> SailfishOS.org Devel mailing list >>>> >>> >>> >>> >>> _______________________________________________ >>> SailfishOS.org Devel mailing list >>> >> >> >> >> _______________________________________________ >> SailfishOS.org Devel mailing list >> > > > > _______________________________________________ > SailfishOS.org Devel mailing list _______________________________________________ SailfishOS.org Devel mailing list