ndk-build mutidefine

—————————问题1—————————

ndk-build报mutidefine
我的anndroid.mk中原来是
————————————-anndroid.mk———————————–LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_CPPFLAGS=-fsigned-char -O2 -ffast-math -fvisibility=hidden
LOCAL_CFLAGS=-fsigned-char -O2 -ffast-math -fvisibility=hidden
LOCAL_MODULE := libctr-jni
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/.cpp)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/game/
.cpp/)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/gfx/.cpp/)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/iframework/core/
.cpp/)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/iframework/.cpp/)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/iframework/helpers/
.cpp/)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/iframework/media/.cpp/)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/iframework/net/
.cpp/)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/iframework/visual/.cpp/)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/ios/
.cpp/)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/ios/xml/.cpp/)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/sfe/
.cpp/)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/.cpp)
*LOCAL_SRC_FILES := $(LOCAL_SRC_FILES:$(LOCAL_PATH)/%=%)

LOCAL_CFLAGS := -DANDROID_NDK
LOCAL_LDLIBS := -lGLESv1_CM -ldl -llog
include $(BUILD_SHARED_LIBRARY)

LOCAL_C_INCLUDES += ${NDKROOT}/sources/cxx-stl/stlport/stlport

其中斜线粗体是在最开头就有了的,删掉后编译通过,即同一个文件不能引入多回。。。

—————————问题2—————————
修改ant.properties文件

什么也不写,就只写签名相关,签名文件,密码等
key.store = keystore 签名文件,在项目根目录
key.alias = alias 签名别名
key.store.password = keystorepass 签名密码
key.alias.password = aliasstorepass 别名密码

你可能感兴趣的:(NDK,mutidefine)