Android C++ Minimalist sample app: "Cannot find module with tag 'gpg-cpp-sdk/android' in import path -


so, i'm trying compile minimalist sample code tutorial. https://developers.google.com/games/services/cpp/gettingstartedandroid

i have android sdk , ndk , gpg-cpp sdk installed @ c:/android, , environmental variables set.

so, knowledge i've followed guide letter. when run ndk-build inside jni folder error: cannot find module tag 'gpg-cpp-sdk/android' in import path. sure ndk_module_path variable defined?

"in guide, part mentions setting hte ndk_module_path variable, says set variable ndk_module_path point directory above gpp-cpp-sdk directory."

i realized, guide says gpp-cpp-sdk while folder gpg-cpp-sdk.. tried changing name of folder, still got same error, error says gpg-cpp-sdk, guess might typo on guide page.

the android.mk 1 came project, didn't make changes it.

i not use eclipse android development, went step 3.

steps google docs:

source: https://developers.google.com/games/services/cpp/gettingstartedandroid#step_3_run_the_sample

  1. download android sdk , android ndk , extract them machine. in environment, set sdk_root location of android sdk folder , ndk_root location of android ndk folder.
  2. download c++ sample games. tutorial refers location of samples on machine samples_dir.
  3. download google play game services c++ sdk. extract sdk onto development machine. in environment, set variable ndk_module_path point directory above gpp-cpp-sdk directory. should have following directory structure: ndk_module_path/ gpp-cpp-sdk/

here did:

  1. git clone "https://github.com/playgameservices/cpp-android-basic-samples.git" "<some directory>"
  2. in terminal: export ndk_module_path="<some directory>"
  3. cd cpp-android-basic-samples/
  4. cd samples-android/
  5. cd minimalist/
  6. ndk-build (this assumes have ndk in path already)

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -