Git Product home page Git Product logo

heidi's People

Contributors

m3d avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heidi's Issues

cvideo Compiling Issue

Hello. I am having a problem with compiling cvideo. I am using Ubuntu 14.04.
I downloaded zip (https://github.com/robotika/heidi), moved to cvideo directory, and tried to build cvideo by "python setup.py build".
However, I got the error message below. Could you help me? Thank you!

dkkim930122@dkkim930122:~/heidi-master/cvideo$ python setup.py build
running build
running build_ext
building 'cvideo' extension
creating build
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -D__STDC_CONSTANT_MACROS -Ic:\Python27\Lib\site-packages\numpy\core\include -Im:\git\cvdrone\src\3rdparty\ffmpeg\include -I/usr/include/python2.7 -c cvideo.cpp -o build/temp.linux-x86_64-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/include/python2.7/numpy/ndarraytypes.h:1761:0,
                 from /usr/include/python2.7/numpy/ndarrayobject.h:17,
                 from /usr/include/python2.7/numpy/arrayobject.h:4,
                 from cvideo.cpp:2:
/usr/include/python2.7/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:101:102: error: ‘av_mallocz’ 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: In function ‘PyObject* frame(PyObject*, PyObject*)’:
cvideo.cpp:127:25: error: ‘av_freep’ was not declared in this scope
     av_freep( bufferBGR );
                         ^
cvideo.cpp:128:104: error: ‘av_mallocz’ 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: At global scope:
cvideo.cpp:17:18: warning: ‘PyObject* green(PyObject*, PyObject*)’ defined but not used [-Wunused-function]
 static PyObject *green(PyObject *self, PyObject *args)
                  ^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

video compilation issue

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

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.