Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT Android and c++ libs
Forum Updated to NodeBB v4.3 + New Features

QT Android and c++ libs

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 275 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pixbyte
    wrote on last edited by
    #1

    I have a general question to "normal" people because I do not understand all the articles about it. There is no read line to give the possibility to understand.

    If I use Android Studio, I added the sources from my Lib to it, compile it with the needed ABI and create a JNI interface. Everything is fine and it works well.

    But what about QT and Android? Please correct me if Iam wrong:
    I have to build my C++ with Android Studio with the needed ABI and then import this *.so LIB into QT, no need to create any JNI interface, this is all done by QT like with Embacadero? I will do it the same way like doing with desktop projects?

    Pablo J. RoginaP 1 Reply Last reply
    0
    • P pixbyte

      I have a general question to "normal" people because I do not understand all the articles about it. There is no read line to give the possibility to understand.

      If I use Android Studio, I added the sources from my Lib to it, compile it with the needed ABI and create a JNI interface. Everything is fine and it works well.

      But what about QT and Android? Please correct me if Iam wrong:
      I have to build my C++ with Android Studio with the needed ABI and then import this *.so LIB into QT, no need to create any JNI interface, this is all done by QT like with Embacadero? I will do it the same way like doing with desktop projects?

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @pixbyte

      I have to build my C++ with Android Studio with the needed ABI

      Right

      then import this *.so LIB into QT

      Yes, copy them to the proper location (depending on the ABI platform) in your Qt project folder structure, so Qt Creator finds it and deploys to the Android device without any issue, i.e.:

      my-qt-project/android/libs/armeabi-v7a/
      

      no need to create any JNI interface, this is all done by QT

      I don't think so. I guess you still need to go like you're currently doing.

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved