SDKBOX Google Play Services Cocos2d-x 3.13 and Android Studio

Hello,

I’ve got a Android Studio cocos2d-x 3.13 game.

I installed SDKBOX and ran ‘sdkbox import googleplayservices’.

When I try to do ‘cocos compiler …’ I get -


[armeabi] StaticLibrary : flatbuffers.a
In file included from jni/…/…/…/Classes/PluginGPGCppHelper.cpp:2:0:
jni/Plugingpg/SdkboxGooglePlayWrappedObjects.h:13:43: fatal error: GPGRealtimeMultiplayerWrapper.h: No such file or directory
#include “GPGRealtimeMultiplayerWrapper.h”
^
compilation terminated.
make: *** [obj/local/armeabi/objs-debug/MyGame_shared///__/Classes/PluginGPGCppHelper.o] Error 1
make: *** Waiting for unfinished jobs…
jni/…/…/…/Classes/AppDelegate.cpp:4:33: fatal error: PluginGPG/PluginGPG.h: No such file or directory
#include “PluginGPG/PluginGPG.h”
^
compilation terminated.

Should sdkbox work with the above?

thanks

LB

Hi definitely some SDKBOX library wasn’t linked correctly as it doesnt see this file classes. Have a try with new project and see if there is any error about when doing import.

Looks like you want to install google play game service

sdkbox import gpg

googleplayservices is a dependency library for eclipse/ant user only

Hi,

Thanks for the help. But this is a Windows --> Linux issue.

The directory plugingpg is referred to as plugingpg, PluginGPG and Plugingpg in the code.
Also the file GPGRealTimeMultiplayerWrapper.h is referred to as GPGRealtimeMultiplayerWrapper.h.

Linux sees the different capitalisations as different files.

I added symbolic links to each of these files with their aliases and it seemed to compile.

ln -s TheFileThatExists.ext Thefilethatexists.ext

Then it compiles.

cheers,

LB