Re: libqtgeoservices_googlemaps.so: undefined symbol: _ZN7QGeoMap25fitViewportToGeoRectangleERK13QGeoRectangle
On Thursday, 1 October 2020 01:05:10 PDT Cristian Ionescu-Idbohrn via subsurface wrote: > libqtgeoservices_googlemaps.so: undefined symbol: > _ZN7QGeoMap25fitViewportToGeoRectangleERK13QGeoRectangle)" This is a private symbol in QtLocation that changed between 5.12 and 5.13.0. See https://github.com/qt/qtlocation/commit/ 56e07f78579196fc33580ca5f20073a156b0e2dd The symbol your plugin is looking up is the old one. That means you compiled the plugin against an old Qt (probably accidentally). Recommendation: remove the development packages of Qt that were installed system-wide. -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel DPG Cloud Engineering ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: libqtgeoservices_googlemaps.so: undefined symbol: _ZN7QGeoMap25fitViewportToGeoRectangleERK13QGeoRectangle)
On Thu, 1 Oct 2020, Dirk Hohndel wrote: > > On Oct 1, 2020, at 6:18 AM, Cristian Ionescu-Idbohrn via subsurface > > wrote: > > > > On Thu, 1 Oct 2020, JB2Cool wrote: > >> > >> Strange, i built this just a few days ago on lots of different > >> distros (Debian Buster (albeit stable) was one of them) and it built > >> just fine. Can you try cloning the repo to a fresh directory and > >> retrying a build and see if that is any better. Googling around some > >> have said that by ditching any previous folders and starting afresh > >> this worked ok. > > > > As said... > > One thing that often goes wrong after a distro upgrade with new Qt > version is that people rebuild Subsurface, but not the other libs. > Can you remove the install-root directory, as well as the build > directories under googllemaps and grantee Then run the build.sh > script again to ensure those libraries are rebuilt against the > current Qt version No grantee here, but removing the install-root directory seems to have done the trick. So, this was a runtime, not buildtime, problem. Cheers, -- Cristian ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: libqtgeoservices_googlemaps.so: undefined symbol: _ZN7QGeoMap25fitViewportToGeoRectangleERK13QGeoRectangle)
> On Oct 1, 2020, at 6:18 AM, Cristian Ionescu-Idbohrn via subsurface > wrote: > > On Thu, 1 Oct 2020, JB2Cool wrote: >> >> Strange, i built this just a few days ago on lots of different >> distros (Debian Buster (albeit stable) was one of them) and it built >> just fine. Can you try cloning the repo to a fresh directory and >> retrying a build and see if that is any better. Googling around some >> have said that by ditching any previous folders and starting afresh >> this worked ok. > > As said... One thing that often goes wrong after a distro upgrade with new Qt version is that people rebuild Subsurface, but not the other libs. Can you remove the install-root directory, as well as the build directories under googllemaps and grantee Then run the build.sh script again to ensure those libraries are rebuilt against the current Qt version /D ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: libqtgeoservices_googlemaps.so: undefined symbol: _ZN7QGeoMap25fitViewportToGeoRectangleERK13QGeoRectangle)
Is it not the -devel versions of these packages that you need for building from source. Jb Sent from my iPhone > On 1 Oct 2020, at 14:19, Cristian Ionescu-Idbohrn via subsurface > wrote: > > On Thu, 1 Oct 2020, JB2Cool wrote: >> >> Strange, i built this just a few days ago on lots of different >> distros (Debian Buster (albeit stable) was one of them) and it built >> just fine. Can you try cloning the repo to a fresh directory and >> retrying a build and see if that is any better. Googling around some >> have said that by ditching any previous folders and starting afresh >> this worked ok. > > As said... > >> On Thu, 1 Oct 2020 at 09:07, Cristian Ionescu-Idbohrn via subsurface >> mailto:subsurface@subsurface-divelog.org>> >> wrote: >> Any ideas? This is debian unstable, own build from fresh master: > ...^^^ > > I have no clues :( > > $ readelf -a googlemaps/build/libqtgeoservices_googlemaps.so | grep > _ZN7QGeoMap25fit > 0002f8c8 00620001 R_X86_64_64 > _ZN7QGeoMap25fitV[...] + 0 >98: 0 NOTYPE GLOBAL DEFAULT UND > _ZN7QGeoMap25fit[...] > 414: 0 NOTYPE GLOBAL DEFAULT UND > _ZN7QGeoMap25fit[...] > > $ readelf -a googlemaps/build/libqtgeoservices_googlemaps.so | grep NEEDED > > 0x0001 (NEEDED) Shared library: [libQt5Location.so.5] > 0x0001 (NEEDED) Shared library: [libQt5Gui.so.5] > 0x0001 (NEEDED) Shared library: > [libQt5Positioning.so.5] > 0x0001 (NEEDED) Shared library: [libQt5Network.so.5] > 0x0001 (NEEDED) Shared library: [libQt5Core.so.5] > 0x0001 (NEEDED) Shared library: [libstdc++.so.6] > 0x0001 (NEEDED) Shared library: [libc.so.6] > > $ dpkg -l libqt5location5 libqt5positioning5 qtlocation5-dev > qtpositioning5-dev libqt5gui5 libqt5network5 libqt5core5a | cat > Desired=Unknown/Install/Remove/Purge/Hold > | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) > ||/ Name Version Architecture Description > +++--=--== > ii libqt5core5a:amd64 5.14.2+dfsg-6 amd64Qt 5 core module > ii libqt5gui5:amd64 5.14.2+dfsg-6 amd64Qt 5 GUI module > ii libqt5location5:amd645.14.2+dfsg-2 amd64Qt Location module > ii libqt5network5:amd64 5.14.2+dfsg-6 amd64Qt 5 network module > ii libqt5positioning5:amd64 5.14.2+dfsg-2 amd64Qt Positioning module > ii qtlocation5-dev 5.14.2+dfsg-2 amd64Qt 5 Location > development files > ii qtpositioning5-dev:amd64 5.14.2+dfsg-2 amd64Qt 5 Positioning > development files > > > Cheers, > > -- > Cristian > ___ > subsurface mailing list > subsurface@subsurface-divelog.org > http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: libqtgeoservices_googlemaps.so: undefined symbol: _ZN7QGeoMap25fitViewportToGeoRectangleERK13QGeoRectangle)
On Thu, 1 Oct 2020, JB2Cool wrote: > > Strange, i built this just a few days ago on lots of different > distros (Debian Buster (albeit stable) was one of them) and it built > just fine. Can you try cloning the repo to a fresh directory and > retrying a build and see if that is any better. Googling around some > have said that by ditching any previous folders and starting afresh > this worked ok. As said... > On Thu, 1 Oct 2020 at 09:07, Cristian Ionescu-Idbohrn via subsurface > mailto:subsurface@subsurface-divelog.org>> > wrote: > Any ideas? This is debian unstable, own build from fresh master: ...^^^ I have no clues :( $ readelf -a googlemaps/build/libqtgeoservices_googlemaps.so | grep _ZN7QGeoMap25fit 0002f8c8 00620001 R_X86_64_64 _ZN7QGeoMap25fitV[...] + 0 98: 0 NOTYPE GLOBAL DEFAULT UND _ZN7QGeoMap25fit[...] 414: 0 NOTYPE GLOBAL DEFAULT UND _ZN7QGeoMap25fit[...] $ readelf -a googlemaps/build/libqtgeoservices_googlemaps.so | grep NEEDED 0x0001 (NEEDED) Shared library: [libQt5Location.so.5] 0x0001 (NEEDED) Shared library: [libQt5Gui.so.5] 0x0001 (NEEDED) Shared library: [libQt5Positioning.so.5] 0x0001 (NEEDED) Shared library: [libQt5Network.so.5] 0x0001 (NEEDED) Shared library: [libQt5Core.so.5] 0x0001 (NEEDED) Shared library: [libstdc++.so.6] 0x0001 (NEEDED) Shared library: [libc.so.6] $ dpkg -l libqt5location5 libqt5positioning5 qtlocation5-dev qtpositioning5-dev libqt5gui5 libqt5network5 libqt5core5a | cat Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++--=--== ii libqt5core5a:amd64 5.14.2+dfsg-6 amd64Qt 5 core module ii libqt5gui5:amd64 5.14.2+dfsg-6 amd64Qt 5 GUI module ii libqt5location5:amd645.14.2+dfsg-2 amd64Qt Location module ii libqt5network5:amd64 5.14.2+dfsg-6 amd64Qt 5 network module ii libqt5positioning5:amd64 5.14.2+dfsg-2 amd64Qt Positioning module ii qtlocation5-dev 5.14.2+dfsg-2 amd64Qt 5 Location development files ii qtpositioning5-dev:amd64 5.14.2+dfsg-2 amd64Qt 5 Positioning development files Cheers, -- Cristian ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: libqtgeoservices_googlemaps.so: undefined symbol: _ZN7QGeoMap25fitViewportToGeoRectangleERK13QGeoRectangle
Strange, i built this just a few days ago on lots of different distros (Debian Buster (albeit stable) was one of them) and it built just fine. Can you try cloning the repo to a fresh directory and retrying a build and see if that is any better. Googling around some have said that by ditching any previous folders and starting afresh this worked ok. JB On Thu, 1 Oct 2020 at 09:07, Cristian Ionescu-Idbohrn via subsurface < subsurface@subsurface-divelog.org> wrote: > Any ideas? This is debian unstable, own build from fresh master: > > ... > Got keys from plugin meta data ("here") > QFactoryLoader::QFactoryLoader() looking at > "/usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_osm.so" > Found metadata in lib > /usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_osm.so, > metadata= > { > "IID": "org.qt-project.qt.geoservice.serviceproviderfactory/5.0", > "MetaData": { > "Experimental": false, > "Features": [ > "OnlineMappingFeature", > "OnlineGeocodingFeature", > "ReverseGeocodingFeature", > "OnlineRoutingFeature", > "OnlinePlacesFeature" > ], > "Keys": [ > "osm" > ], > "Provider": "osm", > "Version": 100 > }, > "archreq": 0, > "className": "QGeoServiceProviderFactoryOsm", > "debug": false, > "version": 331264 > } > > > Got keys from plugin meta data ("osm") > QFactoryLoader::QFactoryLoader() checking directory path > ".../subsurface/build/geoservices" ... > QFactoryLoader::QFactoryLoader() looking at > ".../subsurface/build/geoservices/libqtgeoservices_googlemaps.so" > Found metadata in lib > .../install-root/usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so, > metadata= > { > "IID": "org.qt-project.qt.geoservice.serviceproviderfactory/5.0", > "MetaData": { > "Experimental": false, > "Features": [ > "OnlineGeocodingFeature", > "ReverseGeocodingFeature", > "OnlineRoutingFeature", > "AlternativeRoutesFeature", > "OnlineMappingFeature", > "SearchSuggestionsFeature" > ], > "Keys": [ > "googlemaps" > ], > "Provider": "googlemaps", > "Version": 100 > }, > "archreq": 0, > "className": "QGeoServiceProviderFactoryGooglemaps", > "debug": false, > "version": 331264 > } > > > Got keys from plugin meta data ("googlemaps") > Cannot load library > .../install-root/usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so: > (.../install-root/usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so: > undefined symbol: _ZN7QGeoMap25fitViewportToGeoRectangleERK13QGeoRectangle) > QLibraryPrivate::loadPlugin failed on > ".../install-root/usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so" > : "Cannot load library > .../install-root/usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so: > (.../install-root/usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so: > undefined symbol: _ZN7QGeoMap25fitViewportToGeoRectangleERK13QGeoRectangle)" > 5 , "loader()->instance(idx) failed to return an instance. Set the > environment variable QT_DEBUG_PLUGINS to see more details." > qrc:/qml/MapWidget.qml:24: Error: Cannot assign [undefined] to > QDeclarativeGeoMapType* > QFactoryLoader::QFactoryLoader() checking directory path > "/usr/lib/x86_64-linux-gnu/qt5/plugins/accessiblebridge" ... > QFactoryLoader::QFactoryLoader() checking directory path > ".../subsurface/build/accessiblebridge" ... > > > Cheers, > > -- > Cristian > ___ > subsurface mailing list > subsurface@subsurface-divelog.org > http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface > ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
libqtgeoservices_googlemaps.so: undefined symbol: _ZN7QGeoMap25fitViewportToGeoRectangleERK13QGeoRectangle
Any ideas? This is debian unstable, own build from fresh master: ... Got keys from plugin meta data ("here") QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_osm.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_osm.so, metadata= { "IID": "org.qt-project.qt.geoservice.serviceproviderfactory/5.0", "MetaData": { "Experimental": false, "Features": [ "OnlineMappingFeature", "OnlineGeocodingFeature", "ReverseGeocodingFeature", "OnlineRoutingFeature", "OnlinePlacesFeature" ], "Keys": [ "osm" ], "Provider": "osm", "Version": 100 }, "archreq": 0, "className": "QGeoServiceProviderFactoryOsm", "debug": false, "version": 331264 } Got keys from plugin meta data ("osm") QFactoryLoader::QFactoryLoader() checking directory path ".../subsurface/build/geoservices" ... QFactoryLoader::QFactoryLoader() looking at ".../subsurface/build/geoservices/libqtgeoservices_googlemaps.so" Found metadata in lib .../install-root/usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so, metadata= { "IID": "org.qt-project.qt.geoservice.serviceproviderfactory/5.0", "MetaData": { "Experimental": false, "Features": [ "OnlineGeocodingFeature", "ReverseGeocodingFeature", "OnlineRoutingFeature", "AlternativeRoutesFeature", "OnlineMappingFeature", "SearchSuggestionsFeature" ], "Keys": [ "googlemaps" ], "Provider": "googlemaps", "Version": 100 }, "archreq": 0, "className": "QGeoServiceProviderFactoryGooglemaps", "debug": false, "version": 331264 } Got keys from plugin meta data ("googlemaps") Cannot load library .../install-root/usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so: (.../install-root/usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so: undefined symbol: _ZN7QGeoMap25fitViewportToGeoRectangleERK13QGeoRectangle) QLibraryPrivate::loadPlugin failed on ".../install-root/usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so" : "Cannot load library .../install-root/usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so: (.../install-root/usr/lib/x86_64-linux-gnu/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so: undefined symbol: _ZN7QGeoMap25fitViewportToGeoRectangleERK13QGeoRectangle)" 5 , "loader()->instance(idx) failed to return an instance. Set the environment variable QT_DEBUG_PLUGINS to see more details." qrc:/qml/MapWidget.qml:24: Error: Cannot assign [undefined] to QDeclarativeGeoMapType* QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/accessiblebridge" ... QFactoryLoader::QFactoryLoader() checking directory path ".../subsurface/build/accessiblebridge" ... Cheers, -- Cristian ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface