简体   繁体   English

Android Eclipse并为项目配置NDK工具链

[英]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”以及如何执行此操作。

  • or - 要么 -

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.

相关问题 npm 运行 android 在 NDK 工具链中找不到工具链 - npm run android No toolchains found in the NDK toolchains Android构建目标是“在NDK工具链中找不到工具链” - Android build targets “No toolchains found in the NDK toolchains” 在Android NDK工具链中使用LLVM有什么用? - What's the use of LLVM in Android NDK Toolchains? 导入Android NDK项目时Eclipse挂起 - Eclipse hangs when importing Android NDK project 在Android Studio中,前缀为:mipsel-linux-android的ABI的NDK工具链文件夹中找不到工具链 - No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android error in Android Studio libpcap静态链接错误使用ndk工具链编译为android - libpcap static linking errors compiling with ndk toolchains for android Bitbucket管道:在ABI的NDK工具链文件夹中找不到工具链,前缀为:aarch64-linux-android - Bitbucket Pipelines: No toolchains found in the NDK toolchains folder for ABI with prefix: aarch64-linux-android 使用NDK和Gstreamer用法将Eclipse android项目迁移到Android Studio - Migrating Eclipse android project with NDK and Gstreamer usage to Android Studio 在NDK工具链文件夹中找不到带有前缀的ABI的工具链 - No toolchains found in the NDK toolchains folder for ABI with prefix Android NDK。 Eclipse项目属性中没有C / C ++部分 - Android NDK. No C/C++ section in Eclipse project properties
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM