-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Windows os How to build? #24
Comments
I have same problem ,Did you solved it ? |
#5 maybe resolve this, but i failed in windows. |
I have same problem ,Did you solved it ? |
Thanks for reporting! Could you check if replacing "ndk-build" with "C:\android-ndk-r10d\ndk-build.cmd" in imagepipeline/build.gradle resolves the issue ? If no, can you cd to imagepipeline directory and see if there is anything suspicious in the output of following command: |
Also, the Android NDK on Windows requires that Cygwin 1.7 or later be installed. When using the Cygwin installer, make sure that the 'devel' tree is installed - by default, it isn't. |
:imagepipeline:ndk_build_gifimage FAILED FAILURE: Build failed with an exception.
This error also accured when I build it, so did anyone have solved it? |
It is the whole stacktrace, please help me |
anybody solved this problem? |
I have same problem:
|
anybody solved this problem? |
The ndk-build command is supposed to get NDK_PROJECT_PATH from the NDK_APPLICATION_MK passed in on the command line, but for some reason this does not seem to work on Windows. |
got it |
@lgengsy How to solve? |
I have same problem.how to solve.....! |
Is already solve? |
Hi, note for everybody: We understand people are frustrated that there are multiple issues with the Windows build. We take responsibility for it - as you might have guessed, our team develops on Mac OS and Linux and missed Windows. We are committed to making it work on all three. Our office is closed for the Easter weekend right now but we will be back on Tuesday and will fix this as soon as we can. |
Stay tuned, I think @michalgr got windows build working. We'll update gradle files and provide how-to instructions on Tuesday. |
For those who would like to build the project before the official update on Tuesday, here is a quick fix that works for me : It relies on com.android.library to find ndk-dir, so be sure that ndk.dir='my-ndk-path' is set in fresco/local.properties. Happy Easter =) |
@tbarthel-fr thanks , it's work |
@tbarthel-fr Confirmed, it works :) |
I am using Ubuntu ,
|
Hey @JoysonF , I managed to compile it in ubuntu by hardcoing the entire path to the ndk dir in the build.gradle file. TIP : Do not use ~, use /home/username path. So in gradle.build under imagepipeline folder, |
@jalpesh , Thanks for your quick reply. |
Hey @JoysonF , Not sure where did you make your change. Here is my gradle.build file
|
@jalpesh , Thanks Mate.It works. |
@jalpesh ,Thanks, it works |
We should create a separate issue for linux |
yes,its worked in win7
//commandLine '/home/jjr/mounter/android-ndk-r10d/ndk-build', |
it work, but I have another question |
@treeseedm , maybe you can clone from this mirror https://github.com/webmproject/libwebp/ |
a lot of problem on windows os,too much troubles |
FAILED,help, help。。。
} |
Sync to head and you should now be able to build on Windows. Please file a new issue if any other problems appear. |
可能是有重复的jar被引用,查看dependencies和libs是否有重复引入的.jar包,同时看向版本是否一致。 Date: Tue, 5 May 2015 08:14:26 -0700 I have in trouble when I build app Error:Execution failed for task ':app:dexDebug'.
― |
@MarkMjw dependencies and libs, any suggestion
|
i have fix this来自我的华为手机-------- 原始邮件 --------主题:Re: [fresco] Windows os How to build? (#24)发件人:Mjw 收件人:facebook/fresco 抄送:Flywhiter 可能是有重复的jar被引用,查看dependencies和libs是否有重复引入的.jar包,同时看向版本是否一致。 Date: Tue, 5 May 2015 08:14:26 -0700 From: notifications@github.com Subject: Re: [fresco] Windows os How to build? (#24) I have in trouble when I build app Error:Execution failed for task ':app:dexDebug'.
― Reply to this email directly or view it on GitHub. —Reply to this email directly or view it on GitHub. |
@Flywhiter has fixed this problem, @hanks-zyh you can discuss with he. |
@MarkMjw Thanks, the reason of the problem is that some _.jar conflict with
|
I think it is due to windows NDK have file named “ndk-build.cmd ” and file named "ndk-build" which may make Android Studio confused.So I make following changes and it works.
|
@klob your way is ok ,thanx~~ |
all solutions are tried but no use for me,getting the error like Error:Execution failed for task ':imagepipeline:ndk_build_bitmaps'.
How to build the fesco library? |
Solution for build errors like Error:Execution failed for task ':imagepipeline:ndk_build_bitmaps' |
Summary: Thanks for submitting a PR! Please read these instructions carefully: - [x] Explain the **motivation** for making this change. - [x] Provide a **test plan** demonstrating that the code is solid. - [x] Match the **code formatting** of the rest of the codebase. - [x] Target the `master` branch What existing problem does the pull request solve? Fix build failed occurred by ndk settings ([Application.mk](https://developer.android.com/ndk/guides/application_mk)) Remove armeabi support (Remove from NDK r17) ``` > Task :imagepipeline:ndk_build_bitmaps FAILED A problem was found with the configuration of task ':imagepipeline:ndk_build_bitmaps'. Registering invalid inputs and outputs via TaskInputs and TaskOutputs methods has been deprecated and is scheduled to be removed in Gradle 5.0. - File '.../fresco/imagepipeline/src/main/jni/bitmaps' specified for property '$1' is not a file. Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-14. Android NDK: WARNING: APP_STL gnustl_static is deprecated and will be removed in the next release. Please switch to either c++_static or c++_shared. See https://developer.android.com/ndk/guides/cpp-support.html for more information. Android NDK: The armeabi ABI is no longer supported. Use armeabi-v7a. .../Android/sdk/ndk-bundle/build/core/setup-app.mk:79: *** Android NDK: Aborting Android NDK: NDK Application 'local' targets unknown ABI(s): armeabi . Stop. Android NDK: Please fix the APP_ABI definition in ../Application.mk make: Entering directory `.../fresco/imagepipeline/src/main/jni/bitmaps' make: Leaving directory `.../fresco/imagepipeline/src/main/jni/bitmaps' ``` Relative issue: #24 #163 #286 #513 #591 #618 #938 #989 #1114 #1205 #1226 #1427 #1945 A good test plan has the exact commands you ran and their output, provides screenshots or videos if the pull request changes UI or updates the website. See [What is a Test Plan?][1] to learn more. If you have added code that should be tested, add tests. Build with NDK r17b <img width="677" alt="2018-06-15 11 00 00" src="https://user-images.githubusercontent.com/5742579/41448216-de9ac710-708b-11e8-865c-70ac85459d5c.png"> Sign the [CLA][2], if you haven't already. Small pull requests are much easier to review and more likely to get merged. Make sure the PR does only one thing, otherwise please split it. Make sure all **tests pass** on [Circle CI][4]. PRs that break tests are unlikely to be merged. For more info, see the [Contributing guide][4]. [1]: https://medium.com/martinkonicek/what-is-a-test-plan-8bfc840ec171#.y9lcuqqi9 [2]: https://code.facebook.com/cla [3]: http://circleci.com/gh/facebook/fresco [4]: https://github.com/facebook/fresco/blob/master/CONTRIBUTING.md Closes #2134 Reviewed By: erikandre Differential Revision: D8441064 Pulled By: oprisnik fbshipit-source-id: 6484f7714d738c9984c273a3e0513e31f730ff30
My Environment
Run
Result
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
....... ㅜ.ㅡ
Retry
Result
* What went wrong:
Execution failed for task ':imagepipeline:ndk_build_gifimage'.
* Try:
Run with --info or --debug option to get more log output.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':imagepipeline:ndk_build_gifimage'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
...
The text was updated successfully, but these errors were encountered: