kikoso / android-stackblur

Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. The library is based on the code of Mario Klingemann.
Apache License 2.0
3.59k stars 648 forks source link

I got build error wit buildToolsVersion "19.0.1" #22

Closed alexnavarro closed 10 years ago

alexnavarro commented 10 years ago

Hi,

I have to change the buildToolsVersion of stackblur to "19.0.3" to build success. Any body have idea why its doesn't work with "19.0.1".

Thanks.

kikoso commented 10 years ago

Hello @alexnavarro ,

Can you provide any details about the error message you get?

alexnavarro commented 10 years ago

Its prompt

:submodules:android-stackblur:StackBlur:compileReleaseRenderscript

E/bcc ( 3121): Failed to load bitcode from path /Applications/Android Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/armeabi-v7a/libclcore.bc! (No such file or directory)

E/bcc ( 3122): Failed to load bitcode from path /Applications/Android Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/mips/libclcore.bc! (No such file or directory)

E/bcc ( 3122): Failed to load Renderscript library '/Applications/Android Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/mips/libclcore.bc' to link!

E/bcc ( 3123): Failed to load bitcode from path /Applications/Android Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/x86/libclcore.bc! (No such file or directory)

E/bcc ( 3122): Failed to link script '/Users/alexandrenavarro/git/compshop-android/submodules/android-stackblur/StackBlur/build/rs/release/obj/mips/blur.o' with Renderscript runtime!

E/bcc ( 3121): Failed to load Renderscript library '/Applications/Android Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/armeabi-v7a/libclcore.bc' to link!

Failed to compile script!

E/bcc ( 3123): Failed to load Renderscript library '/Applications/Android Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/x86/libclcore.bc' to link!

E/bcc ( 3121): Failed to link script '/Users/alexandrenavarro/git/compshop-android/submodules/android-stackblur/StackBlur/build/rs/release/obj/armeabi-v7a/blur.o' with Renderscript runtime!

E/bcc ( 3123): Failed to link script '/Users/alexandrenavarro/git/compshop-android/submodules/android-stackblur/StackBlur/build/rs/release/obj/x86/blur.o' with Renderscript runtime!

Failed to compile script!

Failed to compile script!

:submodules:android-stackblur:StackBlur:compileReleaseRenderscript FAILED

FAILURE: Build failed with an exception.

Execution failed for task ':submodules:android-stackblur:StackBlur:compileReleaseRenderscript'.

com.android.ide.common.internal.LoggedErrorException: Failed to run command:

/Applications/Android Studio.app/sdk/build-tools/19.0.1/bcc_compat -O3 -o /Users/alexandrenavarro/git/compshop-android/submodules/android-stackblur/StackBlur/build/rs/release/obj/mips/blur.o -fPIC -shared -rt-path /Applications/Android Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/mips/libclcore.bc -mtriple mipsel-unknown-linux /Users/alexandrenavarro/git/compshop-android/submodules/android-stackblur/StackBlur/build/res/rs/release/raw/blur.bc

Error Code:

1

Output:

E/bcc ( 3122): Failed to load bitcode from path /Applications/Android Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/mips/libclcore.bc! (No such file or directory)

E/bcc ( 3122): Failed to load Renderscript library '/Applications/Android Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/mips/libclcore.bc' to link!

E/bcc ( 3122): Failed to link script '/Users/alexandrenavarro/git/compshop-android/submodules/android-stackblur/StackBlur/build/rs/release/obj/mips/blur.o' with Renderscript runtime!

Failed to compile script!

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

After I changed the buildToolsVersion to "19.0.3" in the stackblur its works.

Cheers.

Alexandre.

On Sat, Apr 12, 2014 at 5:54 PM, Enrique López Mañas < notifications@github.com> wrote:

Hello @alexnavarro https://github.com/alexnavarro ,

Can you provide any details about the error message you get?

Reply to this email directly or view it on GitHubhttps://github.com/kikoso/android-stackblur/issues/22#issuecomment-40291530 .

Olaman commented 10 years ago

I got the erros when import this lib in gradle.

Error:Execution failed for task ':StackBlur:compileReleaseRenderscript'.

com.android.ide.common.internal.LoggedErrorException: Failed to run command: C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.4.2\bcc_compat.exe -O3 -o E:\OpenSource\test\MyApplication3\StackBlur\build\rs\release\obj\mips\blur.o -fPIC -shared -rt-path C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.4.2\renderscript\lib\bc\mips\libclcore.bc -mtriple mipsel-unknown-linux E:\OpenSource\test\MyApplication3\StackBlur\build\res\rs\release\raw\blur.bc Error Code: 1 Output: E/bcc ( 5324): Failed to load bitcode from path C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.4.2\renderscript\lib\bc\mips\libclcore.bc! (系统找不到指定的路径。) E/bcc ( 5324): Failed to load Renderscript library 'C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.4.2\renderscript\lib\bc\mips\libclcore.bc' to link! E/bcc ( 5324): Failed to link script 'E:\OpenSource\test\MyApplication3\StackBlur\build\rs\release\obj\mips\blur.o' with Renderscript runtime! Failed to compile script!

spirosoik commented 10 years ago

I have the same issue! Any news for this?

kikoso commented 10 years ago

Hello,

Seems that from 19.0.1 there has been several releases of the Build Tools regarding RenderScript. You can see the release log here:

http://developer.android.com/tools/revisions/build-tools.html

My recommendation at this point is to use the last version of the build tools, keeping in mind that 19.0.x versions have problems with NDK and RenderScript.