Smart Fox Server 2X + cocos2d-x

Hi,
I would like to integrate SmartFoxServer (C++ API) with a 2d game developed in cocos2d-x c++.

The objetive is create a real-time multiplayer game using SmartFoxServer 2X.
At this moment i’m reading the documentation and investigating how difficult it’s to integrate it into xCode and Android Studio (with NDK).

Has anyone successfully integrated SFS2X with cocos2d-x in c ++ ?
I tried to compile SpaceWar, a game example developed in cocos2d-x with SFS2X, but i’ve some problems for compile it.

Thanks.