Git Product home page Git Product logo

Comments (10)

dlautz314 avatar dlautz314 commented on June 9, 2024 1

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.

neolit123 avatar neolit123 commented on June 9, 2024

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.

dlautz314 avatar dlautz314 commented on June 9, 2024

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.

ON QT 5.10.1 :
plugin on qt 5 10 1 macos

ON QT 5.12.0 :
plugin on qt 5 12 0 macos

from googlemaps.

neolit123 avatar neolit123 commented on June 9, 2024

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.

dlautz314 avatar dlautz314 commented on June 9, 2024

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.

dlautz314 avatar dlautz314 commented on June 9, 2024

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.

vladest avatar vladest commented on June 9, 2024

Hi

just checked on Linux with 5.12.1 - everything works just fine
did you made install step?

from googlemaps.

dlautz314 avatar dlautz314 commented on June 9, 2024

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.

vladest avatar vladest commented on June 9, 2024
  1. try to install to Qt's install first
  2. what if rename libqtgeoservices_googlemaps_debug.dylib to libqtgeoservices_googlemaps.dylib ? or make release builds and check
  3. How you setup your extra plugins folder? qt.conf?

from googlemaps.

dlautz314 avatar dlautz314 commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.