[Jderobot-dev] Opencv
franciscomiguel.rivas en urjc.es
franciscomiguel.rivas en urjc.es
Mie Feb 20 10:19:56 CET 2013
Buenas,
a mi en el mac que pasa lo mismo, solución-ñapa:
busca el fichero libavutil/mathematics.h y añade el include: #include
<ffmpeg/avcodec.h> antes de <ffmpeg/avcodec.h>, no justo encima, sino
fuera del ifndef en el que se encuentra. Fuente [1]
un saludo,
Fran.
[1]
http://pi-virtualworld.blogspot.com.es/2013/02/opencv-231-build-for-ubuntu-1204.html
"jesus checa rodriguez" <j_checa_rodriguez en hotmail.com> escribió:
> estoy volviendo a instalar todos los programas y cuando intento
> instalar el Opencv me da error y no se cual es.
> ¿alguien me puede ayudar?
> gracias.
>
> ---------------------------------------------------------------------------------------------------
> root en arck-VB:~/Descargas/OpenCV-2.3.1/build# cmake ..
> -- Extracting svn version, please wait...
> -- SVNVERSION: svn:exportado
> -- Detected version of GNU GCC: 46 (406)
> -- Could NOT find Jasper (missing: JASPER_LIBRARY JASPER_INCLUDE_DIR)
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> ImportError: No module named numpy.distutils
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> ImportError: No module named sphinx
> CUDA_TOOLKIT_ROOT_DIR not found or specified
> -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR
> CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required
> is at least version "4.0")
> -- Parsing 'cvconfig.h.cmake'
> --
> -- General configuration for opencv 2.3.1
> =====================================
> --
> -- Built as dynamic libs?: YES
> -- Compiler: /usr/bin/c++
> -- C++ flags (Release): -Wall -pthread -march=i686
> -ffunction-sections -O3 -DNDEBUG -fomit-frame-pointer -msse -msse2
> -mfpmath=387 -DNDEBUG
> -- C++ flags (Debug): -Wall -pthread -march=i686
> -ffunction-sections -g -O0 -DDEBUG -D_DEBUG -ggdb3
> -- Linker flags (Release):
> -- Linker flags (Debug):
> --
> -- GUI:
> -- GTK+ 2.x: YES
> -- GThread: YES
> --
> -- Media I/O:
> -- ZLib: YES
> -- JPEG: TRUE
> -- PNG: TRUE
> -- TIFF: TRUE
> -- JPEG 2000: build
> -- OpenEXR: NO
> -- OpenNI: NO
> -- OpenNI PrimeSensor Modules: NO
> -- XIMEA: NO
> --
> -- Video I/O:
> -- DC1394 1.x: NO
> -- DC1394 2.x: YES
> -- FFMPEG: YES
> -- codec: YES
> -- format: YES
> -- util: YES
> -- swscale: YES
> -- gentoo-style: YES
> -- GStreamer: YES
> -- UniCap: NO
> -- PvAPI: NO
> -- V4L/V4L2: Using libv4l
> -- Xine: NO
> --
> -- Other third-party libraries:
> -- Use IPP: NO
> -- Use TBB: NO
> -- Use ThreadingFramework: NO
> -- Use Cuda: NO
> -- Use Eigen: NO
> --
> -- Interfaces:
> -- Python: YES
> -- Python interpreter: /usr/bin/python -B (ver 2.7)
> -- Python numpy: NO (Python wrappers will not be generated)
> -- Java: NO
> --
> -- Documentation:
> -- Sphinx: NO
> -- PdfLaTeX compiler: NO
> -- Build Documentation: NO
> --
> -- Tests and samples:
> -- Tests: YES
> -- Examples: NO
> --
> -- Install path: /usr/local
> --
> -- cvconfig.h is in: /home/arck/Descargas/OpenCV-2.3.1/build
> -- -----------------------------------------------------------------
> --
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/arck/Descargas/OpenCV-2.3.1/build
> root en arck-VB:~/Descargas/OpenCV-2.3.1/build# make
> [ 4%] Built target opencv_core
> [ 14%] Built target opencv_imgproc
> [ 15%] Built target opencv_flann
> [ 23%] Built target libjasper
> [ 23%] Building CXX object
> modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.o
> In file included from
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg.cpp:45:0:
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:
> En la función miembro 'void CvCapture_FFMPEG::close()':
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:451:9:
> aviso: 'void av_close_input_file(AVFormatContext*)' es obsoleto
> (declarado en /usr/include/libavformat/avformat.h:1580)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:451:31:
> aviso: 'void av_close_input_file(AVFormatContext*)' es obsoleto
> (declarado en /usr/include/libavformat/avformat.h:1580)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:
> En la función miembro 'bool CvCapture_FFMPEG::reopen()':
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:483:5:
> aviso: 'void av_close_input_file(AVFormatContext*)' es obsoleto
> (declarado en /usr/include/libavformat/avformat.h:1580)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:483:27:
> aviso: 'void av_close_input_file(AVFormatContext*)' es obsoleto
> (declarado en /usr/include/libavformat/avformat.h:1580)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:486:5:
> aviso: 'int av_open_input_file(AVFormatContext**, const char*,
> AVInputFormat*, int, AVFormatParameters*)' es obsoleto (declarado en
> /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:486:52:
> aviso: 'int av_open_input_file(AVFormatContext**, const char*,
> AVInputFormat*, int, AVFormatParameters*)' es obsoleto (declarado en
> /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:487:5:
> aviso: 'int av_find_stream_info(AVFormatContext*)' es obsoleto
> (declarado en /usr/include/libavformat/avformat.h:1412)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:487:27:
> aviso: 'int av_find_stream_info(AVFormatContext*)' es obsoleto
> (declarado en /usr/include/libavformat/avformat.h:1412)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:494:5:
> aviso: 'int avcodec_thread_init(AVCodecContext*, int)' es obsoleto
> (declarado en /usr/include/libavcodec/avcodec.h:3997)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:494:50:
> aviso: 'int avcodec_thread_init(AVCodecContext*, int)' es obsoleto
> (declarado en /usr/include/libavcodec/avcodec.h:3997)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:497:5:
> aviso: 'int avcodec_open(AVCodecContext*, AVCodec*)' es obsoleto
> (declarado en /usr/include/libavcodec/avcodec.h:4035)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:497:28:
> aviso: 'int avcodec_open(AVCodecContext*, AVCodec*)' es obsoleto
> (declarado en /usr/include/libavcodec/avcodec.h:4035)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:
> En la función miembro 'bool CvCapture_FFMPEG::open(const char*)':
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:524:15:
> aviso: 'int av_open_input_file(AVFormatContext**, const char*,
> AVInputFormat*, int, AVFormatParameters*)' es obsoleto (declarado en
> /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:524:63:
> aviso: 'int av_open_input_file(AVFormatContext**, const char*,
> AVInputFormat*, int, AVFormatParameters*)' es obsoleto (declarado en
> /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:529:11:
> aviso: 'int av_find_stream_info(AVFormatContext*)' es obsoleto
> (declarado en /usr/include/libavformat/avformat.h:1412)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:529:33:
> aviso: 'int av_find_stream_info(AVFormatContext*)' es obsoleto
> (declarado en /usr/include/libavformat/avformat.h:1412)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:541:9:
> aviso: 'int avcodec_thread_init(AVCodecContext*, int)' es obsoleto
> (declarado en /usr/include/libavcodec/avcodec.h:3997)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:541:54:
> aviso: 'int avcodec_thread_init(AVCodecContext*, int)' es obsoleto
> (declarado en /usr/include/libavcodec/avcodec.h:3997)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:550:13:
> aviso: 'int avcodec_open(AVCodecContext*, AVCodec*)' es obsoleto
> (declarado en /usr/include/libavcodec/avcodec.h:4035)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:550:36:
> aviso: 'int avcodec_open(AVCodecContext*, AVCodec*)' es obsoleto
> (declarado en /usr/include/libavcodec/avcodec.h:4035)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:
> En la función miembro 'double CvCapture_FFMPEG::getProperty(int)':
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:716:13:
> aviso: se define la variable 'timestamp' pero no se usa
> [-Wunused-but-set-variable]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:
> En la función 'AVStream* icv_add_video_stream_FFMPEG(AVFormatContext*,
> CodecID, int, int, int, double, int)':
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:999:7:
> aviso: 'AVStream* av_new_stream(AVFormatContext*, int)' es obsoleto
> (declarado en /usr/include/libavformat/avformat.h:1604)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:999:26:
> aviso: 'AVStream* av_new_stream(AVFormatContext*, int)' es obsoleto
> (declarado en /usr/include/libavformat/avformat.h:1604)
> [-Wdeprecated-declarations]
> In file included from
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg.cpp:45:0:
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:
> En la función 'int icv_av_write_frame_FFMPEG(AVFormatContext*,
> AVStream*, uint8_t*, uint32_t, AVFrame*)':
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1128:90:
> error: 'av_rescale_q' no se declaró en este ámbito
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:
> En la función miembro 'void CvVideoWriter_FFMPEG::close()':
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1298:3:
> aviso: 'int url_fclose(AVIOContext*)' es obsoleto (declarado en
> /usr/include/libavformat/avio.h:317) [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1298:20:
> aviso: 'int url_fclose(AVIOContext*)' es obsoleto (declarado en
> /usr/include/libavformat/avio.h:317) [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:
> En la función miembro 'bool CvVideoWriter_FFMPEG::open(const char*,
> int, double, int, int, bool)':
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1411:9:
> aviso: 'int av_set_parameters(AVFormatContext*, AVFormatParameters*)'
> es obsoleto (declarado en /usr/include/libavformat/avformat.h:1640)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1411:35:
> aviso: 'int av_set_parameters(AVFormatContext*, AVFormatParameters*)'
> es obsoleto (declarado en /usr/include/libavformat/avformat.h:1640)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1415:5:
> aviso: 'void dump_format(AVFormatContext*, int, const char*, int)' es
> obsoleto (declarado en /usr/include/libavformat/avformat.h:1902)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1415:35:
> aviso: 'void dump_format(AVFormatContext*, int, const char*, int)' es
> obsoleto (declarado en /usr/include/libavformat/avformat.h:1902)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1442:15:
> aviso: 'int avcodec_open(AVCodecContext*, AVCodec*)' es obsoleto
> (declarado en /usr/include/libavcodec/avcodec.h:4035)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1442:36:
> aviso: 'int avcodec_open(AVCodecContext*, AVCodec*)' es obsoleto
> (declarado en /usr/include/libavcodec/avcodec.h:4035)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1479:13:
> aviso: 'int url_fopen(AVIOContext**, const char*, int)' es obsoleto
> (declarado en /usr/include/libavformat/avio.h:316)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1479:52:
> aviso: 'int url_fopen(AVIOContext**, const char*, int)' es obsoleto
> (declarado en /usr/include/libavformat/avio.h:316)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1485:5:
> aviso: 'int av_write_header(AVFormatContext*)' es obsoleto (declarado
> en /usr/include/libavformat/avformat.h:1676)
> [-Wdeprecated-declarations]
> /home/arck/Descargas/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1485:25:
> aviso: 'int av_write_header(AVFormatContext*)' es obsoleto (declarado
> en /usr/include/libavformat/avformat.h:1676)
> [-Wdeprecated-declarations]
> make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.o]
> Error 1
> make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
> make: *** [all] Error 2
> root en arck-VB:~/Descargas/OpenCV-2.3.1/build#
> _______________________________________________
> Jde-developers mailing list
> Jde-developers en gsyc.es
> http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers
>
------------------------------------------------------------------
Laboratorio de Análisis del Movimiento, Biomecánica, Ergonomía y
Control Motor (LAMBECOM).
Departamento de Fisioterapia, Terapia Ocupacional, Rehabilitación y
Medicina Física.
Universidad Rey Juan Carlos (URJC).
More information about the Jde-developers
mailing list