Android NDK:错误:jni / Android.mk:cocos_jpeg_static:LOCAL_SRC_FILES指向丢失的文件

时间:2014-12-24 11:20:39

标签: android android-ndk cocos2d-x-2.x

这是我的Android.mk文件

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := cocos_jpeg_static
LOCAL_MODULE_FILENAME := jpeg
LOCAL_SRC_FILES := libs/$(TARGET_ARCH_ABI)/libjpeg.a
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)

LOCAL_MODULE := game_shared

LOCAL_MODULE_FILENAME := libgame

LOCAL_SRC_FILES := hellocpp/main.cpp \
                   ../../Classes/AppDelegate.cpp \
                   ../../Classes/HelloWorldScene.cpp

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes                   

LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static cocos_extension_static

include $(BUILD_SHARED_LIBRARY)

$(call import-module,CocosDenshion/android) \
$(call import-module,cocos2dx) \
$(call import-module,extensions)

当我提供Android Ndk的路径后,在终端中运行./build_native.sh命令时出现以下错误: -

Android NDK: ERROR:jni/Android.mk:cocos_jpeg_static: LOCAL_SRC_FILES points to a missing file    
Android NDK: Check that jni/libs/armeabi-v7a/libjpeg.a exists  or that its path is correct  

我不是编程的专家,所以想得到一些建议。

感谢。

0 个答案:

没有答案