after I install the ADT and add the CDT and NDK and add the OpenCV library this error appears
**** Build of configuration Default for project OpenCV Tutorial 2 - Mixed Processing ****
C:\android-ndk-r9\ndk-build.cmd
jni/Android.mk:5: ../../sdk/native/jni/OpenCV.mk: No such file or directory
make: *** No rule to make target `../../sdk/native/jni/OpenCV.mk'. Stop.
**** Build Finished ****
this is the Android.mk code
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
include ../../sdk/native/jni/OpenCV.mk
LOCAL_MODULE := mixed_sample
LOCAL_SRC_FILES := jni_part.cpp
LOCAL_LDLIBS += -llog -ldl
include $(BUILD_SHARED_LIBRARY)
Causes of No Such File or Directory Error There are mainly 4 reasons that should be responsible for the Secure Copy Protocol - no such file or directory. Port number is not specified: the user didn’t specify the certain port number before they copy files between devices.
How to Fix ‘No such File or Directory’ Error in SCP? Solution 1: Using Correct Commands. You must use the correct command depending upon the configuration of hosts between... Solution 2: Identifying Port Number. The Port Number of the remote host must be identified before copying the file to... ...
How to fix "mount: 'remount'->'/system': No such file or directory"? Am I missing something? You have added a space between the two options you passed: rw and remount. You need to remove space after the comma , and then repeat the command like this: This should work. Tested on OnePlus 6.
Change the Android.mk
so that include refers to absolute path of OpenCV.mk. Ex:
WIN: include d:\dev\OpenCV-2.4.6-android-sdk\sdk\native\jni\OpenCV.mk
Linux: include ~/mydevdir/OpenCV-2.4.6-android-sdk/sdk/native/jni/OpenCV.mk
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With