Results 1 to 4 of 4

Thread: Running Qwt examples on Android ?

  1. #1
    Join Date
    Mar 2009
    Posts
    14
    Thanked 2 Times in 2 Posts

    Default 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!

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,231
    Thanked 855 Times in 804 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default 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

  3. #3
    Join Date
    Mar 2009
    Posts
    14
    Thanked 2 Times in 2 Posts

    Default 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:
    1. Select Projects from the left navigation bar
    2. Select tab "Android for armeabi-v7a", then select "Run" sub-tab
    3. Under "Deploy configurations", select the "Details" drop-down
    4. 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

  4. #4
    Join Date
    Sep 2014
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows Android

    Default 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?

Similar Threads

  1. Replies: 1
    Last Post: 26th April 2013, 15:48
  2. Running QWT Examples in Mac OS X
    By lynchkp in forum Qwt
    Replies: 7
    Last Post: 7th November 2012, 22:46
  3. Running OpenGL ES 2 examples on ARM device
    By Luc4 in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 30th June 2011, 13:43
  4. Problem running QwtPolar examples
    By MSUdom5 in forum Qwt
    Replies: 4
    Last Post: 11th March 2010, 18:26
  5. Running Qt Creator examples
    By Saman in forum Newbie
    Replies: 5
    Last Post: 5th May 2009, 20:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.