cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.22k stars 7.06k forks source link

Cocos 2d gen-libs command fails every time with filename, directory name, or volume label syntax is incorrect error. #16693

Open waqas19921 opened 8 years ago

waqas19921 commented 8 years ago
C:\WINDOWS\system32>cocos gen-libs -p android -m debug --app-abi armeabi-v7a:x86
running: 'D:\Android\cocos2d\cocos2d-x-3.13.1\tools/cocos2d-console/bin\cocos.bat compile -s D:\Android\cocos2d\cocos2d-x-3.13.1\tools/simulator -p android --ndk-mode debug --app-abi armeabi-v7a:x86'

Building mode: debug
Using Eclipse project : D:\Android\cocos2d\cocos2d-x-3.13.1\tools\simulator\frameworks\runtime-src\proj.android
running: '"D:\Android\sdk\tools\android" update project -t android-23 -p D:\Android\cocos2d\cocos2d-x-3.13.1\tools\simulator\frameworks\runtime-src\proj.android'

Updated project.properties
Updated local.properties
Updated file D:\Android\cocos2d\cocos2d-x-3.13.1\tools\simulator\frameworks\runtime-src\proj.android\proguard-project.txt
running: '"D:\Android\sdk\tools\android" update lib-project -p D:\Android\cocos2d\cocos2d-x-3.13.1\cocos\platform\android\java -t android-23'

                                                                                                   Updated project.properties
Updated local.properties
Updated file D:\Android\cocos2d\cocos2d-x-3.13.1\cocos\platform\android\java\proguard-project.txt
Building native...
NDK build mode: debug
running: '"D:\Android\sdk\ndk-bundle\ndk-build" -C D:\Android\cocos2d\cocos2d-x-3.13.1\tools\simulator\frameworks\runtime-src\proj.android -j4 APP_ABI="armeabi-v7a x86" NDK_MODULE_PATH=D:\Android\cocos2d\cocos2d-x-3.13.1\tools\simulator\frameworks\runtime-src\proj.android\../../../../../;D:\Android\cocos2d\cocos2d-x-3.13.1\tools\simulator\frameworks\runtime-src\proj.android\../../../../../cocos/;D:\Android\cocos2d\cocos2d-x-3.13.1\tools\simulator\frameworks\runtime-src\proj.android\../../../../../external;D:\Android\cocos2d\cocos2d-x-3.13.1\tools\simulator\frameworks\runtime-src\proj.android\../../../../../cocos/scripting NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1'

The filename, directory name, or volume label syntax is incorrect.
Error running command, return code: 1.
Error running command, return code: 14.
slackmoehrle commented 8 years ago

I don't do a lot with Windows but is the path slashing weird? i.e notice it has both / and \

Also does it work if you specify one --app-abi at a time?

waqas19921 commented 8 years ago

does not work if i specify --app-abi armeabi or --ap-abi x86

minggo commented 8 years ago

The error message is not reported by cocos command. It may be reported by NDK. This stackoverflaw issue may give you a hand.