今天想编辑一下新写的一个小程序,结果maker的时候一直报错,一直提示错误
结果上网搜索解决方法,得出结论就是文件名或者路径不对,我自己又核对了半天
LOCAL_PATH:=$(callmy-dir)
include$(CLEAR_VARS)
$(callimport-add-path,$(LOCAL_PATH)/../../cocos2d)
$(callimport-add-path,$(LOCAL_PATH)/../../cocos2d/external)
$(callimport-add-path,$(LOCAL_PATH)/../../cocos2d/cocos)
LOCAL_MODULE:=cocos2dcpp_shared
LOCAL_MODULE_FILENAME:=libcocos2dcpp
LOCAL_SRC_FILES:=hellocpp/main.cpp\
../../Classes/GameScene11.cpp\
../../Classes/AppDelegate.cpp\
../../Classes/HelloWorldScene.cpp
LOCAL_C_INCLUDES:=$(LOCAL_PATH)/../../Classes
LOCAL_STATIC_LIBRARIES:=cocos2dx_static
include$(BUILD_SHARED_LIBRARY)
$(callimport-module,.)
include$(CLEAR_VARS)
$(callimport-add-path,$(LOCAL_PATH)/../../cocos2d)
$(callimport-add-path,$(LOCAL_PATH)/../../cocos2d/external)
$(callimport-add-path,$(LOCAL_PATH)/../../cocos2d/cocos)
LOCAL_MODULE:=cocos2dcpp_shared
LOCAL_MODULE_FILENAME:=libcocos2dcpp
LOCAL_SRC_FILES:=hellocpp/main.cpp\
../../Classes/GameScene11.cpp\
../../Classes/AppDelegate.cpp\
../../Classes/HelloWorldScene.cpp
LOCAL_C_INCLUDES:=$(LOCAL_PATH)/../../Classes
LOCAL_STATIC_LIBRARIES:=cocos2dx_static
include$(BUILD_SHARED_LIBRARY)
$(callimport-module,.)
仔细看看哪里出问题了???
对了,就是我的GameScene11.cpp多了一个空格!
空格害死人啊 ,同志们!!!