android ndk错误“没有这样的文件或目录”?

时间:2012-08-25 18:20:30

标签: android android-ndk

我在include文件夹中有一些头文件。 这是Android.mk文件的内容。

include $(call all-subdir-makefiles)
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE    := fpdfembedsdk
LOCAL_SRC_FILES := FoxitEMBSDK_EMBJavaSupport.cpp
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_LDLIBS := -llog -g -L. -ljnigraphics
LOCAL_LDLIBS += libfpdfemb_android.a
include $(BUILD_SHARED_LIBRARY)

我收到以下错误。

  $ /cygdrive/c/Android/android-ndk/ndk-build
Compile++ thumb  : fpdfembedsdk <= FoxitEMBSDK_EMBJavaSupport.cpp
jni/FoxitEMBSDK_EMBJavaSupport.cpp:9:21: fatal error: fs_base.h: No such file or directory
compilation terminated.
/cygdrive/c/Android/android-ndk/build/core/build-binary.mk:255: recipe for target `obj/local/armeabi/objs/fpdfembedsdk/FoxitEMBSDK_EMBJavaSupport.o' failed
make: *** [obj/local/armeabi/objs/fpdfembedsdk/FoxitEMBSDK_EMBJavaSupport.o] Error 1

任何人都可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

LOCAL_C_INCLUDES := $(LOCAL_PATH)

检查一下。我想你走错了路。你确定所有标题都在那里吗?