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 270 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 6 Apr 2020, 10:15 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?

    P 1 Reply Last reply 6 Apr 2020, 16:01
    0
    • P pixbyte
      6 Apr 2020, 10:15

      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?

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 6 Apr 2020, 16:01 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

      1/2

      6 Apr 2020, 10:15

      • Login

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