Results 1 to 2 of 2

Thread: QtQML and a C library on Android.

  1. #1
    Join Date
    Apr 2008
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Unix/X11 Windows

    Default QtQML and a C library on Android.

    I have my app, it works on x86, Desktop. I have a dependecy on zbar, a C library.
    I have zbar-dev package (ubuntu) on my system.

    I compile, run fine on desktop.
    When I switch to android, it tells me zbar.h not found and fails. Of course, I also need to compile zbar for arm. Can QtCreator do this for me? Or what do I need to do to get zbar working for arm? I figure the NDK has the cross-compiler, but I am not sure how to do this the best way and waht Qt creator expects for packaging the library.


  2. #2
    Join Date
    May 2012
    Bangalore, India
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Unix/X11 Windows

    Default Re: QtQML and a C library on Android.

    Yes you have to compile zbar for arm board. For compiling zbar for android/arm you have to use Android NDK. Android NDK will give you the cross compiler tools by which you can compile it. And no Qt wont give the functionality to cross compile zbar. So for compiling zbar using arm toolchain you have to either pass the switch in configure script for overriding the "c compiler or c++ compiler" or edit in Makefile.
    Last edited by sonulohani; 11th February 2014 at 11:58.
    Heavy Metal Rules. For those about to rock, we salute you.

Similar Threads

  1. Replies: 4
    Last Post: 10th July 2014, 15:22
  2. How do you make android applications display correctly on android phone?
    By Cyrebo in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 17th August 2013, 07:31
  3. is android app with qt 5.1 just compatible with android 4 ?
    By solook in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 14th August 2013, 16:23
  4. Replies: 3
    Last Post: 20th December 2012, 12:48
  5. Replies: 2
    Last Post: 19th February 2011, 11:26


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.