Results 1 to 2 of 2

Thread: Trouble building for android platform(clang ++ no such file or directory error:)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2021
    Posts
    1
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Windows Android

    Default Trouble building for android platform(clang ++ no such file or directory error:)

    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\and roid_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)
    #end of .pro file
    #--------------------------------------------------------------------------------


    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.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Trouble building for android platform(clang ++ no such file or directory error:)

    Quote Originally Posted by Pratik_Patil View Post
    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\and roid_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

    ...

    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.
    You are missing a library that looks like something called "Terracad". Is this in the list of libraries (LIBS) you did not include in your posted PRO file? Is it installed?

    Did you perhaps mean Terracard?

Similar Threads

  1. Android Clang COmpile Error
    By yagabey in forum Qt Programming
    Replies: 0
    Last Post: 5th July 2019, 18:15
  2. Android: Error while building/deploying project
    By JeanC in forum Installation and Deployment
    Replies: 1
    Last Post: 21st June 2015, 22:18
  3. Building error qt android
    By dmcyster@gmail.com in forum Newbie
    Replies: 1
    Last Post: 8th May 2015, 16:55
  4. Replies: 1
    Last Post: 1st July 2014, 22:46
  5. No rule to make target error while building for Android
    By Awareness in forum Installation and Deployment
    Replies: 1
    Last Post: 23rd December 2013, 03:08

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.