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

Build issue (Windows) #938

Closed
syndycat opened this issue Jan 19, 2016 · 6 comments
Closed

Build issue (Windows) #938

syndycat opened this issue Jan 19, 2016 · 6 comments
Labels

Comments

@syndycat
Copy link

syndycat commented Jan 19, 2016

Hello,

I just grabed the latest code and, I followed the steps to build the lib.
I got the below JNI related error regarding the Bitmaps.
Did someone know how to fix it?

Thanks,
Cata

:samples:uriapp:generateDebugAndroidTestAssets UP-TO-DATE
:imagepipeline-base:extractReleaseAnnotations
:samples:uriapp:mergeDebugAndroidTestAssets
:samples:zoomable:copyDebugLint UP-TO-DATE
:samples:zoomable:processDebugJavaRes UP-TO-DATE
:samples:zoomable:mergeDebugProguardFiles
Error:error: samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/armeabi-v7a/objs/bitmaps/Bitmaps.o.d: No such file or directory
Error:error: samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/armeabi-v7a/objs/bitmaps/Bitmaps.o: No such file or directory
Error:error: samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/armeabi/objs/bitmaps/Bitmaps.o.d: No such file or directory
Error:error: samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/armeabi/objs/bitmaps/Bitmaps.o: No such file or directory
make.exe: *** [samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/armeabi-v7a/objs/bitmaps/Bitmaps.o] Error 1
make.exe: *** Waiting for unfinished jobs....
make.exe: *** [samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/armeabi/objs/bitmaps/Bitmaps.o] Error 1
[x86_64] Compile        : bitmaps <= Bitmaps.c
:samples:zoomable:mergeDebugProguardFiles UP-TO-DATE
Error:error: samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/arm64-v8a/objs/bitmaps/Bitmaps.o.d: No such file or directory
Error:error: samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/arm64-v8a/objs/bitmaps/Bitmaps.o: No such file or directory
:samples:uriapp:mergeDebugAndroidTestAssets UP-TO-DATE
make.exe: *** [samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/arm64-v8a/objs/bitmaps/Bitmaps.o] Error 1
:samples:zoomable:compileDebugNdk
Error:error: samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/x86/objs/bitmaps/Bitmaps.o.d: No such file or directory
Error:error: samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/x86/objs/bitmaps/Bitmaps.o: No such file or directory
 UP-TO-DATE
:samples:uriapp:generateDebugAndroidTestResValues
:samples:zoomable:packageDebugJniLibs
:samples:uriapp:generateDebugAndroidTestResValues UP-TO-DATE
:samples:zoomable:packageDebugJniLibs UP-TO-DATE
:samples:uriapp:generateDebugAndroidTestResources UP-TO-DATE
:samples:zoomable:packageDebugRenderscript UP-TO-DATE
:samples:uriapp:mergeDebugAndroidTestResources
:samples:zoomable:generateDebugAndroidTestAssets UP-TO-DATE
:samples:zoomable:generateDebugAndroidTestResValues
make.exe: *** [samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/x86/objs/bitmaps/Bitmaps.o] Error 1
:fbcore:compileDebugJavaWithJavac UP-TO-DATE
:fbcore:packageDebugJar
:samples:zoomable:generateDebugAndroidTestResValues UP-TO-DATE
:samples:uriapp:mergeDebugAndroidTestResources UP-TO-DATE
:samples:zoomable:processDebugAndroidTestJavaRes
Error:error: samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/x86_64/objs/bitmaps/Bitmaps.o.d: No such file or directory
Error:error: samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/x86_64/objs/bitmaps/Bitmaps.o: No such file or directory
 UP-TO-DATE
:samples:uriapp:processDebugAndroidTestResources
:samples:zoomable:compileDebugAndroidTestNdk UP-TO-DATE
make.exe: *** [samples\fresco\imagepipeline\build\tmp\ndk_build_bitmaps/local/x86_64/objs/bitmaps/Bitmaps.o] Error 1
make.exe: Leaving directory `D:/Cata/Programming/Android samples/fresco/imagepipeline/src/main/jni/bitmaps'
:imagepipeline:ndk_build_bitmaps FAILED
:fbcore:packageDebugJar UP-TO-DATE
:samples:uriapp:processDebugAndroidTestResources UP-TO-DATE
:static-webp:unpackLibjpeg UP-TO-DATE
Error:Execution failed for task ':imagepipeline:ndk_build_bitmaps'.
> Process 'command 'D:\ProgramFiles\android-ndk-r10e\ndk-build.cmd'' finished with non-zero exit value 2
@balazsbalazs balazsbalazs added the needs-details This issue or PR is currently not actionable as it misses details (e.g. for reproducing the problem) label Jan 20, 2016
@balazsbalazs
Copy link
Contributor

Which version are you trying to build? @massimocarli any ideas?

Also we're trying to encourage moving these discussion to StackOverflow because we have a wider community that can help there. Ask on StackOverflow with the tag fresco and android. We're answering questions on stackoverflow but there are a lot more people in the community who can help you.

@syndycat
Copy link
Author

Thanks. I grabbed the latest code from git. I have the last release of Android Studio running on Windows10 64Bit, NDK and SDK with all updates.

It looks that is an NDK build problem around Bitmaps that I have no idea how to fix it.

@plamenko plamenko removed the needs-details This issue or PR is currently not actionable as it misses details (e.g. for reproducing the problem) label Jan 31, 2016
@massimocarli
Copy link
Contributor

@syndycat What of you build from command line?

@tyronen tyronen added the build label Feb 7, 2016
@tyronen tyronen changed the title Build issue Build issue (Windows) Feb 7, 2016
@weilaiman
Copy link

weilaiman commented Mar 17, 2016

@syndycat I met this situation too.
in fresco/imagepipeline/build.gradle file, there is a

    defaultConfig {
        ndk {
            abiFilters "arm64-v8a"
        }
    }

which define the ndk abi type.
so I searched all Application.mk files and modified the following line
APP_ABI := armeabi-v7a armeabi arm64-v8a x86 x86_64
to
APP_ABI := arm64-v8a

saved all of them and rebuild the whole fresco project.
it finished building successfully.

@yarinkos
Copy link

yarinkos commented Apr 9, 2016

@syndycat any direction?
i faced the same issue but i already have the latest version

@oprisnik
Copy link
Contributor

I'm closing this issue due to inactivity. If this is still a problem, let us know!

@hearsilent hearsilent mentioned this issue Jun 11, 2018
4 tasks
facebook-github-bot pushed a commit that referenced this issue Jun 21, 2018
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants