Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

video compilation issue #3

Open
Drone-project opened this issue Mar 22, 2017 · 1 comment
Open

video compilation issue #3

Drone-project opened this issue Mar 22, 2017 · 1 comment

Comments

@Drone-project
Copy link

Hi, I am trying to install video module on RP3(Raspbian Jessie) and I have an error even after referring to issue 2 here.
When I build it I get this error:

running build
running build_ext
building 'cvideo' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -D__STDC_CONSTANT_MACROS -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include -I/usr/include/python2.7 -c cvideo.cpp -o build/temp.linux-armv7l-2.7/cvideo.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0,
from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
from cvideo.cpp:2:
/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^
cvideo.cpp: In function ‘PyObject* init(PyObject*, PyObject*)’:
cvideo.cpp:37:36: error: ‘CODEC_ID_H264’ was not declared in this scope
codecH264 = avcodec_find_decoder(CODEC_ID_H264);
^
cvideo.cpp:38:37: error: ‘CODEC_ID_MPEG4’ was not declared in this scope
codecMPEG4 = avcodec_find_decoder(CODEC_ID_MPEG4);
^
cvideo.cpp:47:33: error: ‘avcodec_alloc_frame’ was not declared in this scope
picture = avcodec_alloc_frame();
^
cvideo.cpp:53:47: error: ‘PIX_FMT_YUV420P’ was not declared in this scope
img_convert_ctx = sws_getContext(srcX, srcY,PIX_FMT_YUV420P, dstX, dstY, PIX_FMT_BGR24, SWS_BICUBIC, NULL, NULL, NULL);
^
cvideo.cpp:53:76: error: ‘PIX_FMT_BGR24’ was not declared in this scope
img_convert_ctx = sws_getContext(srcX, srcY,PIX_FMT_YUV420P, dstX, dstY, PIX_FMT_BGR24, SWS_BICUBIC, NULL, NULL, NULL);
^
cvideo.cpp:63:36: warning: ‘int avpicture_get_size(AVPixelFormat, int, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:5513) [-Wdeprecated-declarations]
bufferBGR = (uint8_t*)av_mallocz(avpicture_get_size(PIX_FMT_BGR24, dstX, dstY) * sizeof(uint8_t)10);
^
cvideo.cpp:64:3: warning: ‘int avpicture_fill(AVPicture
, const uint8_t*, AVPixelFormat, int, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:5498) [-Wdeprecated-declarations]
avpicture_fill((AVPicture )pictureRGB,bufferBGR,PIX_FMT_RGB24, dstX, dstY);
^
cvideo.cpp:64:52: error: ‘PIX_FMT_RGB24’ was not declared in this scope
avpicture_fill((AVPicture )pictureRGB,bufferBGR,PIX_FMT_RGB24, dstX, dstY);
^
cvideo.cpp: In function ‘PyObject
frame(PyObject
, PyObject*)’:
cvideo.cpp:90:38: warning: ‘int avpicture_get_size(AVPixelFormat, int, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:5513) [-Wdeprecated-declarations]
bufferBGR = (uint8_t*)av_mallocz(avpicture_get_size(PIX_FMT_BGR24, dstX, dstY) * sizeof(uint8_t)10);
^
cvideo.cpp:90:57: error: ‘PIX_FMT_BGR24’ was not declared in this scope
bufferBGR = (uint8_t
)av_mallocz(avpicture_get_size(PIX_FMT_BGR24, dstX, dstY) * sizeof(uint8_t)10);
^
cvideo.cpp:91:5: warning: ‘int avpicture_fill(AVPicture
, const uint8_t*, AVPixelFormat, int, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:5498) [-Wdeprecated-declarations]
avpicture_fill((AVPicture )pictureRGB,bufferBGR,PIX_FMT_RGB24, dstX, dstY);
^
cvideo.cpp:91:54: error: ‘PIX_FMT_RGB24’ was not declared in this scope
avpicture_fill((AVPicture )pictureRGB,bufferBGR,PIX_FMT_RGB24, dstX, dstY);
^
cvideo.cpp:94:49: error: ‘PIX_FMT_YUV420P’ was not declared in this scope
img_convert_ctx = sws_getContext(srcX, srcY,PIX_FMT_YUV420P, dstX, dstY, PIX_FMT_BGR24, SWS_BICUBIC, NULL, NULL, NULL);
^
cvideo.cpp:108:3: warning: ‘int avcodec_decode_video2(AVCodecContext
, AVFrame
, int*, const AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4857) [-Wdeprecated-declarations]
avcodec_decode_video2(cSelected, picture, &got_picture, &avpkt);
^
cvideo.cpp:108:65: warning: ‘int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4857) [-Wdeprecated-declarations]
avcodec_decode_video2(cSelected, picture, &got_picture, &avpkt);
^
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

@Drone-project
Copy link
Author

@frae83 Is it possible for you to help us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant