Renderscript 示例构建错误
所以我想尝试使用 RenderScript 的示例,并在 Eclipse 中导入了 HelloWorld。但它给了我这样的错误:
[2011-10-25 13:10:48 - HelloWorld] /home/mileoresko/workspace/utils/android-sdk-linux_86
/platforms/android-11/renderscript/include/rs_graphics.rsh:240:58: error: unknown type
name 'float3'; did you mean 'float'?
[2011-10-25 13:10:48 - HelloWorld] /home/mileoresko/workspace/utils/android-sdk-linux_86
/platforms/android-11/renderscript/include/rs_graphics.rsh:237:31: error: unknown type
name 'rs_mesh'
我还注意到需要在 gen 文件夹中生成的文件丢失了? (像 ScriptC_helloworld 这样的类)。 我整个早上都在寻找解决方案,但没有找到。我更新了SDK和ADT,不知道会出现什么问题。如果有人遇到这个问题并找到/知道解决方案,请与我分享,我绝望吗?我无法从示例中构建任何项目。提前谢谢你!
So I wanted to try out the samples that use RenderScript, and I imported HelloWorld in Eclipse. But it gives me errors like:
[2011-10-25 13:10:48 - HelloWorld] /home/mileoresko/workspace/utils/android-sdk-linux_86
/platforms/android-11/renderscript/include/rs_graphics.rsh:240:58: error: unknown type
name 'float3'; did you mean 'float'?
[2011-10-25 13:10:48 - HelloWorld] /home/mileoresko/workspace/utils/android-sdk-linux_86
/platforms/android-11/renderscript/include/rs_graphics.rsh:237:31: error: unknown type
name 'rs_mesh'
Also i noticed that the files that need to generate in the gen folder are missing?? (classes like ScriptC_helloworld).
I've searched all morning for a solution but I was not able to find one. I updated the SDK and the ADT, don't know what could be the problem. Please if someone had this problem and found/knows a solution, share it with me, am I desperate. I can not build any project from the samples. Thank u in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是工具中的一个错误。它会被修复,但有一个解决方法:
将 /platforms/android-[11|12|13]/renderscript 替换为位于 /platforms/android-14/renderscript 的版本
这会将最新的标头复制到旧平台中,并使你的项目编译。
这是错误:
http://code.google.com/p/android/issues/detail ?id=21006
this is a bug in the tools. It will be fixed, but there is a workaround:
Replace /platforms/android-[11|12|13]/renderscript with the version located at /platforms/android-14/renderscript
This will copy the newest headers into older platforms and make your project compile.
Here's the bug:
http://code.google.com/p/android/issues/detail?id=21006