Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android "No such file or directory" error?

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)
like image 394
Osama Abu Qauod Avatar asked Aug 07 '13 06:08

Osama Abu Qauod


People also ask

Why do I get No such file or directory error?

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?

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”?

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.


1 Answers

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
like image 101
gunar Avatar answered Sep 28 '22 07:09

gunar