opencv in eclipse

Personally I would prefer Eclipse in linux platform, as in windows it's much easier to use visual studio instead. What's more, it's quite hard to build your own version for eclipse with opencv for windows.

In linux platform (taking mint as an example), to install the Eclipse CDT version and opencv, use those code:
sudo apt-get install eclipse-cdt
sudo apt-get install build-essential
sudo apt-get install libcv-dev

Now the default version of opencv should be 2.1.0. If you want to install version like 2.3.1 you have to install manually from .bin or so.

When creating a new project you should modify the properties with "/usr/include/opencv" in gcc and g++ directories, also "/usr/lib" for library and "cv, cxcore, highgui" included.

When testing program here's an error: couldn't display image, but it's alright to debug. the final solution is modify the run configuration and create a new value called "DISPLAY" in environment with the value ":0.0". Then everything would be all right.

转载于:https://www.cnblogs.com/joywelt/archive/2012/04/27/2651663.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值