Linux odroid中的opencv安装错误

Linux odroid中的opencv安装错误,linux,opencv,odroid,Linux,Opencv,Odroid,我试图在odroid板上使用opencv和xubuntu 下载opencv2.4.8 并执行以下命令 cmake-D cmake\u BUILD\u TYPE=REALEASE\u D cmake\u INSTALL\u PREFIX=/usr/local/opencv make 接 但我在键入make时出错 [ 9%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_v4l.cpp.o [

我试图在odroid板上使用opencv和xubuntu

下载opencv2.4.8 并执行以下命令

cmake-D cmake\u BUILD\u TYPE=REALEASE\u D cmake\u INSTALL\u PREFIX=/usr/local/opencv
make

但我在键入
make
时出错

[  9%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_v4l.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_sunras.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_base.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_bmp.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_pxm.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_imageio.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_jpeg2000.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_png.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_exr.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_tiff.cpp.o
[ 11%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_jpeg.cpp.o
[ 11%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/bitstrm.cpp.o
Linking CXX shared library ../../lib/libopencv_highgui.so
/usr/bin/ld: cannot find -lopenal
/usr/bin/ld: cannot find -lxvidcore
/usr/bin/ld: cannot find -lx264
/usr/bin/ld: cannot find -lssh
/usr/bin/ld: cannot find -lmodplug
/usr/bin/ld: cannot find -lfaac
/usr/bin/ld: cannot find -lopenal
/usr/bin/ld: cannot find -lxvidcore
/usr/bin/ld: cannot find -lx264
/usr/bin/ld: cannot find -lssh
/usr/bin/ld: cannot find -lmodplug
/usr/bin/ld: cannot find -lfaac
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libopencv_highgui.so.2.4.8] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
如果我错过了一些lib,请告诉我需要什么样的lib以及我应该做什么


我通过下载这些LIB解决了这个问题

libopenal-dev
libxvidcore-dev
libx264-dev
libssh-dev
libmodplug-dev
libfaac-dev
libopenal-dev
libxvidcore-dev
libx264-dev
libssh-dev
libmodplug-dev
libfaac-dev
但这一错误似乎存在

Linking CXX shared library ../../lib/libopencv_highgui.so
/usr/local/lib/libavcodec.a(videodsp_armv5te.o): In function `ff_prefetch_arm':
/home/odroid/odroid-sources/sources/ffmpeg/libavcodec/arm/videodsp_armv5te.S:29:(.text+0x8): relocation truncated to fit: R_ARM_THM_JUMP19 against symbol `ff_prefetch_arm' defined in .text section in /usr/local/lib/libavcodec.a(videodsp_armv5te.o)
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libopencv_highgui.so.2.4.8] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2

我的U3也有同样的问题。我尝试了三件事:

  • 与您一样编译OpenCV,但有相同的错误
  • 将Ubuntu12.11机器人版与OpenCV、ROS和其他库一起使用(这些库工作正常,但在检测无线网络时遇到问题),以及
  • 像这样安装库
    sudo apt get install libopencv xxx
    。最后一种方法使用XUbuntu,但我不能使用VideoCapture,因为它显示了V4L错误

  • 如果任何人仍然面临odroid中open cv的问题,他们可以查看此链接

    您可以从该链接下载包含Ubuntu14.04机器人版ODROID-U3(ROS+OpenCV+PCL)的图像。Open CV已预装,USB摄像头工作正常

    如果您需要操作系统安装说明,可以在此处找到一些步骤

    是的,您需要获取(通过apt get或编译安装)多个LIB。这是一个“官方”的好脚本,我试着按照你的网站安装opencv。但它不起作用。我犯了一些错误。我还找不到什么样的库丢失了。请写下你得到的错误。我在blackberry 10中发现了与ffmpeg的libavcodec完全相同的错误。如果您设法解决了这个问题,请让我知道,如果我首先找到解决方案,我会这样做。我使用sudo apt get install libopencv解决了它-*它成功了。我忘了告诉您,我尝试安装了您列出的所有库(-lopenal、lxvidcore等),但出现了与highgui相关的新编译错误。Odroid论坛有一些类似这样的相关线程:是的,我尝试了方法3。它起作用了。您知道如何使用videocapture吗?videocapture尝试打开位于/dev/videoN中的USB设备,其中N=0,1,2,。。。。通常会打开/dev/video0。在连接网络摄像头时,我做了一些测试,并访问了XUbuntu associates/dev/video10。例如,检查guvcview(类似于cheese的应用程序)的输出。看起来最大的问题是VideoCapture无法处理索引10(太高)。在这个链接中,他们提供了一个shell脚本来解决这个问题。小心。我在没有internet连接的情况下执行了它,内核已损坏,因此eMMC不再响应: