Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7.0
-
None
-
-
4bb4d015f (dev), 2ba01c7ac (6.7), 9057431ef (6.7.0)
-
2024wk10FOQtforAndroid
Description
https://code.qt.io/cgit/qt/qtbase.git/tree/src/android/jar/src/org/qtproject/qt/android/QtLoader.java#n498 adds the "lib" prefix to all libraries mentioned in libs.xml in the gradle project. This also includes the libraries included via "bundled_libs" and "load_local_libs" keys which can be user supplied through androiddeployqt and they don't have to be necessarily prefixed with "lib".
This kind of breaks the Qt for Python Android deploymnet where I load the Python counterparts of the Qt libs at runtime using "load_local_libs" (PFA libs.xml for a small Qfp Android example). In line 20, for QtCore.abi3.so the QPA add the prefix "lib" and tries to load "libQtCore.abi3.so" which does not exist.
A suggestion would be to move the "lib" prefix adding code into androiddeployqt for "load_local_libs" and leave "bundled_libs" as it is.
This only breaks in 6.7.0 and works fine 6.6.