Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.4.0, 6.5.0 FF
-
None
-
-
54c959643e (qt/qtbase/dev) 54c959643e (qt/tqtc-qtbase/dev)
Description
I want to explicitly specify that my target needs to deploy a Qt Positioning nmea plugin on Android. This nmea plugin depends on Qt::SerialPort.
I use QT_ANDROID_EXTRA_LIBS for that:
if(ANDROID) get_target_property(NmeaPluginPath Qt6::QGeoPositionInfoSourceFactoryNmeaPlugin IMPORTED_LOCATION) if (EXISTS "${NmeaPluginPath}") set_target_properties(geoflickr PROPERTIES QT_ANDROID_EXTRA_LIBS "${NmeaPluginPath}" ) endif() endif()
As a result, the plugin library is added to android-build/libs/{arch} subdirectory of the build directory, but the Qt::SerialPort library is not.
When I do the build, I see the following warning from CMake:
Skipping /home/ivan/android_tools/qt6_build/arm64-v8a/install/plugins/position/libplugins_position_qtposition_nmea_arm64-v8a.so. It has unmet dependencies: lib/libQt6SerialPort_arm64-v8a.so.
I would expect QT_ANDROID_EXTRA_LIBS to deploy the libraries together with their dependencies.
Attachments
Issue Links
- relates to
-
QTBUG-106035 Android: skipping *: it has unmet dependencies
-
- Closed
-
For Gerrit Dashboard: QTBUG-107589 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
438113,6 | Add Qt plugins to the dependency list with their dependencies | dev | qt/qtbase | Status: MERGED | +2 | 0 |
441089,3 | androiddeployqt: Add the missing return value check | dev | qt/qtbase | Status: MERGED | +2 | 0 |
441125,4 | Remove the special handling of the qml directory when parsing xml deps | dev | qt/qtbase | Status: MERGED | +2 | 0 |
441127,5 | Remove the 'qml' directory from the bundled file list | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |