You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
Where should ./gpg-cpp-sdk directory be located? #28
The instructions for a command line build are in README.build - it says that NDK_MODULE_PATH should be set to the location that the SDK was expanded. I suggest in Common/gpg-sdk.
"NDK_MODULE_PATH to the location of the Play Games cpp libraries."... I understand this refers to the root of the cpp-android-basic-samples zip content, right?
In build_sample.sh, "${ANDROID_HOME}/tools/android"... "android" refers to android.bat of the [Android SDK]\tools folder, right? (the build.sh scripts complains that I have ANDROID_HOME wrong (ERROR: F:\Android\ADT\SDK\tools\android does not exist), but android.bat exists there...
Might be a windows vs. non-windows issue. can you try copying android.bat to android and see if still works? I'll look into later today for a more permanent solution.
Using Android Studio, yes. That was not an issue building it (after MANY guesses & try), but the sample application was crashing with UnsatisfiedLinkError exception (library not found)... which led me to try all kind of workarounds. At last I had to modify ButtonClickerNativeActivity.java to make it work...
Activity
claywilkinson commentedon Jan 29, 2016
The instructions for a command line build are in README.build - it says that NDK_MODULE_PATH should be set to the location that the SDK was expanded. I suggest in Common/gpg-sdk.
You can also try to use the experimental Android Studio support to build with Gradle: http://tools.android.com/tech-docs/android-ndk-preview
S3riousSam commentedon Feb 1, 2016
"NDK_MODULE_PATH to the location of the Play Games cpp libraries."... I understand this refers to the root of the cpp-android-basic-samples zip content, right?
claywilkinson commentedon Feb 1, 2016
NDK_MODULE_PATH should be the directory that the C++ SDK was unzipped into.
S3riousSam commentedon Feb 1, 2016
In build_sample.sh, "${ANDROID_HOME}/tools/android"... "android" refers to android.bat of the [Android SDK]\tools folder, right? (the build.sh scripts complains that I have ANDROID_HOME wrong (ERROR: F:\Android\ADT\SDK\tools\android does not exist), but android.bat exists there...
claywilkinson commentedon Feb 1, 2016
Might be a windows vs. non-windows issue. can you try copying android.bat to android and see if still works? I'll look into later today for a more permanent solution.
S3riousSam commentedon Feb 1, 2016
Likely Windows... so I guess it was not tested on Windows?
I had to make these changes to make the script building (however, it looks like it still does not produce any lib nor apk yet):
output from build.sh:
claywilkinson commentedon Feb 1, 2016
Ugh - it does look the script is not windows friendly. I'll take a look as soon as I can.
claywilkinson commentedon Feb 1, 2016
Did you get this working?
S3riousSam commentedon Feb 1, 2016
Using Android Studio, yes. That was not an issue building it (after MANY guesses & try), but the sample application was crashing with UnsatisfiedLinkError exception (library not found)... which led me to try all kind of workarounds. At last I had to modify ButtonClickerNativeActivity.java to make it work...
gguuss commentedon Feb 6, 2016
The following worked for me:
Build all samples on Windows using Gradle
Unzip the Play Games Services to the sample folder. The
gpg-cpp-sdkfolder should be in the same folder containing thesamples-androidfolder.Install Android Studio
Set the path to the Android SDK
set ANDROID_HOME=C:\Users\AppData\Local\Android\sdk
Add the SDK to your path
set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
Set the path to the Android NDK
set ANDROID_NDK_HOME=C:\Users\Desktop\android-ndk-r10e
(Optional) On some versions of Windows it is helpful to map the samples folder to a shortened path.
subst C: G:
Execute the build script
G:
gradlew.bat sync
gradlew.bat assemble