Giter VIP home page Giter VIP logo

Comments (2)

youngqqcn avatar youngqqcn commented on September 28, 2024 1

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.

tinutomson avatar tinutomson commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.