Comments (10)
So I guess something changed on the debug side, on how plugins are loaded (at least from QT 5.10.1 to 5.12.0), it used to permit a "_debug" suffix on the plugin library name. I rename to remove suffix, and it works for 5.10.1 and 5.12.0.
All good, thanks again.
from googlemaps.
hi @dlautz314
can you please post any build logs of the errors you are seeing?
edit: should have read your message properly.
can you post a screenshot or explain what you are seeing?
from googlemaps.
Ok, not much to look at so I am showing screenshot comparison of plugin running on QT 5.10.1 vs. QT 5.12.0 (macOS - High Sierra), same map coordinates.
from googlemaps.
just had a look the project where we are using this plugin.
so we are at 5.12 on macos and nobody has reported map plugin issues yet.
this tells me that the problem might be only on your side (for now).
some things you can try is enabling debugging rules:
https://doc.qt.io/qt-5/qloggingcategory.html
this page outlines the usage of the QT_LOGGING_RULES environment variable.
e.g.
QT_LOGGING_RULES=qt.positioning.*=true
if this gives no hints i would debug the plugin itself by adding some qDebug() calls and see if we have a failure point where an error is ignored transparently.
there is also the guide on QML debugging:
https://doc.qt.io/qtcreator/creator-debugging-qml.html#setting-up-qml-debugging
from googlemaps.
Ok, will do.
But as I said in my original post, all the standard QT plugins work fine (i.e. osm, esri, etc.). Simply substituted the googlemaps plugin (which is using an API key).
Thanks.
from googlemaps.
Well, nothing is being logged because as far as I can tell the plugin is not being loaded. As I said before, with the logging rules enabled, I do see logging for the other plugins (i.e. osm). I have also confirmed the googlemaps plugin is present in the plugins path in the app bundle.
I am not familiar with the plugin entry point, is there a key method I should insert a qDebug() to determine it is being loaded properly?
At the moment, I am doubting this is my issue as the build and bundle is exactly the same for QT 5.10.1, and this works fine. I'll try to build one of the QT examples (i.e. minimal map) using the googlemaps plugin, see if that works.
from googlemaps.
Hi
just checked on Linux with 5.12.1 - everything works just fine
did you made install step?
from googlemaps.
Well, I'm on macOS, and the project file builds and installs the plugin correctly I believe (same place when building against Qt 5.10.1):
.../MyApp.app/Contents/PlugIns/geoservices/libqtgeoservices_googlemaps_debug.dylib
Ok, I set QT_DEBUG_PLUGINS=1, and confirmed the plugin is not being loaded, even though it's installed in the same path as the other plugins in the bundle location above.
So just trying to determine if I'm doing something wrong, just what that is?
from googlemaps.
- try to install to Qt's install first
- what if rename libqtgeoservices_googlemaps_debug.dylib to libqtgeoservices_googlemaps.dylib ? or make release builds and check
- How you setup your extra plugins folder? qt.conf?
from googlemaps.
Ok, very odd, when I renamed the plugin (your step 2.), it was able to load correctly, and it now works.
Not sure why this naming is required, when it works fine for Qt 5.10.1. Any ideas or suggestions?
I can pursue with QT support, and investigate on my own from here. Your plugin is working fine from my tests, thanks for your help.
NOTE: I am running this initially in QT Creator, so I am wondering if there is an issue there?
from googlemaps.
Related Issues (20)
- Building Into QtLocation
- Image Resolution HOT 1
- Is it supposed to work in Qt for iOS HOT 4
- Imagery Tile in QT HOT 3
- QGeoTileFetcherGooglemaps terms of use HOT 1
- Tag versions HOT 2
- error: QtLocation/private/qgeotiledmap_p.h: No such file or directory HOT 5
- Qt Documentation
- Could somebody create a small wiki describing how to use it?
- How can I tilt the Map in this plugin @vladest
- dont show anything
- qgeotilefetchergooglemaps.cpp using http://mt.google.com (in the open) HOT 2
- Can you please create tag for latest?
- Unable to assign [undefined] to QDeclarativeGeoMapType* HOT 2
- Adding mapId and custom Region
- fatal error: QtLocation/private/qgeotiledmappingmanagerengine_p.h: No such file or directory HOT 1
- Google api metrics (api key) not working
- No member named 'errorOccurred' HOT 5
- no supportedMapTypes? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from googlemaps.