Hi! i try to integrate GPG (Google Play Games) in my app... i downloaded gpg-sdk and setup it following these steps:
1. Copy "include" in to "sfml/include" installation
2. Copy "lib/c++/armeabi" in to "sfml/extlibs/lib/armeabi"
3. Modify "sfml/extlibs/Android.mk":
# GPG
include $(CLEAR_VARS)
LOCAL_MODULE := gpg
LOCAL_SRC_FILES := lib/$(TARGET_ARCH_ABI)/libgpg.a
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_STATIC_LIBRARY)
4. Modify the "Android.mk" of my project:
LOCAL_STATIC_LIBRARIES := gpg
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
#Zlib
LOCAL_LDLIBS += -lz
All compile fine... but have execution errors.. the code:
gpg::AndroidPlatformConfiguration platform_configuration;
platform_configuration.SetActivity(((ANativeActivity*)m_pWindow->getNativeActivity())->clazz);
StateManager::InitServices(platform_configuration, nullptr, callback);
The error:
11-28 21:14:39.939: E/GamesNativeSDK(15545): A method from AndroidInitialization must be called for an AndroidPlatformConfiguration to be Valid.
Any know why happens this? thx :\