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 arm64 for androidl not work
Qt 6.11 is out! See what's new in the release blog

qt arm64 for androidl not work

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 1 Posters 647 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.
  • M Offline
    M Offline
    Mr Pang
    wrote on last edited by
    #1

    Hi,
    Maybe its a bug in andoidl. The /data/data/org.qt.example/lib is a broken symlink if org.qt.example is a arm64-v8a app.
    And of course the qt app won't run.
    Any idea to solve this problem?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mr Pang
      wrote on last edited by Mr Pang
      #2

      My solution is:

      add

      try{
              Os.remove(getApplicationInfo().dataDir+"/lib");
              Os.symlink(getApplicationInfo().nativeLibraryDir,getApplicationInfo().dataDir+"/lib");       
             }catch(Exception e){}
      

      to QtActivity.java as below:

      @@ -37,7 +37,6 @@
       package org.qtproject.qt5.android.bindings;
       
       import java.io.File;
      +import android.system.Os;
       import java.io.IOException;
       import java.io.OutputStream;
       import java.io.InputStream;
      @@ -844,11 +843,6 @@
           public void onCreate(Bundle savedInstanceState)
           {
               super.onCreate(savedInstanceState);
      +        try{
      +        Os.remove(getApplicationInfo().dataDir+"/lib");
      +        Os.symlink(getApplicationInfo().nativeLibraryDir,getApplicationInfo().dataDir+"/lib");       
      +       }catch(Exception e){}
      +        
       
               try {
                   m_activityInfo = getPackageManager().getActivityInfo(getComponentName(), PackageManager.GET_META_DATA);
      
      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