编译电报源代码-面临NDK构建问题 [英] Compiling Telegram Source Code - facing NDK build issue
问题描述
我进行了很多搜索,但是找不到解决我问题的方法
I have searched a lot but could not find the fix for my issue
Error while executing '/Users/personal/Documents/android-ndk-r13b/ndk-build' with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/personal/Documents/Android Stuff/myNewRepo/Telegram-master/TMessagesProj/jni/Android.mk NDK_APPLICATION_MK=/Users/personal/Documents/Android Stuff/myNewRepo/Telegram-master/TMessagesProj/jni/Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDEBUG=0 APP_PLATFORM=android-14 NDK_OUT=/Users/personal/Documents/Android Stuff/myNewRepo/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/x86/release/obj NDK_LIBS_OUT=/Users/personal/Documents/Android Stuff/myNewRepo/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/x86/release/lib NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -n}
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: /Users/personal/Documents/Android Stuff/myNewRepo/Telegram-master/TMessagesProj/jni/Android.mk
Error:executing external native build for ndkBuild /Users/personal/Documents/Android Stuff/myNewRepo/Telegram-master/TMessagesProj/jni/Android.mk
Build command failed.
我已经尝试了Android Studio SDK管理器随附的新NDK.还从开发人员站点下载了单独的版本.但这没什么区别.
I have tried both the New NDK that comes with the Android Studio SDK manager. Also downloaded a separate version from the developers site. But that made no difference.
错误提示
Your APP_BUILD_SCRIPT points to an unknown file: /Users/personal/Documents/Android Stuff/myNewRepo/Telegram-master/TMessagesProj/jni/Android.mk
但是我的文件结构在我的项目结构中的确切位置.
But I have that file in my project structure at the exact location.
推荐答案
首先,应将 ndk-build 声明为环境变量.
之后,在包含android.mk
的文件夹中打开命令窗口.
然后编写以下命令
Firstly, you should declare ndk-build as the environment variable.
after that, open command window in the folder which contains android.mk
.
then write the following command
ndk-build
这是编译android项目本机部分的全部.
it's all you need to compile native part of your android project.
这篇关于编译电报源代码-面临NDK构建问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!