zoukankan      html  css  js  c++  java
  • libopencv_videoio.so, need by /lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)

    在ubuntu16上面安装了HI3536的交叉编译工具链之后,在编译自己的代码时报如下的错误:

    D_FILE_OFFSET_BITS=64   -I../include -g -rdynamic -std=c++11 -o flowdetect_demo ./main.o   -lpthread  -L../lib  -lopencv_highgui  -lopencv_imgproc  -lopencv_core  -lopencv_imgcodecs  -lopencv_video  -lopencv_videoio  -lflowdetect
    /opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/../lib/gcc/arm-hisiv300-linux-uclibcgnueabi/4.8.3/../../../../arm-hisiv300-linux-uclibcgnueabi/bin/ld: warning: ../../lib/libopencv_videoio.so, needed by ../lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
    /opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/../lib/gcc/arm-hisiv300-linux-uclibcgnueabi/4.8.3/../../../../arm-hisiv300-linux-uclibcgnueabi/bin/ld: warning: ../../lib/libopencv_imgcodecs.so, needed by ../lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
    /opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/../lib/gcc/arm-hisiv300-linux-uclibcgnueabi/4.8.3/../../../../arm-hisiv300-linux-uclibcgnueabi/bin/ld: warning: ../../lib/libopencv_imgproc.so, needed by ../lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
    /opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/../lib/gcc/arm-hisiv300-linux-uclibcgnueabi/4.8.3/../../../../arm-hisiv300-linux-uclibcgnueabi/bin/ld: warning: ../../lib/libopencv_core.so, needed by ../lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)

    截图如下:

    这是因为电脑的ubuntu16是64位的,而交叉编译工具链是32位的,解决方法是

    sudo apt install lib32z1-dev
  • 相关阅读:
    CentOS查看CPU信息、位数、多核信息
    Linux常用命令大全
    chmod命令详细用法
    tar命令的详细解释
    yum和rpm命令详解
    LeetCode 241. Different Ways to Add Parentheses
    LeetCode 139. Word Break
    LeetCode 201. Bitwise AND of Numbers Range
    LeetCode 486. Predict the Winner
    LeetCode 17. Letter Combinations of a Phone Number
  • 原文地址:https://www.cnblogs.com/cumtchw/p/13549268.html
Copyright © 2011-2022 走看看