Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Libqtforandroid SIGSEGV

    Mobile and Embedded
    2
    5
    1730
    Loading More Posts
    • 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.
    • 0
      0Moi last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • 0
          0Moi last edited by

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • 0
              0Moi last edited by

              Ok thanks, I did it.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post