Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Android] Google Play Game Integration Problem  (Read 1532 times)

0 Members and 1 Guest are viewing this topic.

CytraL

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • GitHub
[Android] Google Play Game Integration Problem
« on: November 28, 2014, 09:39:51 pm »
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":
Code: [Select]
# 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:
Code: [Select]
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:
Code: [Select]
gpg::AndroidPlatformConfiguration platform_configuration;
platform_configuration.SetActivity(((ANativeActivity*)m_pWindow->getNativeActivity())->clazz);
StateManager::InitServices(platform_configuration, nullptr, callback);

The error:
Code: [Select]
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 :\
« Last Edit: November 28, 2014, 09:41:58 pm by CytraL »
dev@redneboa.es | WordPress | GitHub | YouTube

 

anything