Renderscript样本生成错误 [英] Renderscript samples build errors

查看:139
本文介绍了Renderscript样本生成错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我想尝试使用RenderScript的样本,我在Eclipse中导入的HelloWorld。但它给了我的错误,如:

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'

此外,我注意到,这需要生成的根文件夹中的文件丢失? (类,如ScriptC_helloworld)。 我找遍了所有上午的解决方案,但我没能找到一个。我更新了SDK和ADT,不知道可能是什么问题。请,如果有人有这个问题,发现/知道一个解决方案,与我分享,我是绝望。我不能建立从样品中的任何项目。感谢ü提前!

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!

推荐答案

这是在工具中的错误。这将是固定的,但有一个解决方法:

this is a bug in the tools. It will be fixed, but there is a workaround:

替换/平台/ android- [11 | 12 | 13] / renderscript与位于版本/平台/ Android为14 / renderscript

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.

下面的错误: HTTP://$c$c.google.com/p /安卓/问题/详细信息?ID = 21006

这篇关于Renderscript样本生成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆