3
當我試圖這樣進行編譯原生的C代碼:編譯本機代碼使用NDK
:~/com.***.sample.ndk1$ ./ndk-build
Android NDK: Could not find platform files (headers and libraries)
Android NDK: Please run build/tools/build-platforms.sh to build the corresponding directory.
/com.***.sample.ndk1/build/core/init.mk:345: *** Android NDK: Aborting . Stop.
:~/com.***.sample.ndk1$ build/tools/build-platforms.sh
.: 39: Can't open build/tools/../core/ndk-common.sh
:~/com.***.sample.ndk1$
上述錯誤是表演。
誰能回答解決這個問題呢?
閱讀你的錯誤man ... – Shark 2012-08-01 10:53:49
:〜/ com.mamlambo.sample.ndk1 $ build/tools/build-platforms.sh 。:39:無法打開build/tools /../ core/ndk-common.sh :〜/ com.mamlambo.sample.ndk1 $ – TamiL 2012-08-01 10:58:47
等等,什麼?你已經將NDK安裝到你的項目文件夾中了?你讀過這個:http://developer.android.com/tools/sdk/ndk/index.html#Installing – 2012-08-01 11:14:13