I List out the step what i have done to configure cocos2d x , Please tell where i have done the mistake
I downloaded the below packages
a) cygwin
b) adt-bundle-windows-x86_64-20130522
c) android-ndk-r8e
d) cocos2d-x-2.1.4
I put all packages in the C: and cygwin in this pathC:
C: in this place i have.bash_profile* this file i added below 2 lines in this file
NDK_ROOT=C:/Program/android/android-ndk-r8e
export NDK_ROOT
And i started open the cygwin.bat from C: , I got below message
sankar@DN02 ~
$
i typescd $NDK_ROOT* and i got below line
sankar@DN02 /cygdrive/c/Program/android/android-ndk-r8e
$
And i closed the cygwin.bat
Now i open ndk-build.bat in notepad from C:-ndk-r8e and i added below line set NDK_ROOT=“C:/Program/android/android-ndk-r8e” In top of the page.
And i open create-android-project.bat from C:2d-x-2.1.4 it ask for the package name i typed com.test.two
and it ask for the project Name: two and it ask for the target id : 1
Finally project folder is created successfully in this path C:2d-x-2.1.4
7)Now i open cygwin.bat in **C:
sankar@DN02 ~
$ cd c:/program/android/cocos2d-x-2.1.4/two/proj.android
sankar@DN02 /cygdrive/c/program/android/cocos2d-x-2.1.4/two/proj.android
$
Now i typed ./build_native.sh
I got below Error
**sankar@DN02 ~
$ cd c:/program/android/cocos2d-x-2.1.4/two/proj.android
NDK_ROOT = C:/Program/android/android-ndk-r8e
COCOS2DX_ROOT = /cygdrive/c/program/android/cocos2d-x-2.1.4/two/proj.android/…/
…
APP_ROOT = /cygdrive/c/program/android/cocos2d-x-2.1.4/two/proj.android/…
APP_ANDROID_ROOT = /cygdrive/c/program/android/cocos2d-x-2.1.4/two/proj.android
Using prebuilt externals
cygwin warning:
MS-DOS style path detected: C:/Program/android/android-ndk-r8e/ndk-build
Preferred POSIX equivalent is: /cygdrive/c/Program/android/android-ndk-r8e/ndk-build
CYGWIN environment variable option “nodosfilewarning” turns off this warning.
Consult the user’s guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
./build_native.sh: line 89: C:/Program/android/android-ndk-r8e/ndk-build: No such file or directory
Whats the output after changing the NDK path? Does it still point to c:or cygwin\C
I’m using cygwin in win64 but I just used environment variables (NDK_ROOT pointing to cygwin folder) rather than a bash profile.
Might be worth giving it a try.
I am in some other place so i cant able to check right now, I will check and update u tomorrow. Before I need some clarification
Did u set environment Variable by right click mycomputer~~>Advance system settings~~>Environment Variables-> ??
Variable Name — NDK_ROOT
Variable Value — c:
And i need to remove below line from .bash_profile??
I’m on an XP machine at the moment (at work) so its Computer~~>Properties~~>Advanced->Environment Variables.
I’m using User vars rather than system.
I have NDK_ROOT pointing to /cygdrive/C/android-ndk-r8b
and DOCSDRIVE pointing to /cygdrive/C/Docume~1/AdamR/MyDocu~1/MyDrop~1/Progra~1 (this is my cocos path)
I don’t know much about the bash_profile so cant help there.
Now i open ndk-build.bat in notepad from C:/Program/android/android-ndk-r8e and i added below line set NDK_ROOT=“C:/Program/android/android-ndk-r8e” In top of the page.
You need also modify this line to: set NDK_ROOT="/cygdrive/c/program/android/android-ndk-r8e"
ndk_built.bat
I download Android NDK from below Link http://developer.android.com/tools/sdk/ndk/index.html , After i download the android-ndk-r8e-windows-x86_64.zip, I extract it inside of the zip file i have ndk_built.bat
build_native.sh
I am also didnt do any changes in the build_native.sh on C:2d-x-2.1.4\two\proj.android , Just i call the file from cygwin.bat
Variable Name : NDK_ROOT
Variable Value: /cygdrive/C/Program/android/android-ndk-r8e
2nd Place
.bash_profile in this file at this place **C: i added below 2 lines in end of that file
NDK_ROOT=/cygdrive/c/program/android/android-ndk-r8e
export NDK_ROOT
Yes i have**ndk_build.bat* in this path C:-ndk-r8e ,i got this file after extract the android-ndk-r8e-windows-x86_64.zip
Now i open cygwin.bat at this path C: and I called thebuild_native.sh* from below path C:2d-x-2.1.4\two\proj.android
For your understand i attach a screenshot in this post , please get the attachment…
i got below Error
sankar@DN02 ~
$ cd $NDK_ROOT
sankar@DN02 /cygdrive/c/program/android/android-ndk-r8e
$ cd c:/program/android/cocos2d-x-2.1.4/two/proj.android
sankar@DN02 /cygdrive/c/program/android/cocos2d-x-2.1.4/two/proj.android
$ ./build_native.sh
NDK_ROOT = /cygdrive/c/program/android/android-ndk-r8e
COCOS2DX_ROOT = /cygdrive/c/program/android/cocos2d-x-2.1.4/two/proj.android/…/
…
APP_ROOT = /cygdrive/c/program/android/cocos2d-x-2.1.4/two/proj.android/…
APP_ANDROID_ROOT = /cygdrive/c/program/android/cocos2d-x-2.1.4/two/proj.android
Using prebuilt externals
ERROR: Cannot find ‘make’ program. Please install Cygwin make package
or define the GNUMAKE variable to point to it.