Chinaunix首页 | 论坛 | 博客
  • 博客访问: 279431
  • 博文数量: 186
  • 博客积分: 1531
  • 博客等级: 上尉
  • 技术积分: 1275
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-06 16:56
文章分类

全部博文(186)

文章存档

2013年(2)

2012年(184)

分类:

2012-12-19 13:26:28

libhighgui.so.2.1.0: undefined reference to `cvCreateCameraCapture

解决方法如下:
  •  
     
    1919/* V4L2 capturing support */ 
    2020#cmakedefine HAVE_CAMV4L2 
     21 
     22/* V4L/V4L2 capturing support via libv4l */ 
     23#cmakedefine HAVE_LIBV4L 
    2124 
    2225/* Carbon windowing environment */ 
  • TabularUnified 
     
    172172                return capture; 
    173173        #endif 
    174         #if defined (HAVE_CAMV4L) || defined (HAVE_CAMV4L2) 
     174        #if defined HAVE_LIBV4L || (defined (HAVE_CAMV4L) && defined (HAVE_CAMV4L2)) 
    175175            capture = cvCreateCameraCapture_V4L (index); 
    176176            if (capture) 
  • TabularUnified 
     
    225225#include "precomp.hpp" 
    226226 
    227 #if !defined WIN32 && defined HAVE_CAMV4L && defined HAVE_CAMV4L2 
     227#if !defined WIN32 && defined HAVE_LIBV4L 
    228228 
    229229#define CLEAR(x) memset (&(x), 0, sizeof (x)) 
     
    242242#include  
    243243 
     244#ifdef HAVE_CAMV4L 
    244245#include  
     246#endif 
     247#ifdef HAVE_CAMV4L2 
    245248#include  
     249#endif 
    246250 
    247251#include  
    上面给出的是2.2.0版本的修改方法。
  • 2.1.0 需要修改,cvcap.cpp,cv, 
阅读(764) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~