Comments (27)
commandLine 'ndk-build' replace commandLine ndk.dir.PATH + 'ndk-build' problem solving
from fresco.
@kongnanlive Are you able to make it work?
from fresco.
Please make sure to have ndk-build in your $PATH. Our build.gradle depends on this.
from fresco.
I already have it in my $PATH variable, but it is still showing the error
Error:Execution failed for task ':imagepipeline:ndk_build_gifimage'.
A problem occurred starting process 'command 'ndk-build''
from fresco.
@dp-singh I have the same problem. Can you solve it?
from fresco.
@kongnanlive thanks! I solved the problem.
from fresco.
@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.
Can you try clearing Gradle cache by removing .gradle
directory and try again ?
from fresco.
@dp-singh @blackiedm How do you make it work? SOS-~~~
from fresco.
@ikkyu0319 find the commandline 'ndk-build' in imagepipeline/build.gradle and replace
commandLine 'your local ndk dir/ndk-build'
from fresco.
@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
ipeline Command: D:/Android/android-ndk-r10d/ndk-build NDK_APPLICATION_MK=../Application.mk NDK_OUT=E:\workspace\studio
fresco\imagepipeline\build\tmp\ndk_build_gifimage NDK_LIBS_OUT=E:\workspace\studio\fresco\imagepipeline\build/gifimage -
C E:\workspace\studio\fresco\imagepipeline\src\main\jni\gifimage --jobs 8
:imagepipeline:ndk_build_gifimage FAILED
:imagepipeline:ndk_build_gifimage (Thread[main,5,main]) completed. Took 0.035 secs.
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':imagepipeline:ndk_build_gifimage'.A problem occurred starting process 'command 'D:/Android/android-ndk-r10d/ndk-build''
from fresco.
@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 {
compile "com.android.support:appcompat-v7:${APPCOMPAT_V7_VERSION}"
compile "com.github.bumptech.glide:glide:${GLIDE_VERSION}"
compile "com.mcxiaoke.volley:library:${VOLLEY_VERSION}"
compile "com.nostra13.universalimageloader:universal-image-loader:${UIL_VERSION}"
compile "com.squareup.picasso:picasso:${PICASSO_VERSION}"
compile 'com.facebook.fresco:drawee-volley:0.1.0+'
compile 'com.facebook.fresco:fresco:0.1.0+'
compile 'com.facebook.fresco:imagepipeline-okhttp:0.1.0+'
}
from fresco.
@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:
path_to_your_ndk-build NDK_APPLICATION_MK=../Application.mk NDK_OUT=build NDK_LIBS_OUT=build -C src/main/jni/gifimage
from fresco.
@michalgr the message:(mac)
in ~/Documents/studio/fresco/imagepipeline/src/main/jni on master*
$ ndk-build NDK_APPLICATION_MK=../Application.mk NDK_OUT=build NDK_LIBS_OUT=build -C gifimage
Android NDK: Android.mk: Cannot find module with tag 'giflib' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
make: Entering directory /Documents/studio/fresco/imagepipeline/src/main/jni/gifimage' Android.mk:25: *** Android NDK: Aborting. . Stop. make: Leaving directory
/Documents/studio/fresco/imagepipeline/src/main/jni/gifimage'
from fresco.
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.
from fresco.
@michalgr thanks, i resolved this problem, the problem is unable to access 'https://chromium.googlesource.com/webm/libwebp/'.
from fresco.
i resolved this problem,in ‘imagepipeline/build.gradle’ file replace like this.
step 1, find commandLine 'ndk-build'
;
step 2, change 'ndk-build' to your ndk path.
commandLine '/Users/kenneth/Desktop/develop/android-ndk-r10d/ndk-build',
from fresco.
windows os replace ndk-build new problem:
Android NDK: Could not find application project directory !
E:\android-ndk-r10d\build\core\build-local.mk
Error:(148) *** Android NDK: Aborting . Stop.
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
make.exe: Entering directory F:/fresco-master/fresco-master/imagepipeline/src/main/jni/gifimage' make.exe: Leaving directory
F:/fresco-master/fresco-master/imagepipeline/src/main/jni/gifimage'
:imagepipeline:ndk_build_gifimage FAILED
Error:Execution failed for task ':imagepipeline:ndk_build_gifimage'.
Process 'command 'E:\android-ndk-r10d\ndk-build.cmd'' finished with non-zero exit value 2
from fresco.
@appledong +1
E:\android-ndk-r10d\build\core\build-local.mk
Error:(148) *** Android NDK: Aborting . Stop.
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
from fresco.
@michalgr in windows, i run the command in imagepipeline directory as you say,
ndk-build NDK_APPLICATION_MK=../Ap
plication.mk NDK_OUT=build NDK_LIBS_OUT=build -C src/main/jni/gifimage
but failed and this is the output
Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
make.exe: Entering directory F:/AndroidStudioProjects/fresco/imagepipeline/src/ main/jni/gifimage' D:\android-ndk-r9d_x86_64\build/core/build-local.mk:148: *** Android NDK: Aborti ng . Stop. make.exe: Leaving directory
F:/AndroidStudioProjects/fresco/imagepipeline/src/m
ain/jni/gifimage'
from fresco.
@ikkyu0319 哥们,首先把ndk配置环境变量,然后看下面我的代码,把我的ndk路径'/Users/kenneth/Desktop/develop/android-ndk-r10d/ndk-build'
替换成你的就可以了。
task "ndk_build_$name"(type: Exec) {
inputs.file("src/main/jni/$name")
outputs.dir("$buildDir/$name")
commandLine '/Users/kenneth/Desktop/develop/android-ndk-r10d/ndk-build',
'NDK_APPLICATION_MK=../Application.mk',
'NDK_OUT=' + temporaryDir,
"NDK_LIBS_OUT=$buildDir/$name",
'-C', file("src/main/jni/$name").absolutePath,
'--jobs', '8'
}
task "ndk_clean_$name"(type: Exec) {
commandLine '/Users/kenneth/Desktop/develop/android-ndk-r10d/ndk-build',
'NDK_APPLICATION_MK=../Application.mk',
'NDK_OUT=' + temporaryDir,
"NDK_LIBS_OUT=$buildDir/$name",
'-C', file("src/main/jni/$name").absolutePath,
'clean'
}
from fresco.
@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.
from fresco.
@kongnanlive thinks
from fresco.
Too many issues are being reported in this thread. Closing it.
- For Windows build issues, please see #24
- For duplicate-giflib issue, see #50
- For WebP quota issue, see #52
from fresco.
@blackiedm thanks,that solved my problem.
from fresco.
i solved the problem.
find the commandline 'ndk-build' in imagepipeline/build.gradle and replace
commandLine 'your local ndk dir/ndk-build.cmd',
from fresco.
@kongnanlive @blackiedm thanks! I solved the problem.
from fresco.
just add one line in file build.gradle task getNdkBuildFullPath;
return your local full ndk-build path.then all done;
def getNdkBuildFullPath() {
return "/Users/{your_mac_name}/Android/android-ndk-r10e/ndk-build"
// we allow to provide full path to ndk-build tool
......
}
from fresco.
Related Issues (20)
- Delayed Rendering of Images with Custom Decoders HOT 4
- How to use AbstractAdaptiveCountingMemoryCache
- Compile error with new Mac Apple Chip
- OutOfMemoryError: Failed to allocate a 251648770 byte allocation [Local large images allocation issue] HOT 2
- While updating app from playstore the images not displaying properly HOT 2
- In the document, the Korean link has been cracked to some Ad link. HOT 2
- fetchWithRequest Override
- there has a memory leak, AndroidProfile tools tips me that "mCallerContext in com.facebook.imagepipeline.cache.BitmapMemoryCacheKey"。 HOT 3
- Fresco Unsatisfied Link Error
- IllegalStateException
- when update 3.1.0 Building error:Failed to transform vito-options-3.1.0.aar HOT 2
- Libwebp v1.0.0 存在CVE-2023-4863漏洞 HOT 7
- 3.1.1 Exception loading animated gif HOT 2
- GIFs do not load on v3.1.3 HOT 3
- Bug: Crash on MIUI 14.0.5 HOT 1
- React Native app crashes on startup with fresco version 3.1.3 HOT 11
- java.lang.ClassNotFoundException: Didn't find class "com.facebook.imagepipeline.nativecode.NativeJpegTranscoderFactory"
- Fresco is dying. HOT 1
- too many gifs in recyclerview
- How to get free hard cap?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fresco.