-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Mac os How to build? #5
Comments
commandLine 'ndk-build' replace commandLine ndk.dir.PATH + 'ndk-build' problem solving |
@kongnanlive Are you able to make it work? |
Please make sure to have ndk-build in your $PATH. Our build.gradle depends on this. |
I already have it in my $PATH variable, but it is still showing the error Error:Execution failed for task ':imagepipeline:ndk_build_gifimage'.
|
@dp-singh I have the same problem. Can you solve it? |
@kongnanlive thanks! I solved the problem. |
@dp-singh, are you using AndroidStudio or are you building from command line? We will support building from AndroidStudio soon, but for now the console should do. |
@dp-singh @blackiedm How do you make it work? SOS-~~~ |
@ikkyu0319 find the commandline 'ndk-build' in imagepipeline/build.gradle and replace |
@blackiedm i has replaced <commandLine 'ndk-build'> with <commandLine 'D:/Android/android-ndk-r10d/ndk-build'> , but it's also failed in windows. Starting process 'command 'D:/Android/android-ndk-r10d/ndk-build''. Working directory: E:\workspace\studio\fresco\imagep FAILURE: Build failed with an exception.
|
@blackiedm @plamenko @ikkyu0319 I have tried everything but was not able to make it. My main motive was to look at the sample so I have added gradle support repo Replace sample build file dependencies with the below give dependencies dependencies {
} |
@dp-singh I would like to fix whatever build issue you are facing. Would you mind letting us know what os (mac / linux / window) you use ? And also, could you try to run ndk-build from imagepipeline directory on its own, so that we can see what is the actual error, provided that it comes from ndk build: |
@michalgr the message:(mac) |
giflib is supposed to be downloaded by imagepipeline/build.gradle. Can you try first running gradlew :assembleDebug (it will fail after downloading dependencies) and then repeating the same once again ? And one more question, what is your ndk version ? Thanks for helping. |
@michalgr thanks, i resolved this problem, the problem is unable to access 'https://chromium.googlesource.com/webm/libwebp/'. |
i resolved this problem,in ‘imagepipeline/build.gradle’ file replace like this.
|
windows os replace ndk-build new problem:
|
@appledong +1 |
@michalgr in windows, i run the command in imagepipeline directory as you say, but failed and this is the output |
@ikkyu0319 哥们,首先把ndk配置环境变量,然后看下面我的代码,把我的ndk路径
|
@KennethYo did you add ndk-build to $PATH variable ? If so, then gradle should be able to find ndk-build without specifying full path, unless you run it from Android Studio - we don't support it yet, but this is about to be fixed. @appledong , @BaronZ, @littletanker - lets keep this issue mac only - as title states. There is similar issue for windows: #24 lets continue windows related discussion there. |
@kongnanlive thinks |
Too many issues are being reported in this thread. Closing it.
|
@blackiedm thanks,that solved my problem. |
i solved the problem. |
@kongnanlive @blackiedm thanks! I solved the problem. |
Add generate scripts.
just add one line in file build.gradle task getNdkBuildFullPath; def getNdkBuildFullPath() { |
:imagepipeline:ndk_build_gifimage FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':imagepipeline:ndk_build_gifimage'.
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: 11.279 secs
kongnandembp:fresco kongnan$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/kongnan/Documents/AndroidSDK/android-ndk-r10d
kongnandembp:fresco kongnan$ ndk-build
Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
/Users/kongnan/Documents/AndroidSDK/android-ndk-r10d/build/core/build-local.mk:148: *** Android NDK: Aborting . Stop.
kongnandembp:fresco kongnan$
The text was updated successfully, but these errors were encountered: