RapidGame: Android make errors (was Updated NDK version and now get error prebuilding for Android)

I did just update to the latest NDK version, and made sure to update the NDK_ROOT to reflect the new path.

But now when I do rapidgame prebuild android --verbose I get

make: *** No rule to make target /Applications/android/android-ndk-r10d/sources/android/cpufeatures/cpu-features.c', needed byobj/local/armeabi/objs-debug/cpufeatur

It looks like it looks at the old path, for the old NDK. The current one is at /Applications/android/android-ndk-r10e. How do I fix this - reinstall RapidGame?

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 22 (10 by maintainers)

Most upvoted comments

You could potentially try adding

LOCAL_LDFLAGS := -Wl,–allow-multiple-definition

To any place in testgame4/Projects/android/jni/Android.mk after line 16 and before line 70.

http://discuss.cocos2d-x.org/t/how-to-avoid-mulpile-definition-of-xxxx-at-linking-for-packaging-apk/17430