Eclipse NDK,NativeActivity 项目。我正在尝试将一个liquidfun(Box2D) 库添加到我现有的项目中。不幸的是,互联网上没有人解释如何精确地做到这一点。在使用 ndk 构建库后我被卡住了(按照这个https://google.github.io/liquidfun/Building/html/md__building_android.html),并运行示例项目。我完全不知道如何在我自己的项目中使用它。我的Android.mk,我已经在使用 sfml。
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := sfml-example
PROJECT_FILES := $(wildcard $(LOCAL_PATH)/CPP/*.cpp)
PROJECT_FILES := $(PROJECT_FILES:$(LOCAL_PATH)/%=%)
LOCAL_SRC_FILES := main.cpp
LOCAL_SRC_FILES += $(PROJECT_FILES)
FILE_LIST := $(wildcard $(LOCAL_PATH)*.cpp)
LOCAL_SHARED_LIBRARIES := sfml-system
LOCAL_SHARED_LIBRARIES += sfml-window
LOCAL_SHARED_LIBRARIES += sfml-graphics
LOCAL_SHARED_LIBRARIES += sfml-audio
LOCAL_SHARED_LIBRARIES += sfml-network
LOCAL_WHOLE_STATIC_LIBRARIES := sfml-main
include $(BUILD_SHARED_LIBRARY)
$(call import-module,sfml)
提前致谢。