"make create-apk" does not find libraries
Alexander Neundorf
neundorf at kde.org
Tue Mar 8 17:18:10 GMT 2022
On Dienstag, 8. März 2022 10:13:32 CET Alexander Neundorf wrote:
> On Montag, 7. März 2022 15:54:47 CET Sharaf Zaman wrote:
> > Alexander Neundorf <neundorf at kde.org> writes:
> ...
>
> > > So, is there a reason why the path for libm.so etc. seems not to be
> > > built
> > > up automatically from the various variables which are set automatically
> > > ?
> > > I could work a bit on it…
> > >
> > > Bye
> > > Alex
> >
> > Hi Alex,
> >
> > Is the ANDROID_PLATFORM set? If yes, what is the value?
>
> yes, it is set to "ANDROID-21"
I'm making progress, slowly.
It finds now libm.so etc.
In the next step androiddeployqt (I think) complains that some Qt libraries
have not been found (they are there), and then finally, gradle complains that
it cannot create some directory. Permissions seems to be all Ok.
Any hints ?
Generating flickable with /opt/Qt/bin/androiddeployqt
...
/opt/Qt/bin/androiddeployqt --gradle --input flickable-deployment.json --apk /
home/user/docker_dev/Android/qtexamples/embedded/flickable/build-android2/
flickable_build_apk//flickable-armeabi-v7a.apk --output /home/user/docker_dev/
Android/qtexamples/embedded/flickable/build-android2/flickable_build_apk/ --
android-platform android-30 --deployment bundled \
Generating Android Package
Input file: flickable-deployment.json
Output directory: /home/user/docker_dev/Android/qtexamples/embedded/
flickable/build-android2/flickable_build_apk/
Application binary: flickable
Android build platform: android-30
Install to device: No
-- Skipping /opt/Qt/plugins/platforminputcontexts/
libplugins_platforminputcontexts_qtvirtualkeyboardplugin_armeabi-v7a.so. It
has unmet dependencies: lib/libQt5Network_armeabi-v7a.so,lib/
libQt5QmlModels_armeabi-v7a.so,lib/libQt5Qml_armeabi-v7a.so,lib/
libQt5Quick_armeabi-v7a.so,lib/libQt5VirtualKeyboard_armeabi-v7a.so.
-- Skipping /opt/Qt/plugins/iconengines/
libplugins_iconengines_qsvgicon_armeabi-v7a.so. It has unmet dependencies:
lib/libQt5Svg_armeabi-v7a.so.
-- Skipping /opt/Qt/plugins/imageformats/
libplugins_imageformats_qsvg_armeabi-v7a.so. It has unmet dependencies: lib/
libQt5Svg_armeabi-v7a.so.
Skipping createRCC
And now gradle I think:
Exception in thread "main" java.lang.RuntimeException: Could not create parent
directory for lock file /home/alex/.gradle/wrapper/dists/gradle-5.6.4-bin/
bxirm19lnfz6nurbatndyydux/gradle-5.6.4-bin.zip.lck
at
org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:
43)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:
107)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:
61)
Building the android package failed!
-- For more information, run this command with --verbose.
make[3]: *** [CMakeFiles/create-apk-flickable.dir/build.make:82: CMakeFiles/
create-apk-flickable] Error 14
make[3]: Leaving directory '/home/user/docker_dev/Android/qtexamples/embedded/
flickable/build-android2'
make[2]: *** [CMakeFiles/Makefile2:238: CMakeFiles/create-apk-flickable.dir/
all] Error 2
make[2]: Leaving directory '/home/user/docker_dev/Android/qtexamples/embedded/
flickable/build-android2'
make[1]: *** [CMakeFiles/Makefile2:190: CMakeFiles/create-apk.dir/rule] Error
2
make[1]: Leaving directory '/home/user/docker_dev/Android/qtexamples/embedded/
flickable/build-android2'
make: *** [Makefile:222: create-apk] Error 2
Thanks
Alex
More information about the KDE-Android
mailing list