Android的NDK:断言失败:TARGET_PLATFORM没有定义 [英] Android NDK: Assertion failure: TARGET_PLATFORM is not defined
本文介绍了Android的NDK:断言失败:TARGET_PLATFORM没有定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在使用NDK R5B,当我用我的JNI目录进行构建
When using NDK r5b, when I do a build in my jni directory using
$NDK_DIR/ndk-build
它工作正常。但是当我切换到R6B(只需通过设置$ NDK_DIR不同)并运行相同的命令,我得到
it works fine. But When I switch to r6b (just by setting $NDK_DIR differently) and run that same command, I get
/usr/local/android-ndk-r6b/build/core/setup-toolchain.mk:20: *** Android NDK: Assertion failure: TARGET_PLATFORM is not defined . Stop.
我需要什么做R6B,我并不需要做R5B不同?
What do I need to do differently in r6b that I didn't need to do in r5b?
推荐答案
解决方案是这一行添加到JNI / Application.mk:
The solution is to add this line to jni/Application.mk:
APP_PLATFORM:=机器人-8
APP_PLATFORM := android-8
这是新的R6B。 (不需要在R5B或R6,只是R6B。)
This is new to r6b. (Not required in r5b or r6, just r6b.)
这篇关于Android的NDK:断言失败:TARGET_PLATFORM没有定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文