Renderscript 示例构建错误

发布于 2024-12-11 23:33:10 字数 664 浏览 1 评论 0原文

所以我想尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

各自安好 2024-12-18 23:33:10

这是工具中的一个错误。它会被修复,但有一个解决方法:

将 /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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文