Help, error when build Photon on Android.

Hi all,
I try to setup and build Photon Android SDK (v4.1.0.4) with cocos2dx 3.10 and ndk r10e. I change Android.mk file follow this tutorial: https://recruit.gmo.jp/engineer/jisedai/blog/cocos2d-x_photon/
But when compile in terminal, i get more errors with sdk:

[armeabi] SharedLibrary : libcocos2dcpp.so
jni/../Photon-AndroidNDK-Sdk_v4-1-0-4/Common-cpp/inc/Dictionary.h:93: error: undefined reference to 'ExitGames::Common::DictionaryBase::DictionaryBase()'
jni/../Photon-AndroidNDK-Sdk_v4-1-0-4/Common-cpp/inc/Dictionary.h:93: error: undefined reference to 'ExitGames::Common::DictionaryBase::~DictionaryBase()'
jni/../Photon-AndroidNDK-Sdk_v4-1-0-4/Common-cpp/inc/Dictionary.h:106: error: undefined reference to 'ExitGames::Common::DictionaryBase::~DictionaryBase()'
....

I also change Android.mk follow Demos/demo_loadBalancing but when compile it still have same problem.
Anyone can help me?

Comments

  • I have just solved this problem. Thank all.
  • Hi @hungnh,

    could you post here how you solved this so others can benefit from it in the future?
Sign In or Register to comment.