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. Android libqtforandroid.so load failed: cannot locate symbol
Qt 6.11 is out! See what's new in the release blog

Android libqtforandroid.so load failed: cannot locate symbol

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 2.3k 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.
  • J Offline
    J Offline
    johonde
    wrote on last edited by
    #1

    I'm trying to run my qt-android app on the Google Nexus device, it successfully compiled for armv7-arch, but when I run it, in "Application Output" under QtCreator, I get:

    E/dalvikvm( 1545): 
    dlopen("/data/data/com.joyfullmagic.rainbow/plugins/platforms/android/libqtforandroid.so") 
    failed: Cannot load library: soinfo_relocate(linker.cpp:975): 
    cannot locate symbol "_ZN22QWindowSystemInterface17handleExposeEventEP7QWindowRK7QRegion" 
    referenced by "libqtforandroid.so"...
    

    What is the reason of this error?

    K 1 Reply Last reply
    0
    • J johonde

      I'm trying to run my qt-android app on the Google Nexus device, it successfully compiled for armv7-arch, but when I run it, in "Application Output" under QtCreator, I get:

      E/dalvikvm( 1545): 
      dlopen("/data/data/com.joyfullmagic.rainbow/plugins/platforms/android/libqtforandroid.so") 
      failed: Cannot load library: soinfo_relocate(linker.cpp:975): 
      cannot locate symbol "_ZN22QWindowSystemInterface17handleExposeEventEP7QWindowRK7QRegion" 
      referenced by "libqtforandroid.so"...
      

      What is the reason of this error?

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @johonde

      Hi and welcome to devnet

      How do you try to run your application?

      When it is compiled for armv7, you can run it only on such a device. Either you have an AVD or you need to run it on the actual device.

      Vote the answer(s) that helped you to solve your issue(s)

      J 1 Reply Last reply
      0
      • J Offline
        J Offline
        johonde
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • K koahnig

          @johonde

          Hi and welcome to devnet

          How do you try to run your application?

          When it is compiled for armv7, you can run it only on such a device. Either you have an AVD or you need to run it on the actual device.

          J Offline
          J Offline
          johonde
          wrote on last edited by
          #4

          @koahnig

          Hi, and thanks for greetings.

          I run my app on Galaxy Nexus device, which has Cortex-A9 processor with armv7 architecture. The reason is in other.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mvuori
            wrote on last edited by
            #5

            Just a thought: When some function is not found, there could be a problem in deploying Qt to the device. Check that your deployment method copies Qt to the device with the application.
            Another thought: You don't tell the Qt version. If not 5.9, you should update to that. Perhaps this problem has been fixed.

            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