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. Since Qt 5.12.2 Android application crashes directly after start
Forum Updated to NodeBB v4.3 + New Features

Since Qt 5.12.2 Android application crashes directly after start

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 1.5k Views
  • 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.
  • W Offline
    W Offline
    Wowalive
    wrote on last edited by Wowalive
    #1

    Hi there,

    since I updated Qt Creator to the newest version 5.12.2 my application crashes directly after start on android. On other platforms it works well.

    Log:

    I Qt JAVA : Can't find '/data/data/de.mtms.cb2t/qt-reserved-files/lib/libQt5MultimediaQuick.so'
    E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread
    E AndroidRuntime: Process: de.mtms.cb2t, PID: 10576
    E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libgnustl_shared.so" not found
    E AndroidRuntime: 	at java.lang.Runtime.load0(Runtime.java:928)
    E AndroidRuntime: 	at java.lang.System.load(System.java:1624)
    E AndroidRuntime: 	at org.qtproject.qt5.android.QtNative$3.run(QtNative.java:223)
    E AndroidRuntime: 	at org.qtproject.qt5.android.QtThread$2.run(QtThread.java:87)
    E AndroidRuntime: 	at org.qtproject.qt5.android.QtThread$1.run(QtThread.java:61)
    E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:784)
    

    Also i see a lot of linker problems (unsupported flags):

    W linker  : "/data/app/de.mtms.cb2t-Z-KWIS-vDfyWTr-KwpHu8w==/lib/arm/libQt5MultimediaQuick.so" has unsupported flags DT_FLAGS_1=0x80
    W linker  : "/data/app/de.mtms.cb2t-Z-KWIS-vDfyWTr-KwpHu8w==/lib/arm/libQt5RemoteObjects.so" has unsupported flags DT_FLAGS_1=0x80
    W linker  : "/data/data/de.mtms.cb2t/qt-reserved-files/plugins/platforms/android/libqtforandroid.so" has unsupported flags DT_FLAGS_1=0x80
    

    I'm using ndk r19c. I have tried some sample apps for android with 5.12.2 they are working. So what could be the problem with my application and 5.12.2.

    With Qt 5.11.2 my app works fine on android.

    Regards,
    wowalive

    1 Reply Last reply
    0
    • W Offline
      W Offline
      Wowalive
      wrote on last edited by
      #2

      Ok that solved quickly..

      I used a lib which was build with an older ndk version(r15c). I updated it, now everything works fine.

      1 Reply Last reply
      1
      • G Offline
        G Offline
        GregoryError
        wrote on last edited by
        #3

        Hello. It seems I have the same issue. I try to add the Firebace Cloud Messaging to my project, and now after I set v. 5.13.2 my application in some devices is craching at very start. NDK the same as you r19c.
        I havent catch how youve solve it? Should I use older NDK (btw it seems that FCM libraries should be compiled with NDK 15 or smth) or can you explain how have you solve it exactly?

        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