Nakama SDK Android + Cocos2d-x

Hi,
I would like to integrate Nakama SDK into my game developed in iOS and Android with cocos2d-x 3.17.2.
I integrated it in iOS successfully but I’m facing some problems in Android.
I’ve already read the guide (https://heroiclabs.com/docs/cocos2d-x-client-guide/#setup-for-cmake-projects), but it didn’t help me.

I’m using:

  • Cocos2d-x 3.17.2.
  • NDK r16b.
  • Android Studio 3.5.3
  • cmake

I added these lines in my CMakeLists.txt:

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/nakama_cocos2d_sdk ${CMAKE_CURRENT_BINARY_DIR}/nakama-cpp)
target_link_libraries(${APP_NAME} ext_nakama-cpp)

This is the compile error I’ve when I add that lines:

f7f0062ae2dff9279d2fa2732e87926e3b5f05a8_2_690x94

What’s the problem?
Thanks.

The file CMakeLists.txt is located here:

99a9cd6f147f8b49e8de4a06e3e1d263208e3090

Please check is there android folder in nakama_cocos2d_sdk/libs

1 Like

Yeah that’s the problem thanks!!!