1

我希望能够使用 android ndk-build 脚本构建一个共享库,但由于某种原因,我得到了一堆错误:

# I have Application.mk and Android.mk in the current folder
ndk-build -C . 
Android NDK: Could not find application project directory !    
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.  

有没有办法只用源文件和头文件构建Android共享库?$$\int$$

4

1 回答 1

7

是的,你可以写

ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk

./jni但是创建目录并将Application.mkAndroid.mk都放在那里要容易得多。

于 2013-10-16T15:24:59.547 回答