gpt4 book ai didi

android - 目录名: command not found error when I run android project - NDK

转载 作者:行者123 更新时间:2023-12-02 10:43:06 28 4
gpt4 key购买 nike

我正在eclipse中构建一个android应用程序。我需要调用用C/C++编写的函数。
我设置了包括NDK,cygwin等在内的所有内容(询问是否需要更多详细信息),但是当我尝试运行该项目时,出现此错误

**** Build of configuration Default for project C_Google_FaceDetect ****

C:\cygwin\bin\bash.exe C:\Android_NDK\ndk-build

cygwin warning:

MS-DOS style path detected:

C:\Documents and Settings\John Smith\eclipse_workspace\C_Google_FaceDetect

Preferred POSIX equivalent is:

/cygdrive/c/Documents and Settings/John Smith/eclipse_workspace/C_Google_FaceDetect

CYGWIN environment variable option "nodosfilewarning" turns off this warning.

Consult the user's guide for more details about POSIX paths:

http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

C:\Android_NDK\ndk-build: line 40: dirname: command not found

C:\Android_NDK\ndk-build: line 78: uname: command not found ERROR:

Unknown host operating system:

*** Build Finished ****



项目名称为C_Google_FaceDetect

如果我使用cygwin来获取PATH,我会得到

John Smith@E-USK3631BE /cygdrive/c

$ echo $PATH

/cygdrive/c/Program Files/PC Connectivity Solution

/cygdrive/c/WINDOWS/system32

/cygdrive/c/WINDOWS

/cygdrive/c/WINDOWS/System32/Wbem

/cygdrive/c/WINDOWS/system32/nls

/cygdrive/c/WINDOWS/system32/nls/ENGLISH

/cygdrive/c/Program Files/IVI Foundation/IVI/bin

/cygdrive/c/Program Files/IVI Foundation/VISA/WinNT/Bin

/cygdrive/c/Program Files/IVI Foundation/VISA/WinNT/Bin

/cygdrive/c/Program Files/MATLAB/R2012a/runtime/win32

/cygdrive/c/Program Files/MATLAB/R2012a/bin

/cygdrive/c/Program Files/MATLAB/R2010a/runtime/win32

/cygdrive/c/Program Files/MATLAB/R2010a/bin

/cygdrive/c/Program Files/emgucv 2.1.0.793/bin

/cygdrive/c/Documents and Settings/mchi7jb2/My Documents/GLUT/lib

/cygdrive/c/OGLSDK/lib

/cygdrive/c/Program Files/Microsoft Platform SDK for Windows Server 2003 R2/Lib

/cygdrive/c/Program Files/MATLAB/MATLAB Compiler Runtime/v713/runtime/win32

/cygdrive/c/Python27/python.exe

/cygdrive/c/Program Files/QuickTime/QTSystem

/cygdrive/c/Android_NDK

/cygdrive/c/Android_NDK/build

/cygdrive/c/Program Files/Java/jdk1.7.0_04/bin

/cygdrive/c/Android_NDK

/cygdrive/c/Android_NDK/ndk-build/usr/bin

/cygdrive/c/Android_SDK/tools

/cygdrive/c/Android_SDK/platform-tools

/cygdrive/c/Android_NDK



我的Android.mk文件如下
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := C_Google_FaceDetect
LOCAL_SRC_FILES := yuv_decoder.c

include $(BUILD_SHARED_LIBRARY)

请帮忙

最佳答案

我用这个的时候问题很重
C:\ cygwin \ bin \ bash.exe --login -i C:\ Android_NDK \ ndk-build
代替这个
C:\ cygwin \ bin \ bash.exe C:\ Android_NDK \ ndk-build

在eclipse build命令中

我在那找到了答案Running Cygwin commands from batch file

也许问题只是一吨,因为我现在不知道我有更大的问题

关于android - 目录名: command not found error when I run android project - NDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11495434/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com