OpenCV中文网站

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 安装 配置
查看: 733|回复: 1

OpenCV交叉编译时make出错

[复制链接]
发表于 2019-1-7 16:44:28 | 显示全部楼层 |阅读模式
Linking CXX executable ../../bin/opencv_perf_core
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: libavcodec.so.56, needed by ../../lib/libopencv_highgui.so.2.4.9, not found (try using -rpath or -rpath-link)
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: libavformat.so.56, needed by ../../lib/libopencv_highgui.so.2.4.9, not found (try using -rpath or -rpath-link)
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: libavutil.so.54, needed by ../../lib/libopencv_highgui.so.2.4.9, not found (try using -rpath or -rpath-link)
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: libswscale.so.3, needed by ../../lib/libopencv_highgui.so.2.4.9, not found (try using -rpath or -rpath-link)
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avcodec_decode_video2@LIBAVCODEC_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_codec_get_id@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_freep@LIBAVUTIL_54'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avformat_write_header@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_read_frame@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avpicture_get_size@LIBAVCODEC_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_free@LIBAVUTIL_54'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_write_trailer@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avio_close@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_lockmgr_register@LIBAVCODEC_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `sws_freeContext@LIBSWSCALE_3'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avformat_alloc_context@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avformat_network_init@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avcodec_open2@LIBAVCODEC_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_guess_format@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avpicture_fill@LIBAVCODEC_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avformat_find_stream_info@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_free_packet@LIBAVCODEC_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avformat_free_context@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_register_all@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_guess_codec@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avformat_new_stream@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avcodec_close@LIBAVCODEC_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_init_packet@LIBAVCODEC_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avformat_open_input@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avcodec_find_decoder@LIBAVCODEC_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_malloc@LIBAVUTIL_54'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avio_open@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avcodec_encode_video@LIBAVCODEC_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_sub_q@LIBAVUTIL_54'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avcodec_flush_buffers@LIBAVCODEC_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avcodec_find_encoder@LIBAVCODEC_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `sws_getContext@LIBSWSCALE_3'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avcodec_alloc_frame@LIBAVCODEC_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_write_frame@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_rescale_q@LIBAVUTIL_54'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_log_set_level@LIBAVUTIL_54'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `avformat_close_input@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `av_seek_frame@LIBAVFORMAT_56'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `sws_scale@LIBSWSCALE_3'
../../lib/libopencv_highgui.so.2.4.9: undefined reference to `sws_getCachedContext@LIBSWSCALE_3'
collect2: ld returned 1 exit status
make[2]: *** [bin/opencv_perf_core] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
make: *** [all] Error 2


回复

使用道具 举报

 楼主| 发表于 2019-1-8 09:36:45 | 显示全部楼层
自己顶一下   
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|OpenCV中文网站  

GMT+8, 2019-5-22 23:05 , Processed in 0.024894 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表