Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAILURE: Build failed with an exception. #106

Closed
liufsd opened this issue Apr 8, 2015 · 4 comments
Closed

FAILURE: Build failed with an exception. #106

liufsd opened this issue Apr 8, 2015 · 4 comments
Assignees

Comments

@liufsd
Copy link

liufsd commented Apr 8, 2015

:imagepipeline:ndk_build_gifimage
Compile++ thumb  : gifimage <= jni_helpers.cpp
Compile++ thumb  : gifimage <= jni.cpp
Compile++ thumb  : gifimage <= gif.cpp
SharedLibrary  : libgif.so
cc1plus: error: unrecognized command line option "-std=c++11"
cc1plus: error: unrecognized command line option "-std=c++11"
make: *** [null/obj/local/armeabi-v7a/objs/gifimage/gif.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [null/obj/local/armeabi-v7a/objs/gifimage/jni.o] Error 1
cc1plus: error: unrecognized command line option "-std=c++11"
make: *** [null/obj/local/armeabi-v7a/objs/gifimage/jni_helpers.o] Error 1
Compile++ thumb  : gifimage <= gif.cpp
Compile++ thumb  : gifimage <= jni.cpp
cc1plus: error: unrecognized command line option "-std=c++11"
cc1plus: error: unrecognized command line option "-std=c++11"
make: *** [null/obj/local/armeabi/objs/gifimage/jni.o] Error 1
make: *** [null/obj/local/armeabi/objs/gifimage/gif.o] Error 1
:imagepipeline:ndk_build_gifimage FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':imagepipeline:ndk_build_gifimage'.
> Process 'command 'ndk-build'' finished with non-zero exit value 2

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

BUILD FAILED

Total time: 9.181 secs
liu:fresco liupeng$ which ndk-build
/Users/liupeng/Documents/workLibrary/android-ndk/ndk-build
@tyronen
Copy link
Contributor

tyronen commented Apr 8, 2015

Make sure you have the most recent version of the NDK - current release is 10d. You need 10c or higher.

@tyronen tyronen closed this as completed Apr 8, 2015
@ljnalex
Copy link

ljnalex commented Apr 8, 2015

@tyronen My recent version of the NDK is 'r10d',but this problem also occurred:

  • What went wrong:
    Execution failed for task ':imagepipeline:ndk_clean_imagepipeline'.

    Process 'command 'D:\android-ndk-r10d\ndk-build.cmd'' finished with non-zero exit value 2

@tyronen tyronen reopened this Apr 8, 2015
@michalgr michalgr self-assigned this Apr 8, 2015
@michalgr
Copy link
Contributor

michalgr commented Apr 8, 2015

@ljnalex I think it is a separate issue.

@michalgr michalgr closed this as completed Apr 8, 2015
@liufsd
Copy link
Author

liufsd commented Apr 8, 2015

Yes,i have try to use the 'android-ndk-r10d-darwin-x86_64 2.bin' and then build success.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants