@R101 yep, you are right.
Did you mean the CI used in the github repo? Yep, it uses command line to build.
@R101 yep, you are right.
Did you mean the CI used in the github repo? Yep, it uses command line to build.
@zhangxm
@slackmoehrle
I don’t know what happened to it
NDK path: E:\android-ndk-r19c
SDK path: D:\ProgramFiles\Android\sdk
Cocos path: E:\cocos2d-x-3.17.2
Project path: E:\Template
cmd:
cd E:
cocos new Template -l js -p com.tunt.cocostemplate -d ./
cd .\Template
cocos compile -p android --android-studio -m release
Perhaps I can find a spare machine to try these steps on.
yeah, macOS and Linux work for me. I don’t have easy access to a Windows machine.
You can use bootcamp with macOS
Yup, I also need a Windows license I’m not going to dual boot my Mac though.
@bayquabaoto for me it is the same problem:
Too long path:
“E:\Template\frameworks\runtime-src\proj.android”
@zhangxm, @slackmoehrle What is the recommended NDK version for Cocos2d-x v3.17.2 ?
@slackmoehrle, @zhangxm if NDK r19c is recommended for Cocos2d-x v3.17.2 than I see two issues:
It is not good to recommended/use “NDK r19c” for test and use in CI “NDK r16b”
In travis/appveyor CI I see android-ndk-r16b
https://github.com/cocos2d/cocos2d-x/blob/v3/tools/appveyor-scripts/setup_android.py#L21
It is not good to have prebuild compiled with “NDK r16” and cocos2d-x and game with “NDK r19c”
Please see https://developer.android.com/ndk/guides/cpp-support
Note: While we attempt to maintain ABI compatibility across NDK releases, this is not always possible. For the best compatibility, you should use not only the same STL as your dependencies but also the same version of the NDK whenever possible.
@CrazyHappyGame yep, you are right. We want to use latest NDK version, but rebuilt all 3rd parties with latest NDK version is a pain.
@bayquabaoto it is wired, the QA tested the same commands as you on windows 10, but don’t have any problem. Did you install other cocos2d-x version, then the cocos commands
refer to other cocos2d-x version.
I tried cocos v3.17, ndk r17c and the results are still the same
Can you show your whole path according to $PATH