#如果不是搭建好了集群,绝对不用这么古老的版本,血泪史啊
1.编译ffmpeg + opencv报错
/usr/bin/ld: warning: libswresample.so.1, needed by /usr/local/ffmpeg/lib/libavcodec.so, not found (try using -rpath or -rpath-link)
/usr/local/ffmpeg/lib/libavcodec.so: undefined reference to swr_init@LIBSWRESAMPLE_1' /usr/local/ffmpeg/lib/libavcodec.so: undefined reference to
swr_close@LIBSWRESAMPLE_1’
/usr/local/ffmpeg/lib/libavcodec.so: undefined reference to swr_convert@LIBSWRESAMPLE_1' /usr/local/ffmpeg/lib/libavcodec.so: undefined reference to
swr_is_initialized@LIBSWRESAMPLE_1’
/usr/local/ffmpeg/lib/libavcodec.so: undefined reference to swr_free@LIBSWRESAMPLE_1' /usr/local/ffmpeg/lib/libavcodec.so: undefined reference to
swr_alloc@LIBSWRESAMPLE_1’
解决方案:
将ffmpeg安装目录下的三个文件
libswresample.so
libswresample.so.3
libswresample.so.3.1.100
移到opencv构建目中,就是你执行cmake …的位置
2.openCV暂时遇到的报错
没有生成jar包
cmake的时候检查的时候,检测ant 必须是 yes
jdk那里 必须是yes
3.运行opencv程序,一直打不开视频,一直再
camera.open(url) 阻塞 原因:安装cmake的时候,ffmpeg必须是yes
编译OpenCV-3.4.7报错centos6.5 java
最新推荐文章于 2023-07-08 10:26:28 发布