Comments (2)
I just have issue : src/video.c:18:8: error: unknown type name 'CvCapture'
solved by:
add #include "opencv2/videoio/videoio_c.h"
in video.c
from p2pvc.
same here.
/usr/local/Cellar/opencv/3.4.1_5/include/opencv2/core/cvdef.h:485:1: error: unknown type name 'namespace'
namespace cv {
^
/usr/local/Cellar/opencv/3.4.1_5/include/opencv2/core/cvdef.h:485:13: error: expected ';' after top level declarator
namespace cv {
^
;
In file included from src/video.c:1:
In file included from /usr/local/Cellar/opencv/3.4.1_5/include/opencv/cv.h:63:
In file included from /usr/local/Cellar/opencv/3.4.1_5/include/opencv2/core/core_c.h:48:
/usr/local/Cellar/opencv/3.4.1_5/include/opencv2/core/types_c.h:513:5: warning: implicit declaration of function '__assert_rtn' is
invalid in C99 [-Wimplicit-function-declaration]
assert( (unsigned)CV_MAT_DEPTH(type) <= CV_64F );
^
/usr/include/assert.h:93:34: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from src/video.c:1:
In file included from /usr/local/Cellar/opencv/3.4.1_5/include/opencv/cv.h:63:
In file included from /usr/local/Cellar/opencv/3.4.1_5/include/opencv2/core/core_c.h:48:
/usr/local/Cellar/opencv/3.4.1_5/include/opencv2/core/types_c.h:929:13: warning: implicit declaration of function 'cvRound' is
invalid in C99 [-Wimplicit-function-declaration]
ipt.x = cvRound(point.x);
^
In file included from src/video.c:2:
In file included from /usr/local/Cellar/opencv/3.4.1_5/include/opencv/highgui.h:46:
/usr/local/Cellar/opencv/3.4.1_5/include/opencv2/highgui/highgui_c.h:139:7: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
CVAPI(cv::Rect)cvGetWindowImageRect(const char* name);
^
/usr/local/Cellar/opencv/3.4.1_5/include/opencv2/highgui/highgui_c.h:139:9: error: expected ';' after top level declarator
CVAPI(cv::Rect)cvGetWindowImageRect(const char* name);
^
;
/usr/local/Cellar/opencv/3.4.1_5/include/opencv2/core/types_c.h:93:49: note: expanded from macro 'CVAPI'
# define CVAPI(rettype) CV_EXTERN_C CV_EXPORTS rettype CV_CDECL
^
In file included from src/video.c:2:
In file included from /usr/local/Cellar/opencv/3.4.1_5/include/opencv/highgui.h:46:
/usr/local/Cellar/opencv/3.4.1_5/include/opencv2/highgui/highgui_c.h:139:10: error: expected identifier or '('
CVAPI(cv::Rect)cvGetWindowImageRect(const char* name);
^
src/video.c:18:8: error: unknown type name 'CvCapture'
static CvCapture* cv_cap;
^
src/video.c:52:3: warning: implicit declaration of function 'cvReleaseCapture' is invalid in C99 [-Wimplicit-function-declaration]
cvReleaseCapture( &cv_cap );
^
src/video.c:99:12: warning: implicit declaration of function 'cvCaptureFromCAM' is invalid in C99 [-Wimplicit-function-declaration]
cv_cap = cvCaptureFromCAM(0);
^
src/video.c:107:17: warning: implicit declaration of function 'cvQueryFrame' is invalid in C99 [-Wimplicit-function-declaration]
color_img = cvQueryFrame(cv_cap);
^
6 warnings and 5 errors generated.
make: *** [objs/video.o] Error 1
from p2pvc.
Related Issues (20)
- Feature Request: Use Terminal Colors HOT 2
- segfault when defining width of more than 99 HOT 11
- No Video and CPU usage at 100% HOT 2
- Dependency issues in Mint 17.1 (Ubuntu 14.04) HOT 3
- OSX 10.10.1 HOT 8
- off subject HOT 1
- I can't install p2pvc HOT 1
- Multiple people can connect to the same instance at the same time HOT 1
- Completion of error handling
- Addition of a build system generator HOT 4
- custom font for better quality video? HOT 5
- make failed
- OS X 10.10.4 HOT 1
- Error around make HOT 4
- Command for installation in ubuntu is not working for linux mint
- "Error: homebrew/science was deprecated." HOT 1
- compiltion error
- Host side ascii processing for bandwidth?
- ./p2pvc: is a directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p2pvc.