[英]Android Eclipse and configuring NDK Toolchains for project
I am using Android Eclipse ADT on Windows 8.1 I have installed both Cygwin and MinGW. 我在Windows 8.1上使用Android Eclipse ADT,同时安装了Cygwin和MinGW。 I have installed the SDK, NDK and Cocos2d-x library.
我已经安装了SDK,NDK和Cocos2d-x库。
My question is that my Cocos2d-x project is expecting this toolchain library in the NDK: 我的问题是我的Cocos2d-x项目期望在NDK中使用此工具链库:
ndk\toolchains\arm-linux-androideabi-4.4.3\prebuilt\darwin-x86\lib\gcc\arm-linux-androideabi\4.4.3\include
I browse to the ndk\\toolchains folder and I see several other versions: 我浏览到ndk \\ toolchains文件夹,然后看到其他几个版本:
arm-linux-androideabi-4.6
arm-linux-androideabi-4.8
arm-linux-androideabi-clang3.3
And a few other versions, but not the 4.4.3 version. 和其他一些版本,但不是4.4.3版本。
My question is then, should I 我的问题是
1) With Cygwin or MinGW compile "arm-linux-androideabi-4.4.3" and how to do this. 1)使用Cygwin或MinGW编译“ arm-linux-androideabi-4.4.3”以及如何执行此操作。
2) With some setting in ADT should I change the version to the newest one "arm-linux-androideabi-4.8". 2)在ADT中进行一些设置后,我应该将版本更改为最新的“ arm-linux-androideabi-4.8”。 Please direct me to this setting if this is the correct choice.
如果这是正确的选择,请引导我进入此设置。
Thanks in advance for your help! 在此先感谢您的帮助!
EDIT More importantly than trying to put the right NDK in there, it clearly states, "Invalid project path: Include path not found (C:\\development\\lib\\android\\ndk\\toolchains\\arm-linux-androideabi-4.4.3\\prebuilt\\darwin-x86\\lib\\gcc\\arm-linux-androideabi\\4.4.3\\include)"
If that was a Visual Studio error I would look for where the Project Path is being defined. 编辑比试图在其中放置正确的NDK更重要的是,它明确指出:
"Invalid project path: Include path not found (C:\\development\\lib\\android\\ndk\\toolchains\\arm-linux-androideabi-4.4.3\\prebuilt\\darwin-x86\\lib\\gcc\\arm-linux-androideabi\\4.4.3\\include)"
如果这是Visual Studio错误,我会在项目路径的定义位置查找。 Why can't I do that with Eclipse ADT? 为什么我不能使用Eclipse ADT做到这一点?
It seems to me that you need a compiled arm-linux-arndroideabi-4.4.3 toolchain. 在我看来,您需要一个编译过的arm-linux-arndroideabi-4.4.3工具链。
You can download the ndk-r8e toolchain with a compiled arm-linux-arndroideabi-4.4.3 from the following link: 您可以从以下链接下载带有已编译的arm-linux-arndroideabi-4.4.3的ndk-r8e工具链:
32-OS: https://dl.google.com/android/ndk/android-ndk-r8e-windows-x86.zip 32-OS: https : //dl.google.com/android/ndk/android-ndk-r8e-windows-x86.zip
64-OS: https://dl.google.com/android/ndk/android-ndk-r8e-windows-x86_64.zip 64-OS: https : //dl.google.com/android/ndk/android-ndk-r8e-windows-x86_64.zip
Extra the zip file, you'll find android-ndk-r8e\\toolchains\\arm-linux-androideabi-4.4.3\\prebuilt 除压缩文件外,您还会找到android-ndk-r8e \\ toolchains \\ arm-linux-androideabi-4.4.3 \\ prebuilt
Hope that helps. 希望能有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.