ubuntu16.04 安装 openCV3.1 问题

opencv3.1安装见http://www.cnblogs.com/simplelovecs/p/5156458.html

1.  error: ‘GstEncodingProfileClass’ does not name a type

 typedef GstEncodingProfileClass GstEncodingAudioProfileClass;


发现只安装了libgstreamer1.0,未安装libgstreamer-plugins-base1.0

执行sudo apt-get install libgstreamer-plugins-base1.0-dev 即可。


2.  lib/libopencv_videoio.so.3.1.0: undefined reference to `gst_app_sink_pull_sample'

collect2: error: ld returned 1 exit status
modules/video/CMakeFiles/opencv_test_video.dir/build.make:388: recipe for target 'bin/opencv_test_video' failed
make[2]: *** [bin/opencv_test_video] Error 1
CMakeFiles/Makefile2:3097: recipe for target 'modules/video/CMakeFiles/opencv_test_video.dir/all' failed
make[1]: *** [modules/video/CMakeFiles/opencv_test_video.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

找到"OpenCVCompilerOptions.cmake"文件

add_extra_compiler_option(-Werror=non-virtual-dtor)

一行添加 # 

http://stackoverflow.com/questions/27828740/opencv-3-0-videoio-error




你可能感兴趣的:(matlab图像)