qt arm64 for androidl not work



  • 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?



  • 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);
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.