Eclipse中缺少的C / C ++构建和一般从项目属性 [英] Eclipse missing C/C++ build and general from project properties

查看:661
本文介绍了Eclipse中缺少的C / C ++构建和一般从项目属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行Eclipse时,我试图让opencv4android就可以了(<一href="http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html">http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html)

I have eclipse running and am trying to get opencv4android on it (http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html)

指示说要到项目 - >属性和它们的将是一个C / C ++构建改变NDK建造的位置。但是,我不认为C / C ++构建或一般。

Instructions say to go to project -> properties and their will be a C/C++ build to change the location of ndk-build. However, I do not see C/C++ build or general.

当我启动Eclipse,然后转到有关:

When I start eclipse and go to about:

Android开发工具

Android Developer Tools

体形:v22.0.1-685705

Build: v22.0.1-685705

此产品包括Eclipse平台,JDT,CDT,EMF,GEF和WTP, 所有这一切都是版权所有(C)Eclipse的贡献者和其他人。 访问 http://eclipse.org/

This product includes Eclipse Platform, JDT, CDT, EMF, GEF and WTP, all of which are Copyright (c) Eclipse contributors and others. Visit http://eclipse.org/

Android开发工具版权所有(C)的Andr​​oid开源项目。 访问 http://developer.android.com

Android Developer Tools are Copyright (c) The Android Open Source Project. Visit http://developer.android.com

推荐答案

我也有类似的问题,它看起来像原生支持部分的设置不正确的项目,或者至少是不与Eclipse兼容/ CDT / Android SDK中的组合我。

I had a similar problem, it looks like the "native support" part was not set up correctly in the project, or at least was not compatible with the eclipse / CDT / android sdk combination I have.

您也许可以试试我做了什么(与Eclipse 4.2.2,8.1.2 CDT,opencv4android 2.6.4,Android SDK中4.3):

You can maybe try what I did (with eclipse 4.2.2, CDT 8.1.2, opencv4android 2.6.4, android sdk 4.3):

1)关闭所有项目,但OpenCV库一(项目资源管理器,选择所有项目,但第一个,右键单击关闭项目)

1) close all projects but the Opencv Library one (project explorer, select all projects but the first one, right click, "close project")

2)右键单击第一个项目。选择Android的工具,然后选择添加本机支持......。

2) right click on the first project. Select "Android Tools", then "Add native support ...".

3)选择一个独特的库名的没有的空间(默认名称不工作)。

3) select a unique library name without spaces (default names don't work).

4)进入项目属性,在C / C ++编译部分现在应该在那里。更改构建命令$ {NDKROOT} / NDK建造,假设NDKROOT正确设置了前手。

4) Go to project properties, the "c/c++ build" section should now be there. Change the build command to ${NDKROOT}/ndk-build, assuming NDKROOT was correctly set up before-hand.

5)再次右击该项目的。选择属性>机器人,确保一个Android版本是在工程建设目标列表中选择。

5) right click again on that project. Select "Properties > Android", make sure an Android version is selected in the "Project Build Target" list.

6)创造一切条件,并确保一切正常,在这一点上。

6) build everything and make sure everything works at this point.

然后就可以重新打开一个样本项目(如15拼图),并重复如果需要上述操作。

Then you can re-open one sample project (eg 15 puzzle), and repeat the operations above if needed.

希望你应该能够建立一个示例项目,并启动您的手机上。

Hopefully you should be able to build that sample project and launch it on your phone.

这篇关于Eclipse中缺少的C / C ++构建和一般从项目属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆