Eclipse missing C/C++ build and general from project properties

Q: 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)

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.

When I start eclipse and go to about:

Android Developer Tools

Build: v22.0.1-685705

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 Developer Tools are Copyright (c) The Android Open Source Project. Visithttp://developer.android.com

A:

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.

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) close all projects but the Opencv Library one (project explorer, select all projects but the first one, right click, "close project")

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

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

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) right click again on that project. Select "Properties > Android", make sure an Android version is selected in the "Project Build Target" list.

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

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.


http://stackoverflow.com/questions/16953548/eclipse-missing-c-c-build-and-general-from-project-properties

Eclipse CDT 开发环境的搭建(Windows) .................................................................................... 1 1. 下载并安装MinGW ................................................................................................................. 3 1.1 下载MinGW ............................................................................................................. 3 1.2 安装MinGW ............................................................................................................. 3 1.2.1 在线版安装 ....................................................................................................... 3 1.2.2 离线版安装 ....................................................................................................... 8 1.3 配置MinGW ........................................................................................................... 13 2. 下载并安装JDK ...................................................................................................................... 14 2.1 下载JDK .................................................................................................................. 14 2.2 安装JDK .................................................................................................................. 14 3. 下载并安装Eclipse + CDT ...................................................................................................... 14 3.1 Eclipse + CDT ........................................................................................................... 14 3.2 Eclipse IDE for C/C++ Developers ............................................................................ 14 4. 示例程序 ................................................................................................................................ 15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值