opencv2.0.0在dm365上的移植

1.解压opencv2.0.0的源码

2.进入源码目录,写一个configure.sh文件内容如下:

#!/bin/bash
./configure \
	--host=arm-linux \
	--prefix=/root/Desktop/OpenCV_2.0.0_forARM \
	--libdir=/root/Desktop/OpenCV_2.0.0_forARM/lib \
	--includedir=/root/Desktop/OpenCV_2.0.0_forARM/include \
	--disable-apps \
	--enable-static \
	--enable-share \
	--without-gtk \
	--without-carbon \
	--without-quicktime \
	--without-1394libs \
	--with-v4l \
	--without-swig \
	--with-ffmpeg \
	--without-python \
	CXX=arm_v5t_le-g++ \
	CC=arm_v5t_le-gcc \
	LDFLAGS=-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/lib \
	CXXFLAGS=-O2 \
	CPPFLAGS=-I/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/include \
	AR=arm_v5t_le-ar \
	LD=arm_v5t_le-ld \
	RANLIB=arm_v5t_le-ranlib \
	STRIP=arm_v5t_le-strip

注意改成自己的配置.尤其是交叉工具链的路径...

3. ./configure.sh

4. make

5. make install



你可能感兴趣的:(工具)