I'm getting an error about my AppDelegate cannot be found.
"The error is something like: No rule to make target *.cpp needed by *.o"
My Android.mk looks like this:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/external)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos)
LOCAL_MODULE := cocos2dcpp_shared
LOCAL_MODULE_FILENAME := libcocos2dcpp
LOCAL_SRC_FILES := hellocpp/main.cpp \
../../Classes/AppDelegate.cpp
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
I don't know what's wrong. I'm guessing it's because i'm not setting the path to the Classes right. In the package explorer my structure looks like this:
In my real folder structure, the Classes folder is not inside proj.android. It's in a folder located outside.
Folders for Classes and MobileApp
------------------------------------------------------------------------------------------------
Inside MobileApp
------------------------------------------------------------------------------------------------
Inside proj.android where jni is located
I'm not really sure how i to link my .ccp class files properly. How do I add them as my local files so I can build it properly? I would appreciate all the help I could get. Thanks.