Eclipse missing C/C++ build and general from project properties
来源:互联网 发布:淘宝手机一屏尺寸多少 编辑:程序博客网 时间:2024/05/20 11:27
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 missing C/C++ build and general from project properties
- Chapter 1. General Unix and Advanced C
- cocos2dx3.4-android项目eclipse运行报错CDT',Properties下c/c++build无法打开
- linux(ubuntu)下用eclipse运行C,可是一直提示nothing to build for project ProjectName
- Eclipse Project Build Types
- Eclipse Project Build Types
- Eclipse Project Build Automatically、Build Project
- !!!Objective-C General
- Calling CUDA program from C/C++ project
- How to configure a C/C++ project with Eclipse and CMake
- Eclipse: How to change general project to java project
- Eclipse C-Build窗口输出乱码问题
- Eclipse C-Build窗口输出乱码问题
- Eclipse C-Build窗口输出乱码问题
- Properties(C#)
- Maven&Eclipse build java project.
- General Dlist Implement by C
- General Darray Implement by C
- Linux下的platform总线驱动(二)
- 新手的学习之路—sizeof 的总结(1)
- Dijkstra算法求单源最短路径
- 安卓学习笔记之使用widget桌面小控件
- Linux用户空间的启动(一)
- Eclipse missing C/C++ build and general from project properties
- 开始→运行→输入的命令集锦
- 字符全排列
- Error code 0x84B20001 when trying to install SQL Server 2008R2 SP1
- ThreadPoolExecutor使用介绍
- 华为OJ-求车速
- IBM openblockchain学习(三)--Ledger源码分析
- 关于<lable></lable>标签的理解
- Android开发:创建一个可供编辑的图片(bitmap)