Skip to content

Error when excute make  #44

@Deeer

Description

@Deeer

gcc -Isrc/inc -O2 -Wall -DPA_USE_COREAUDIO pkg-config --cflags opencv src/video.c -c -o objs/video.o
In file included from src/video.c:1:
In file included from /usr/local/Cellar/opencv/3.4.0/include/opencv/cv.h:63:
In file included from /usr/local/Cellar/opencv/3.4.0/include/opencv2/core/core_c.h:48:
/usr/local/Cellar/opencv/3.4.0/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);
^
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);
^
4 warnings and 1 error generated.
make: *** [objs/video.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions