libhighgui.so.2.1.0: undefined reference to `cvCreateCameraCapture
解决方法如下:
-
| | |
---|
19 | 19 | /* V4L2 capturing support */ |
---|
20 | 20 | #cmakedefine HAVE_CAMV4L2 |
---|
| 21 | |
---|
| 22 | /* V4L/V4L2 capturing support via libv4l */ |
---|
| 23 | #cmakedefine HAVE_LIBV4L |
---|
21 | 24 | |
---|
22 | 25 | /* Carbon windowing environment */ |
---|
- TabularUnified
| | |
---|
172 | 172 | return capture; |
---|
173 | 173 | #endif |
---|
174 | | #if defined (HAVE_CAMV4L) || defined (HAVE_CAMV4L2) |
---|
| 174 | #if defined HAVE_LIBV4L || (defined (HAVE_CAMV4L) && defined (HAVE_CAMV4L2)) |
---|
175 | 175 | capture = cvCreateCameraCapture_V4L (index); |
---|
176 | 176 | if (capture) |
---|
- TabularUnified
| | |
---|
225 | 225 | #include "precomp.hpp" |
---|
226 | 226 | |
---|
227 | | #if !defined WIN32 && defined HAVE_CAMV4L && defined HAVE_CAMV4L2 |
---|
| 227 | #if !defined WIN32 && defined HAVE_LIBV4L |
---|
228 | 228 | |
---|
229 | 229 | #define CLEAR(x) memset (&(x), 0, sizeof (x)) |
---|
| | |
---|
242 | 242 | #include |
---|
243 | 243 | |
---|
| 244 | #ifdef HAVE_CAMV4L |
---|
244 | 245 | #include |
---|
| 246 | #endif |
---|
| 247 | #ifdef HAVE_CAMV4L2 |
---|
245 | 248 | #include |
---|
| 249 | #endif |
---|
246 | 250 | |
---|
247 | 251 | #include |
---|
上面给出的是2.2.0版本的修改方法。 - 2.1.0 需要修改,cvcap.cpp,cv,
阅读(1321) | 评论(0) | 转发(1) |