[android]android ndk 編譯錯誤


Android NDK: NDK Application 'local' targets unknown ABI(s): armeabi armeabi-v7a x86
Android NDK: Please fix the APP_ABI definition in ...jni/Application.mk
/home/dongdy/0work/android-ndk-r10e/build/core/setup-app.mk:117: *** Android NDK: Aborting . Stop.

 

原來是權限問題,cd到ndk目錄下,執行

chmod -R 777 *

------------------------------------------------------------------

另外 build/core/setup-app.mk這個文件好像少了一行:

# If APP_ABI is 'all', then set it to all supported ABIs
# Otherwise, check that we don't have an invalid value here.
#
ifeq ($(NDK_APP_ABI),all) 少了這一行???
    NDK_APP_ABI := $(NDK_APP_ABI_ALL_EXPANDED)
    _abis_without_toolchain := $(filter-out $(NDK_ALL_ABIS),$(NDK_APP_ABI))
    ifneq (,$(_abis_without_toolchain))
        $(call ndk_log,Remove the following abis expanded from 'all' due to no toolchain: $(_abis_without_toolchain))
        NDK_APP_ABI := $(filter-out $(_abis_without_toolchain),$(NDK_APP_ABI))
    endif
else
ifeq ($(NDK_APP_ABI),all32)

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM