当前位置:  技术问答>linux和unix

请教,库文件缺失问题!

    来源: 互联网  发布时间:2017-04-06

    本文导语:  UBUNTU12.04 请教到底是那个目录下缺少来文件,谢谢! 交叉编译环境: 命令:arm-linux-gcc -lpthread -lrt  cam2.cpp -o cam `pkg-config --libs --cflags opencv`  错误: /mydrive/arm-linux-gcc/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnu...

UBUNTU12.04 请教到底是那个目录下缺少来文件,谢谢!
交叉编译环境:

命令:arm-linux-gcc -lpthread -lrt  cam2.cpp -o cam `pkg-config --libs --cflags opencv` 

错误:

/mydrive/arm-linux-gcc/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_core.so, needed by /mydrive/OpencvInstall/lib/libopencv_calib3d.so, not found (try using -rpath or -rpath-link)
/mydrive/arm-linux-gcc/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_imgproc.so, needed by /mydrive/OpencvInstall/lib/libopencv_calib3d.so, not found (try using -rpath or -rpath-link)
/mydrive/arm-linux-gcc/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_flann.so, needed by /mydrive/OpencvInstall/lib/libopencv_calib3d.so, not found (try using -rpath or -rpath-link)
/mydrive/arm-linux-gcc/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_highgui.so, needed by /mydrive/OpencvInstall/lib/libopencv_calib3d.so, not found (try using -rpath or -rpath-link)
/mydrive/arm-linux-gcc/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_features2d.so, needed by /mydrive/OpencvInstall/lib/libopencv_calib3d.so, not found (try using -rpath or -rpath-link)
/mydrive/arm-linux-gcc/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_calib3d.so, needed by /mydrive/OpencvInstall/lib/libopencv_contrib.so, not found (try using -rpath or -rpath-link)
/mydrive/arm-linux-gcc/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_ml.so, needed by /mydrive/OpencvInstall/lib/libopencv_contrib.so, not found (try using -rpath or -rpath-link)
/mydrive/arm-linux-gcc/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_video.so, needed by /mydrive/OpencvInstall/lib/libopencv_contrib.so, not found (try using -rpath or -rpath-link)
/mydrive/arm-linux-gcc/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_objdetect.so, needed by /mydrive/OpencvInstall/lib/libopencv_contrib.so, not found (try using -rpath or -rpath-link)
/mydrive/arm-linux-gcc/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_nonfree.so, needed by /mydrive/OpencvInstall/lib/libopencv_gpu.so, not found (try using -rpath or -rpath-link)
/mydrive/arm-linux-gcc/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_photo.so, needed by /mydrive/OpencvInstall/lib/libopencv_gpu.so, not found (try using -rpath or -rpath-link)
/mydrive/arm-linux-gcc/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_legacy.so, needed by /mydrive/OpencvInstall/lib/libopencv_gpu.so, not found (try using -rpath or -rpath-link)
/mydrive/arm-linux-gcc/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_gpu.so, needed by /mydrive/OpencvInstall/lib/libopencv_stitching.so, not found (try using -rpath or -rpath-link)
qust@qust-Rev-1-0:~$ 

|
你这是opencv的库一个都没有?     编译的时候又加?

pkg-config --libs --cflags opencv 这个的输出是啥?   是编译需要的么?  这里提示的就是这个命令需要的那些应该都没找到...   你手动看下都在哪儿呢  自己加个-L目录 试试

    
 
 
 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。














站内导航:


特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

©2012-2021,