OpenCV错误日志

 

###############QtOpenCV---04:58:06 AM############

Error Description:

undefined reference to `cvCreateCameraCapture'

undefined reference to `cvQueryFrame'

undefined reference to `cvReleaseCapture'

undefined reference to `cvQueryFrame'

Error Analysis:

Need to link to the OpenCV libraries.

Error solution:

Add the following code in .pro file:

INCLUDEPATE += ./usr/include/opencv

LIBS += /usr/lib/libcv.so 

/usr/lib/libcv.so.4  /

/usr/lib/libcvaux.so  /

/usr/lib/libcvaux.so.4 /

/usr/lib/libhighgui.so /

/usr/lib/libml.so /

/usr/lib/libcxcore.so /

Relative documents:

OpenCV Chinese Forum: http://www.opencv.org.cn/index.php/

GUI and Video Acquisition Reference: http://www710.univ-lyon1.fr/~bouakaz/OpenCV-0.9.5/docs/ref/OpenCVRef_Highgui.htm

 

 

 

###############QtOpenCV---08:48:16PM############

Error Description:

Starting /home/andrewlv/workspace/QtOpenCV/QtOpenCV...

HIGHGUI ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV

Unable to stop the stream.: Device or resource busy

Unable to stop the stream.: Bad file descriptor

HIGHGUI ERROR: V4L: Pixel format of incoming image is unsupported by OpenCV

ASSERT: "camera" in file main.cpp, line 13

The program has unexpectedly finished.

/home/andrewlv/workspace/QtOpenCV/QtOpenCV exited with code 0

Error Analysis:

Some errors about OpenCV libraries visions?

Error solution:

apt-cache search libv4l

sudo apt-get install libv4l-ruby1.8

Relative documents:

http://www.opencv.org.cn/forum/viewtopic.php?f=1&t=5473

############################################

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值