Running Qwt examples on Android ?
Has anyone suceeded in running Qwt examples on Android?
I am trying to run the bode example on an Android Nexus 7 device and running into Android depency issues with deploying libqwt.so.
I expect I need to modify my qmake project and perhaps manually create an AndroidManifest.xml.
Does anyone have Android examples they can share?
Thanks in advance,
-Ed
Qwt is a fantastic library!
Re: Running Qwt examples on Android ?
From time to time someone is asking for Qwt on Android, but to be honest I never heard of someone who really tried it ( me too ).
So please let me know about your results - maybe with some patches for what needs to be done in the project files.
Uwe
Re: Running Qwt examples on Android ?
Hello Uwe,
Success! Qwt works great on Android too!
This video by Vadim Dolgachev shows Qwt running on Android:
https://www.youtube.com/watch?v=Bz6_sxE8Jxc
I do not speak Russian but Google Chrome translates this page well.
Vadim even got Qwt drawing in qml which I think is harder ( I think it is hard to feel comfortable with Qml ).
I am trying to replicate his project hoping to get pinch & zoom gestures working with Qwt.
http://vadim-d.blogspot.com/2013/07/...t-android.html
Anyway, Vadim demonstrated running Qwt under Android was possible therfore I decided to give it another try.
Qwt 6.1.0 compiles easily for Android (armeabi-v7a) under Ubuntu 14.04 LTS 32-bit using Qt5.3.
/home/edward/Qt5.3.1/5.3/android_armv7/bin/qmake" /home/edward/projects/qwt-6.1.0/qwt.pro -r -spec android-g++ CONFIG+=debug
make
The bode example runs prefectly under both an Android simulator and my Nexus 7 tablet. You need to add the qwt library file to deploy under Android. I do not understand the Android packaging bundling details. Fortunately the Qt folks made it so I do not have to undersatnd them:
In Qt Creator, to add additonal library dependencies to deploy with Android:
- Select Projects from the left navigation bar
- Select tab "Android for armeabi-v7a", then select "Run" sub-tab
- Under "Deploy configurations", select the "Details" drop-down
- Under "Additional Libraries" press Add button and browser to where you built Qwt
/home/edward/projects/qwt-6.1.0/lib/libqwt.so
If anyone else would like to play along
Or if you follow this Amazon Kindle developer article first, then add Native Code Development (Optional), then install Qt5.3 and tell it where your Android SDK is.
It is really pretty easy to use Qt to develop an app that can run on Android and iOS plus Windows, Linux, and OS X. I am still amazed that Qt actually succeeds at doing this! ( Now if I ccould only get my head wrapped around Qt Quick and Qml. )
Thank you for the great (and portable) Qwt library!
-Ed
Re: Running Qwt examples on Android ?
Hi esutton,
I've just compiled the qwt library for desktop without problems.
I want to compile now the qwt libraries for android on windows.
I try to compile using Your instruction but It doesn't work.
I'm new on QT world so I think I made some errors:
when I launch qmake the following message appears: can not find the path specified (this is a translated italian message)
Have You used the qwt.pro file without modifications?