如何构建 Android NDK 示例:“bitmap-plasma”
我正在尝试构建 ndk 中包含的位图等离子示例,但出现错误。我从samples/bitmap-plasma目录运行ndk-build,它显示的错误是它无法找到android/bitmap.h文件。
如何将 ndk-build 脚本定向到它需要的文件?
在 Ubuntu Lucid 10.04 上使用 android-ndk-r4
I am trying to build the bitmap-plasma sample that is included with the ndk, but getting an error. I run ndk-build from the samples/bitmap-plasma directory, and the error it displays is that it cannnot locate android/bitmap.h file.
How do i direct the ndk-build script to the file it needs?
Using android-ndk-r4 on Ubuntu Lucid 10.04
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,它现在正在工作,所以万一有人遇到我同样的问题:
今天有一个 android-ndk-r4b 错误修复版本,似乎不再有这个问题。
可以在这里下载。
http://developer.android.com/sdk/ndk/index.html
Well it's working now, so in case anyone was having my same problem:
There as an android-ndk-r4b bugfix release today, which it seems no longer has this problem.
Available to download here.
http://developer.android.com/sdk/ndk/index.html
对于 Ubuntu 10.04 和 NDK r5b,我刚刚发布了 build_platforms.sh 的错误报告(包含修复程序)。请参阅 http://code.google.com/p/android/issues/详细信息?id=15180。本质上,必须修改符号链接例程中的本地声明。否则,它仅链接每个目录中的第一个文件(按字母顺序),并截断列表中的其余文件。
纠正此问题可以完全填充符号链接,从而填充缺少的头文件和库并允许成功构建示例。
With Ubuntu 10.04 and NDK r5b, I have just posted a bug report (with the fix included) for build_platforms.sh. See http://code.google.com/p/android/issues/detail?id=15180 for details. Essentially, the local declarations in the symlink routine must be amended. Otherwise, it only links the first file (alphabetically) from each directory, and truncates the remainder from the list.
Correcting this allowed the symbolic links to be fully populated, thereby filling in the missing header files and libraries and allowing the samples to build successfully.