RenderScript支持库V8编译失败 [英] RenderScript support library V8 fail to compile

查看:397
本文介绍了RenderScript支持库V8编译失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的平台信息
操作系统:Windows 7 32位
ADT版本:体形:v22.2.1-833290
SDK工具版本:22.2.1
SDK内置工具版本:18.1

My platform information OS: Windows 7 32 bit ADT version: Build: v22.2.1-833290 SDK Tools version: 22.2.1 SDK Built-tools version: 18.1

我试图让新Renderscript支持库V8工作。我使用API​​级18作为目标SDK和编译SDK,API级别17所需的最低SDK创建一个Android应用程序。然后我也跟着在下面的链接中的步骤来配置我的项目的http://android-developers.blogspot.hk/2013/09/renderscript-in-android-support-library.html ,的http://developer.android.com/guide/topics/renderscript/compute.html#access-rs-apis

I was trying to get the new Renderscript support library v8 to work. I created an android application using API level 18 as the target SDK and compile SDK, API level 17 as the minimum required SDK. I then followed the steps in the following links to configure my project, http://android-developers.blogspot.hk/2013/09/renderscript-in-android-support-library.html , http://developer.android.com/guide/topics/renderscript/compute.html#access-rs-apis .

我添加后

renderscript.target=18
renderscript.support.mode=true
sdk.buildtools=18.1.0

到文件project.properties,我添加了一个空文件.RS到src文件夹(我的包下,就像往常一样)。然后,我收到以下错误消息。

into the file "project.properties", I added an empty .rs file into the src folder (under my package, just like usual). Then I received the following error message.

[2013-09-22 22:32:32 - aaaaa] <invalid>: error: missing pragma for version in source file
[2013-09-22 22:32:32 - aaaaa] <invalid>: error: missing "#pragma rs java_package_name(com.foo.bar)" in source file
[2013-09-22 22:32:32 - aaaaa] C:\Work\SDK\adt-bundle-windows-x86-20130917\sdk\build-tools\android-4.3\arm-linux-androideabi-ld.exe: fatal error: C:\Users\rensijie\workspace\aaaaa\bin\rsObj\armeabi-v7a\test.o: attempt to map 40 bytes at offset 1616 exceeds size of file; the file may be corrupt
[2013-09-22 22:32:32 - aaaaa] C:\Users\rensijie\workspace\aaaaa\bin\rsObj\mips\test.o: file not recognized: File format not recognized
[2013-09-22 22:32:32 - aaaaa] C:\Work\SDK\adt-bundle-windows-x86-20130917\sdk\build-tools\android-4.3\i686-linux-android-ld.exe: error: C:\Users\rensijie\workspace\aaaaa\bin\rsObj\x86\test.o: section name section has wrong type: 2097152
[2013-09-22 22:32:32 - aaaaa] C:\Work\SDK\adt-bundle-windows-x86-20130917\sdk\build-tools\android-4.3\i686-linux-android-ld.exe: fatal error: C:\Users\rensijie\workspace\aaaaa\bin\rsObj\x86\test.o: attempt to map 46661632 bytes at offset 0 exceeds size of file; the file may be corrupt

由于我理解的前两个错误信息的意思,我加了

Since I understand the meaning of the first two error message, I added

#pragma version(1)
#pragma rs java_package_name(com.example.aaaaa)

该文件。

虽然前两个错误消息就走了,以下错误消息又出现了,我不能添加/修改脚本的内容(摆脱它,比如我复制了previously工作的脚本,它赢得现在'T工作)。不过,我观察到,在根文件夹中的相应的.java脚本文件正确创建(具有自营android.support.v8.renderscript。*;内部)。

While the first two error message went away, the following error message appeared again and I can't get rid of it by adding/modifying the content of the script (e.g. I copied a previously working script and it won't work now). However, I observed that the corresponding .java script file in the gen folder was created properly (with import android.support.v8.renderscript.*; inside).

[2013-09-22 22:34:29 - aaaaa] C:\Work\SDK\adt-bundle-windows-x86-20130917\sdk\build-tools\android-4.3\arm-linux-androideabi-ld.exe: fatal error: C:\Users\rensijie\workspace\aaaaa\bin\rsObj\armeabi-v7a\test.o: attempt to map 40 bytes at offset 1616 exceeds size of file; the file may be corrupt
[2013-09-22 22:34:30 - aaaaa] C:\Users\rensijie\workspace\aaaaa\bin\rsObj\mips\test.o: file not recognized: File format not recognized
[2013-09-22 22:34:30 - aaaaa] C:\Work\SDK\adt-bundle-windows-x86-20130917\sdk\build-tools\android-4.3\i686-linux-android-ld.exe: error: C:\Users\rensijie\workspace\aaaaa\bin\rsObj\x86\test.o: section name section has wrong type: 2097152
[2013-09-22 22:34:30 - aaaaa] C:\Work\SDK\adt-bundle-windows-x86-20130917\sdk\build-tools\android-4.3\i686-linux-android-ld.exe: fatal error: C:\Users\rensijie\workspace\aaaaa\bin\rsObj\x86\test.o: attempt to map 46661632 bytes at offset 0 exceeds size of file; the file may be corrupt
[2013-09-22 22:34:30 - aaaaa] C:\Work\SDK\adt-bundle-windows-x86-20130917\sdk\build-tools\android-4.3\arm-linux-androideabi-ld.exe: error: C:\Users\rensijie\workspace\aaaaa\bin\rsObj\armeabi-v7a\test2.o: section name section has wrong type: 469762048
[2013-09-22 22:34:30 - aaaaa] C:\Work\SDK\adt-bundle-windows-x86-20130917\sdk\build-tools\android-4.3\arm-linux-androideabi-ld.exe: fatal error: C:\Users\rensijie\workspace\aaaaa\bin\rsObj\armeabi-v7a\test2.o: attempt to map 3103784960 bytes at offset 0 exceeds size of file; the file may be corrupt
[2013-09-22 22:34:30 - aaaaa] C:\Users\rensijie\workspace\aaaaa\bin\rsObj\mips\test2.o: file not recognized: File format not recognized
[2013-09-22 22:34:30 - aaaaa] C:\Work\SDK\adt-bundle-windows-x86-20130917\sdk\build-tools\android-4.3\i686-linux-android-ld.exe: error: C:\Users\rensijie\workspace\aaaaa\bin\rsObj\x86\test2.o: section name section has wrong type: 7168
[2013-09-22 22:34:30 - aaaaa] C:\Work\SDK\adt-bundle-windows-x86-20130917\sdk\build-tools\android-4.3\i686-linux-android-ld.exe: fatal error: C:\Users\rensijie\workspace\aaaaa\bin\rsObj\x86\test2.o: attempt to map 39168 bytes at offset 0 exceeds size of file; the file may be corrupt

在Eclipse中,有在项目名称上一个红叉,表明有一些错误的项目。如果我尝试运行应用程序时,Eclipse会提示您的项目包含个错误,请运行应用程序之前解决这些问题。然而,除了该错误消息我得到了,并在项目名称红十字会等,有任何java文件中没有错误(在Java文件中没有红叉)

In eclipse, there's a red cross on the project name, indicating there's something wrong in the project. If I try to run the application, eclipse will prompt "Your project contains error(s), please fix them before running your application". However, other than the error message I got, and the red cross on the project name, there's no error in any of the java file (no red crosses on the java files)

推荐答案

这问题被人们在谷歌最近解决。见<一href=\"https://$c$c.google.com/p/android/issues/detail?id=60327&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&start=200\" rel=\"nofollow\">https://$c$c.google.com/p/android/issues/detail?id=60327&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&start=200

This issue was addressed by people in Google very recently. See https://code.google.com/p/android/issues/detail?id=60327&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&start=200

这篇关于RenderScript支持库V8编译失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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