cocos gen-libs -c results in the following errors
make: Entering directory /Users/garyash/Documents/GeeDblA/SDKs/cocos2d/cocos2d-x/tools/simulator/frameworks/runtime-src/proj.android' /Users/garyash/Library/Android/sdk/ndk-bundle/build/core/build-binary.mk:660: Android NDK: Module cocos2dlua_shared depends on undefined modules: log /Users/garyash/Library/Android/sdk/ndk-bundle/build/core/build-binary.mk:673: *** Android NDK: Aborting (set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies) . Stop. make: Leaving directory
/Users/garyash/Documents/GeeDblA/SDKs/cocos2d/cocos2d-x/tools/simulator/frameworks/runtime-src/proj.android’
I’m new to the android builds does anyone know where the log library is?
Is this a change in cocos2d-x or has my android dev environment been corrupted somehow?
Thanks for any help
you cloned the GitHub repo, what else did you do? ./download-deps.py?
?
what is the output of:
> which cocos
> cocos -v
Yes, i did download dependancies. The iOS and Mac libraries built fine.
cocos -v gives
cocos2d-x-3.14.1
Cocos Console 2.2
and is this the full command you are using?
cocos gen-libs -c
I’m trying:
cocos gen-libs -m release -p android
I’ll update this topic when I know how this finishes.
cocos gen-libs -c
is the command that I’m running it has successfully built the android libraries in the past. Sorry thought i was clear enough
I ran:
cocos gen-libs -m release -p android
and it worked:
I used your command and get the very same error that I reported to start this
Is there any way to dump your android dev environment so that I do some comparison ?
hmm. I use brew
to install android-sdk and android-ndk.
then I use the android
command-line tool to add the SDK’s that I need.
My .bash_profile
is this:
# Add environment variables for Android Cocos2d-x development
export NDK_ROOT=/usr/local/Cellar/android-ndk/r12b
export PATH=$NDK_ROOT:$PATH
export ANDROID_HOME=/usr/local/opt/android-sdk
export ANDROID_SDK_ROOT=/usr/local/Cellar/android-sdk/24.4.1_1
export PATH=$ANDROID_SDK_ROOT:$PATH
export PATH=$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools:$PATH
export ANT_ROOT=/Users/chukong/Chukong-Inc/Cocos/tools/ant/bin
export PATH=$ANT_ROOT:$PATH
I got working. The only thing I can think is that brew may have messed up somewhere along the way. (My configuration is very similar to your own). I did a brew rm and re-installed my android sdk.
Thank you so much. You were as helpful and polite as a person could ask for
there is an issue of it: https://github.com/cocos2d/cocos2d-x/issues/17443. I don’t know why log
is missing, it is a system module.