- 各位兄弟姐妹,不知道大家有没有将opencv2.4.9移植到CORTEX-A9开发板上的经历,由于板子上的摄像头是CCD摄像头,不是传统意义上的usb摄像头,通过opencv里面的捕获摄像头函数不能识别到插在板子上的摄像头,我就想在opencv源码highgui下添加自己设备实现代码,cap_xxx.cpp,修改了一些其他的文件,但是编译老是通不过,真不知道怎么办了。
- mikehu:
- [ 34%] Built target pch_Generate_opencv_perf_core
Linking CXX executable ../../bin/opencv_perf_core
/usr/local/arm-cortex_a9-eabi-4.7-eglibc-2.18/bin/../lib/gcc/arm-cortex_a9-linux-gnueabi/4.7.4/../../../../arm-cortex_a9-linux-gnueabi/bin/ld.bfd: warning: libnxv4l2.so, needed by ../../lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/local/arm-cortex_a9-eabi-4.7-eglibc-2.18/bin/../lib/gcc/arm-cortex_a9-linux-gnueabi/4.7.4/../../../../arm-cortex_a9-linux-gnueabi/bin/ld.bfd: warning: libv4l2-nexell.so, needed by ../../lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/local/arm-cortex_a9-eabi-4.7-eglibc-2.18/bin/../lib/gcc/arm-cortex_a9-linux-gnueabi/4.7.4/../../../../arm-cortex_a9-linux-gnueabi/bin/ld.bfd: warning: libnxvip.so, needed by ../../lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/local/arm-cortex_a9-eabi-4.7-eglibc-2.18/bin/../lib/gcc/arm-cortex_a9-linux-gnueabi/4.7.4/../../../../arm-cortex_a9-linux-gnueabi/bin/ld.bfd: warning: libnxvmem.so, needed by ../../lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/local/arm-cortex_a9-eabi-4.7-eglibc-2.18/bin/../lib/gcc/arm-cortex_a9-linux-gnueabi/4.7.4/../../../../arm-cortex_a9-linux-gnueabi/bin/ld.bfd: warning: libnxvpu.so, needed by ../../lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
../../lib/libopencv_highgui.so: undefined reference to `v4l2_set_ctrl'
../../lib/libopencv_highgui.so: undefined reference to `v4l2_streamoff'
../../lib/libopencv_highgui.so: undefined reference to `CvCaptureCAM_VPU::retrieveFrame(int)'
../../lib/libopencv_highgui.so: undefined reference to `v4l2_set_crop'
../../lib/libopencv_highgui.so: undefined reference to `v4l2_set_format'
../../lib/libopencv_highgui.so: undefined reference to `v4l2_init'
../../lib/libopencv_highgui.so: undefined reference to `v4l2_set_crop_with_pad'
../../lib/libopencv_highgui.so: undefined reference to `v4l2_dqbuf'
../../lib/libopencv_highgui.so: undefined reference to `v4l2_exit'
../../lib/libopencv_highgui.so: undefined reference to `v4l2_reqbuf'
../../lib/libopencv_highgui.so: undefined reference to `v4l2_streamon'
../../lib/libopencv_highgui.so: undefined reference to `v4l2_qbuf'
collect2: error: 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
以上就是编译过程出现的错误,真是没办法了,不知道大家有什么建议没有(能够识别出我的摄像头并采集视频)
|