make error in OpenCV installation on ubuntu (ffmpeg CODEC_ID_XXXX was not declared in scope) -


i trying install opencv following this tutorial. through cmake.(the configuration given @ end.) make shows error :make[2]: ***[modules/highgui/cmakefiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o] error 1 1 link pointed out reason different version of opencv , ffmpeg, found piece of code in cap_ffmpeg_impl.hpp appears handling it.

#if libavcodec_build >= calc_ffmpeg_version(54,25,0) #  define cv_codec_id avcodecid #  define cv_codec(name) av_##name #else #  define cv_codec_id codecid #  define cv_codec(name) name #endif 

not sure if ok commented.

also, try installing ffmpeg seperately, not sure how dependencies handled in installation around libav.

would thankful in solving problem, tips/links opencv installation in general.

make configuration:

-- general configuration opencv 2.4.11 ==================================== version control:               unknown --  --   platform: --     host:                        linux 3.16.0-32-generic i686 --     cmake:                       2.8.12.2 --     cmake generator:             unix makefiles --     cmake build tool:            /usr/bin/make --     configuration:               release --  --   c/c++: --     built dynamic libs?:      yes --     c++ compiler:                /usr/bin/c++  (ver 4.9.1) --     c++ flags (release):         -fsigned-char -w -wall -werror=return-type -werror=address -werror=sequence-point -wformat -werror=format-security -wmissing-declarations -wundef -winit-self -wpointer-arith -wshadow -wsign-promo -wno-narrowing -wno-delete-non-virtual-dtor -fdiagnostics-show-option -pthread -march=i686 -fomit-frame-pointer -msse -msse2 -msse3 -mfpmath=sse -ffunction-sections -o2 -dndebug  -dndebug --     c++ flags (debug):           -fsigned-char -w -wall -werror=return-type -werror=address -werror=sequence-point -wformat -werror=format-security -wmissing-declarations -wundef -winit-self -wpointer-arith -wshadow -wsign-promo -wno-narrowing -wno-delete-non-virtual-dtor -fdiagnostics-show-option -pthread -march=i686 -fomit-frame-pointer -msse -msse2 -msse3 -mfpmath=sse -ffunction-sections -g  -o0 -ddebug -d_debug --     c compiler:                  /usr/bin/cc --     c flags (release):           -fsigned-char -w -wall -werror=return-type -werror=address -werror=sequence-point -wformat -werror=format-security -wmissing-declarations -wmissing-prototypes -wstrict-prototypes -wundef -winit-self -wpointer-arith -wshadow -wno-narrowing -fdiagnostics-show-option -pthread -march=i686 -fomit-frame-pointer -msse -msse2 -msse3 -mfpmath=sse -ffunction-sections -o2 -dndebug  -dndebug --     c flags (debug):             -fsigned-char -w -wall -werror=return-type -werror=address -werror=sequence-point -wformat -werror=format-security -wmissing-declarations -wmissing-prototypes -wstrict-prototypes -wundef -winit-self -wpointer-arith -wshadow -wno-narrowing -fdiagnostics-show-option -pthread -march=i686 -fomit-frame-pointer -msse -msse2 -msse3 -mfpmath=sse -ffunction-sections -g  -o0 -ddebug -d_debug --     linker flags (release):       --     linker flags (debug):         --     precompiled headers:         yes --  --   opencv modules: --     built:                 core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib java python stitching superres ts videostab --     disabled:                    world --     disabled dependency:      - --     unavailable:                 androidcamera dynamicuda viz --  --   gui:  --     qt 5.x:                      yes (ver 5.3.0) --     qt opengl support:           yes (qt5::opengl 5.3.0) --     opengl support:              yes (/usr/lib/i386-linux-gnu/libglu.so /usr/lib/i386-linux-gnu/libgl.so /usr/lib/i386-linux-gnu/libsm.so /usr/lib/i386-linux-gnu/libice.so /usr/lib/i386-linux-gnu/libx11.so /usr/lib/i386-linux-gnu/libxext.so) --     vtk support:                 no --  --   media i/o:  --     zlib:                        /usr/lib/i386-linux-gnu/libz.so (ver 1.2.8) --     jpeg:                        /usr/lib/i386-linux-gnu/libjpeg.so (ver ) --     png:                         /usr/lib/i386-linux-gnu/libpng.so (ver 1.2.51) --     tiff:                        /usr/lib/i386-linux-gnu/libtiff.so (ver 42 - 4.0.3) --     jpeg 2000:                   /usr/lib/i386-linux-gnu/libjasper.so (ver 1.900.1) --     openexr:                     /usr/lib/i386-linux-gnu/libimath.so /usr/lib/i386-linux-gnu/libilmimf.so /usr/lib/i386-linux-gnu/libiex.so /usr/lib/i386-linux-gnu/libhalf.so /usr/lib/i386-linux-gnu/libilmthread.so (ver 1.6.1) --  --   video i/o: --     dc1394 1.x:                  no --     dc1394 2.x:                  yes (ver 2.2.1) --     ffmpeg:                      yes --       codec:                     yes (ver 56.1.0) --       format:                    yes (ver 56.1.0) --       util:                      yes (ver 54.3.0) --       swscale:                   yes (ver 3.0.0) --       gentoo-style:              yes --     gstreamer:                   no --     openni:                      no --     openni primesensor modules:  no --     pvapi:                       no --     gigevisionsdk:               no --     unicap:                      no --     unicap ucil:                 no --     v4l/v4l2:                    using libv4l1 (ver 1.2.1) / libv4l2 (ver 1.2.1) --     ximea:                       no --     xine:                        no --  --   other third-party libraries: --     use ipp:                     no --     use eigen:                   yes (ver 3.2.1) --     use tbb:                     yes (ver 4.2 interface 7000) --     use openmp:                  no --     use gcd                      no --     use concurrency              no --     use c=:                      no --     use cuda:                    no --     use opencl:                  yes --  --   opencl: --     version:                     dynamic --     include path:                /home/keeda/downloads/data_analysis/opencv-2.4.11/3rdparty/include/opencl/1.2 --     use amd fft:                 no --     use amd blas:                no --  --   python: --     interpreter:                 /usr/bin/python2 (ver 2.7.8) --     libraries:                   /usr/lib/i386-linux-gnu/libpython2.7.so (ver 2.7.8) --     numpy:                       /usr/local/lib/python2.7/dist-packages/numpy/core/include (ver 1.9.1) --     packages path:               lib/python2.7/dist-packages --  --   java: --     ant:                         /usr/bin/ant (ver 1.9.4) --     jni:                         /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include --     java tests:                  yes --  --   documentation: --     build documentation:         yes --     sphinx:                      /usr/bin/sphinx-build (ver 1.2.2) --     pdflatex compiler:           /usr/bin/pdflatex --     doxygen:                     no --  --   tests , samples: --     tests:                       yes --     performance tests:           yes --     c/c++ examples:              yes --  --   install path:                  /usr/local --  --   cvconfig.h in:              /home/keeda/downloads/data_analysis/opencv-2.4.11/build -- ----------------------------------------------------------------- 


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -