Reputation: 33
Hello, I am new to cocos2dx. I configure cocos2dx in Windows 7 / Eclipse. I created a project called helloworld that is running, but when I run sample project(helloCpp, testCpp) that gives an error:
bash /build_native.sh
Cannot run program "bash": Launching failed
Error: Program "bash" not found in PATH
I have already tried Cocos2d-x android can't resolved coscos2dx library.
Upvotes: 3
Views: 3618
Reputation: 21
you Need a Proper All version
Cocos2d-x 3.6 Apache ant python 2.7 Eclipse Java
1.Set Java and Apache Path in Global Environment
2.Extract cocos2d-x 3.6 Download Version
3.Open the setup.py file
4. add this all in Environment File
COCOS_CONSOLE_ROOT = 'COCOS_CONSOLE_ROOT' => Here is your File where you are add
COCOS_X_ROOT = 'COCOS_X_ROOT' => you get this in Cocos2dx Folder
COCOS_TEMPLATES_ROOT = 'COCOS_TEMPLATES_ROOT'=> you get this in cocos2dx Folder
NDK_ROOT = 'NDK_ROOT' => Download NDK 9.2
ANDROID_SDK_ROOT = 'ANDROID_SDK_ROOT'=> your Eclipse root
ANT_ROOT = 'ANT_ROOT' => apache ant root`enter code here`
add above all Proper in Environment then run into CMD, Cheers :)!
Upvotes: 0
Reputation: 363
All the environment variable set properly. List of environment variable is :Android SDK path,Python and Apache Ant. Then try to run ./build_native.sh on command promt. Reference link:Here
Upvotes: 0
Reputation: 401
set environment variables(c:/cygwin/bin), then the problem is solved
Upvotes: 0
Reputation: 1041
Believe me I have been trying to setup cocos2dx on windows machine for about 2 weeks and I wasnt successful at all. there were lot of problems I faced still had issues to compile CPP code and othe build path issues. Switch to MAC its easier and most of all making cross platform app windows doesnt make any sense since you cant run iOS simulator on windows machine
Upvotes: 1