Recently, somebody have issue with ndk compile at windows platform with LongPaths source files, also I also met the issue, so I try to write a patch to let ndk compile system to support LongPaths anywhere, fortunately, it’s work well, so I think I need to share the patch as a standalone topic
there is the solution:
Now, this solution support clang and gcc at windows7 & windows 10 platform.
Android Studio + ndk-r17 + cocos2d-x-3.17 cpp-empty-test:
No patch installed:
With patch installed:
How to install this patch:
1: set env var ANDROID_NDK_ROOT to your ndk-bundle directory
2: right click dists/ndk-wsls-2.0-final/install.bat, run as administrator.