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. Trouble building for android platform(clang ++ no such file or directory error: unable to find .so file of same name as the Application)
Forum Updated to NodeBB v4.3 + New Features

Trouble building for android platform(clang ++ no such file or directory error: unable to find .so file of same name as the Application)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 971 Views 1 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.
  • P Offline
    P Offline
    PratikPatil_30
    wrote on last edited by
    #1

    I am trying to build an app for Windows and Android platform. Windows build is working fine but when I build it for android it gives the following error

    error: no such file or directory: '@build\MyApp\object_script.MyAppBuildPAth\bin\android_armeabi-v7a\libMyApp_armeabi-v7a.so.Armeabi-v7a'
    clang++: error: no such file or directory:
    make: *** [Makefile:111: MyAppBuildPAth\bin\android_armeabi-v7a\libTerracad_armeabi-v7a.so] Error 1

    This is my .pro file for the app.

    TEMPLATE=app
    
    android{
        TARGET= MyAppName
        DESTDIR = $${My_ProjDir}/bin/$${configName}
        PRJ_DESTDIR = ""
        OBJECTS_DIR = $${PRJ_DESTDIR}build/$$TARGET
        MOC_DIR = $${PRJ_DESTDIR}build/$$TARGET
        UI_DIR = $${PRJ_DESTDIR}build/$$TARGET
    
        DEFINES += ANDROID
        DEFINES += ANDROID_NDK_NATIVE
        DEFINES += ANDROID_GOOGLE
    
    }else{
        DESTDIR = $${My_ProjDir}/exe/$${configName}
        PRJ_DESTDIR = ""
        OBJECTS_DIR = $${PRJ_DESTDIR}build/$$TARGET
        MOC_DIR = $${PRJ_DESTDIR}build/$$TARGET
        UI_DIR = $${PRJ_DESTDIR}build/$$TARGET
    }
    
    
    win32:LIBS += -L$${My_ProjDir}/lib/$${configName}
    !win32:LIBS += -L$${My_ProjDir}/bin/$${configName}
    !win32:LIBS += -L$${My_ProjDir}/lib/$${configName}
    
    INCLUDEPATH += $${My_ProjDir}/ include directories
    
    HEADERS += some heaader files
    
    
    SOURCES += some source files
    
    FORMS += some form files
    
    QT+= core gui widgets
    
    # Third party SDK libraries 
    android{
        LIBS += linked almost 25-26 libs in this section
    }else{
        LIBS += windows specific libraries
    }
    
    #--------------------------------------------------------------------------------
    
    android: include(C:/Users/10313/AppData/Local/Android/Sdk/android_openssl/openssl.pri)
    
    

    What am I doing wrong? I am new to Qt framework. Can someone point me towards the right direction. Any kind of help will be highly appreciated.

    jsulmJ 1 Reply Last reply
    0
    • P PratikPatil_30

      I am trying to build an app for Windows and Android platform. Windows build is working fine but when I build it for android it gives the following error

      error: no such file or directory: '@build\MyApp\object_script.MyAppBuildPAth\bin\android_armeabi-v7a\libMyApp_armeabi-v7a.so.Armeabi-v7a'
      clang++: error: no such file or directory:
      make: *** [Makefile:111: MyAppBuildPAth\bin\android_armeabi-v7a\libTerracad_armeabi-v7a.so] Error 1

      This is my .pro file for the app.

      TEMPLATE=app
      
      android{
          TARGET= MyAppName
          DESTDIR = $${My_ProjDir}/bin/$${configName}
          PRJ_DESTDIR = ""
          OBJECTS_DIR = $${PRJ_DESTDIR}build/$$TARGET
          MOC_DIR = $${PRJ_DESTDIR}build/$$TARGET
          UI_DIR = $${PRJ_DESTDIR}build/$$TARGET
      
          DEFINES += ANDROID
          DEFINES += ANDROID_NDK_NATIVE
          DEFINES += ANDROID_GOOGLE
      
      }else{
          DESTDIR = $${My_ProjDir}/exe/$${configName}
          PRJ_DESTDIR = ""
          OBJECTS_DIR = $${PRJ_DESTDIR}build/$$TARGET
          MOC_DIR = $${PRJ_DESTDIR}build/$$TARGET
          UI_DIR = $${PRJ_DESTDIR}build/$$TARGET
      }
      
      
      win32:LIBS += -L$${My_ProjDir}/lib/$${configName}
      !win32:LIBS += -L$${My_ProjDir}/bin/$${configName}
      !win32:LIBS += -L$${My_ProjDir}/lib/$${configName}
      
      INCLUDEPATH += $${My_ProjDir}/ include directories
      
      HEADERS += some heaader files
      
      
      SOURCES += some source files
      
      FORMS += some form files
      
      QT+= core gui widgets
      
      # Third party SDK libraries 
      android{
          LIBS += linked almost 25-26 libs in this section
      }else{
          LIBS += windows specific libraries
      }
      
      #--------------------------------------------------------------------------------
      
      android: include(C:/Users/10313/AppData/Local/Android/Sdk/android_openssl/openssl.pri)
      
      

      What am I doing wrong? I am new to Qt framework. Can someone point me towards the right direction. Any kind of help will be highly appreciated.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @PratikPatil_30 said in Trouble building for android platform(clang ++ no such file or directory error: unable to find .so file of same name as the Application):

      error: no such file or directory: '@build\MyApp\object_script.MyAppBuildPAth\bin\android_armeabi-v7a\libMyApp_armeabi-v7a.so.Armeabi-v7a'

      Is this the first error?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PratikPatil_30
        wrote on last edited by
        #3

        Yes. This is the only error.
        And if I change the TEMPLATE to "lib" it is getting built properly. The problem is occurring only when I build it as an "app". I think I did some strange thing in qmake🙄

        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