This week I finally managed to get a test Qt application packaged as an apk file. The application uses the native Proj lib to do some projections conversions. Basically it does the same as what qgis will do just with much more dependencies.
The key problem was that necessitas wipes the libs directory when it generates a project and the native libs never get pushed to the device (bug report). As well, when they get pushed, for example by using the ant Task, then there was a versioning problem. Android does not support (and won’t in the future either) versioned libs, so I had to find a way around it. I came up with two solutions, the first is a custom java method in the QtActivity class that creates symlinks or copies the libraries on runtime and loads them accordingly. the other involves editing the SONAME of each lib and padding the versioning with 0 using the rpl program (rpl -R -e libexpat.so.1 « libexpat.sox00x00 » $INSTALL_DIR/lib). I dont know yet which approach to keep, but they both work properly.
I updated all the scripts to be cleaner and I’m working now on creating the libqgisapp.so once I have this all the app should be hopefully ready.
As well, I tried the full over th air deployement of the test app on a real device and it all works, just click on the link to the APK arm-V5 APK arm-v7a and all dependencies (Qt libs as well) get installed… pretty amazing 🙂
Modèles de traduction en QGIS Model Baker
La semaine dernière, les participant·e·s de la journée INTERLIS à Yverdon-les-Bains ont pu tester la toute nouvelle version expérimentale du QGIS Model Bakers Version 7.10. Et par la même occasion, l’implémentation de la gestion des Read more…
3 Comments