Android NDK build error: LOCAL_SRC_FILES points to a missing file

好久不见. 提交于 2019-12-12 03:27:42

问题


I am using this question accepted answer to build nonfree module of opencv 2.4.11. i am using windows 10 operating system.

1) I moved nonfree folder from OpenCV 2.4.11\sources\modules\nonfree\
include\opencv2\ to OpenCV-2.4.11-android-sdk\sdk\native\jni\include\opencv2

2) I have created the libnonfree folder and the jni folder inside the libnonfree folder. The nonfree_init.cpp, precomp.hpp, sift.cpp and surf.cpp files are in the jni folder.

3) I have also created the Android.mk and Application.mk script files.

4) Time to build the libnonfree.so change the cmd directory into the libnonfree and type ndk-build

Here is the complete error message.

Android NDK: ERROR:Android.mk:opencv_java: LOCAL_SRC_FILES points to a missing file Android NDK: Check that C:/Users/what/Desktop/OpenCV-android-sdk-build/sdk/native/jni/../libs/arm64-v8a/libopencv_java.so exists or that its path is correct C:/Users/what/AppData/Local/Android/sdk1/ndk-bundle/build//../build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.

Here is also screenshot of my files and folders

Please help i have been stuck for to days to solve this problem.

来源:https://stackoverflow.com/questions/42874357/android-ndk-build-error-local-src-files-points-to-a-missing-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!