NDK_ROOT path for ndk r11 in Cocos2d-x
NDK_ROOT path for ndk r11 in Cocos2d-x
I am trying to set up Cocos2d-x for Android in Windows using python, but my ROOT values give me an error.
My path to my ndk folder is: C:\Users\user\AppData\Local\Android\ndk\android-ndk-r11
When I try to run setup.py is asks "Please enter the path of NDK_ROOT: ". I enter in my path to the ndk but it then says: "Error: "ndk folder path here" is not a valid path of NDK_ROOT. Ignoring it.
I have also tried manually entering it in my environmental variables, but it still does not work. What is my error here?
My adk folder contains the following:
- build (folder)
- platforms (folder)
- prebuilt (folder)
- python-packages(folder)
- sources (folder)
- toolchains (folder)
- CHANGELOG.md (md file)
- ndk-build (Windows command script)
- source.properties (properties file)
Edit:
I have now gotten the NDK to accept on the build folder in my previous location, but there is still an issue with the NDK when I try to create a project.
Answer by Wen for NDK_ROOT path for ndk r11 in Cocos2d-x
I know android studio should set you ndk path in local.properties,there is the setting:
ndk.dir=C:\android-ndk-r10e sdk.dir=C:\Studio_SDK
Answer by Khaled Lakehal for NDK_ROOT path for ndk r11 in
There are some changes made on the new NDK r11 release and some tools were moved to different folders, I guess cocos2d-x scripts need to be updated to support the latest NDK release. You can wait for a new cocos2d-x release or use the previous NDK (r10e) version.
Answer by Edmund Ching for NDK_ROOT path for ndk r11 in Cocos2d-x
Try adding a "\" at the end. I know it sounds silly, but I had the same problem when setting up on my MacOs.
Beyond that, see if you'll encounter other problems like.... wrong toolchain version when compiling
Answer by Upgrayded for NDK_ROOT path for ndk r11 in Cocos2d-x
I have figured out that at the time of this post, the NDK11 has just been released and the current version of Cocos2dx does not support it. I had to find a download link elsewhere to download an older version.
Answer by Shauket Sheikh for NDK_ROOT path for ndk r11 in Cocos2d-x
if you want to set relative path that work on all other fellow system without changing again and again then set ndk root path in such a way.
NDK_ROOT="$APP_ROOT/../your ndk name"
your ndk is placed one directory behind the proj.android file.
Fatal error: Call to a member function getElementsByTagName() on a non-object in D:\XAMPP INSTALLASTION\xampp\htdocs\endunpratama9i\www-stackoverflow-info-proses.php on line 72
0 comments:
Post a Comment