question

Kenneth A Liu avatar image
Kenneth A Liu asked

Unable to find headers

Hi, So I'm implementing Game Circle in cocos2dx 3.0 Alpha 1, and as per the setup I copied the Game Circle .h files to proj.android/jni/includes. However, I was unable to compile due to the build script not being able to find the headers. I tried a few different methods such as: #include "AchievementsClientInterface.h" #include "includes/AchievementsClientInterface.h" #include "../../jni/includes/AchievementsClientInterface.h" and nothing would work. I finally gave up and just moved the .h files in with the rest of my source and that worked, but I was wondering if that would cause problems down the road. Also, I'm kind of curious what the proper solution would have been? Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Kenneth, As documented, it should be #include "includes/AchievementsClientInterface.h" https://developer.amazon.com/public/apis/engage/gamecircle/docs/cplusplus-api#C++%20Implementation Guidance for writing Build script (.mk) is given in below location https://developer.amazon.com/public/apis/engage/gamecircle/docs/cplusplus-api#Android%20Setup
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.