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 Necessitas shared library and android project
Forum Updated to NodeBB v4.3 + New Features

Qt Necessitas shared library and android project

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 3.2k Views 1 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.
  • B Offline
    B Offline
    Benj13
    wrote on last edited by
    #1

    Hi,
    I would like to use a shared library (made with Necessitas Qt) called from an Android Project (with Eclipse).

    I already developed a wrapper between Java and C++/Qt with JNI.
    All is working fine on my PC when i use java code.

    I refactor my java project to an Android project (with an Activity and all we need).

    System.load correctly find the library but my library (wrapper) uses an other library (also made with Necessitas) who uses Qt Lib.
    So, I can't load my application because "Qt cannot load the platform plugin "android", availables are :"

    I tried a lot of things without results :-(

    Where this plugin should be ?
    (If i put libandroid-9.so in the working directory, the call is fine but other files/lib/... are missing)
    Please, somebody can help me ?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alexleutgoeb
      wrote on last edited by
      #2

      The platform plugin basically consists of two parts, the mentioned shared library and a jar named QtIndustrius-9.jar (in your case). If you don't want to add the jar you've to make sure that no jni method is called within the platform plugin (I commented all calls to registerNatives).

      (And I guess you're not building your final app with Qt Necessitas? So make sure that you're linking all required Qt libs in your Android.mk file)

      Alex

      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