Opencv2.3.1移植到am335x-y

1、(更新2017/3/4)编译libpng库,原来一直出错(configure --prefix  --host  --enable-shared -- enable-static ,在修改makefile文件),但库连接是一直有错,

      今天修改为:configure --prefix CC=arm-linux-gnueabihf-gcc ; make;make install;成功

2、编译完后安装完后的include中的文件拷到~workdirToolchaingcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linuxarm-linux-gnueabihflibcusrinclude下

 可以利用以下方式查看编译指示

#ifdef HAVE_CAMV4L
#include <linux/videodev.h>
#warning "1211"
#endif
#ifdef HAVE_CAMV4L2
#include <linux/videodev2.h>
#endif

1、去掉了with_ffmpeg /with_gtk / with_v4l ,采用开发板自带的交叉环境arm-linux-gnueabihf-gcc

     编译器路径和root路径设置采用全路径形式workdirToolchaingcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux

     编译并安装成功。

参考open2.3.1在arm端的移植http://blog.csdn.net/yr119111/article/details/7732336

2、去掉with_cuda , 编译并安装成功。安装到/opt/opencv_arm目录

原文地址:https://www.cnblogs.com/xihong2014/p/6496717.html