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. Libqtforandroid SIGSEGV
Qt 6.11 is out! See what's new in the release blog

Libqtforandroid SIGSEGV

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 2.3k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I'm trying to load the plugins platforms libqtforandroid.so dynamically in my Android app without using QtCreator and all its environment.

    I loaded :
    System.loadLibrary("gnustl_shared");
    System.loadLibrary("Qt5Core");
    System.loadLibrary("Qt5Gui");
    System.loadLibrary("Qt5Widgets");
    System.loadLibrary("Qt5Network");

    But when I'm calling :

    System.loadLibrary("plugins_platforms_android_libqtforandroid");

    I'm getting the "qt start" message and then a SIGSEGV... (libplugins_platforms_android_libqtforandroid.so (JNI_OnLoad+322))
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000

    Do I need to preconfigure something before loading the library?

    Thanks in a advance

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Not a direct answer, but why are you trying to do by hand what Qt does for you automatically ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Hi,

        I would like to use only the core of Qt to have a shared model but a native UI and native development environment for each app (Desktop, iOS, Android)

        I did it for iOS and for Desktop (I use QtCreator for this one) but when I try to use directly the libraries for Android it crash. I have to use the QtApplication and QtActivity + the activity definition in the AndroidManifest.xml.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then you should rather ask this on the Android-development mailing list, you'll find Qt's android port developers/maintainers (this forum is more user oriented)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Ok thanks, I did it.

            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