I had the same problem installed version 9
and change ANDROID_NDK_ROOT the problem was still there.
I change NDK_ROOT and path and it is compiling.
I use cygwin on window.
Hope it helps
Andre
PS: I have testlua running on my android tablet.
I had to restart the tablet but otherwise it all look great.
I have the same problem here
I’m using cocos2d-x-3.0aplha0 and create a new project from create-multi-platform-projects.py, I’m using windows so I’ve installed cygwin and the NDK version I used is android-ndk-r9b
I’ve already set the environment variables of NDK_ROOT to the right folder but when I tried to build it on eclipse, I got “Couldn’t find the gcc toolchain.” error … but when I tried to build it manually from cygwin terminal, it works perfectly
I don’t know what’s wrong here, I guess I’ll just build it manually from cygwin terminal for the time being then run it on eclipse to try it on the emulator
it looks like you have to set the NDK_ROOT on eclipse C++ build environment under “Window > preferences > C/C++ > Build > Environment” and add new environment variables “NDK_ROOT” with the exact path on your drive. you can’t just used the environment variables from Windows Environment Variables, it didn’t work.
I met the same problem in cocos2d-x 3.0 alpha1 on my Mac system(OS X 10.8.5). In my system, the ‘NDK_ROOT’ is set to ‘/AndroidDev/ndk’. After investigaion, i find that the problem is caused by a Python statement ‘os.path.join(ndk_root,“toolchains/arm-linux-androideabi-4.8”)’. I use ‘print’ to get the result of this statement, the result is ‘/toolchains/arm-linux-androideabi-4.8’ instead of ‘/AndroidDev/ndk /toolchains/arm-linux-androideabi-4.8’ . Then, I test the following statement: print os.path.join(ndk_root,“ttt”), the result is ‘/tttroidDev/ndk’. Obviously, something is wrong with the function ‘os.path.join’, it replaces the characters in the first parameter by the characters in the second parameter instead of joining the two strings.
Who can give a solution to this case?
PS: Above test is on my physical Mac computer. When I run this case on a VM (virtual machine) with the same version of OS X, everything is fine.
Help!
I traced th ‘build_native.py’. And found that the returned value of ‘ndk_root’ is ‘AndroidDev/ndkr’ instead of ‘AndroidDev/ndk’. The ‘return’ character is added automatically to the end of the string. This is the reason why the os.path.join doesn’t assemble correctly the 2 strings. But, the strange thing is that, on my Mac Virtual machine, the returned value of ‘ndk_root’ is ‘AndroidDev/ndk’. I’m wondering how to get rid of the ‘r’ on my real Mac computer. I know that Python code can do this. But i don’t think it’s a good idea to change ‘build_native.py’ by my self. Does anyone know how to get rid of the ‘r’ automatically?
Hi, Minggo, can you help to investigae the reason? or, can you suggest the development team to add some code in the ‘build_native.py’ (maybe also in other python files) to remove the additional characters like ‘’, ‘’, etc. ?
The problem is solved. It’s a ‘copy-paste’ problem. I delete the .bash_profile and create a new one. Then I type manually all the content in it. And then save. It works.