歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> OpenCV2.0.0在DM365上的移植

OpenCV2.0.0在DM365上的移植

日期:2017/3/1 9:38:52   编辑:Linux編程

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

注意:OpenCV2.0.0 下面沒有 lib 文件夾需要自己新建個文件夾。

--------------------------------------分割線 --------------------------------------

Ubuntu Linux下安裝OpenCV2.4.1所需包 http://www.linuxidc.com/Linux/2012-08/68184.htm

Ubuntu 12.04 安裝 OpenCV2.4.2 http://www.linuxidc.com/Linux/2012-09/70158.htm

CentOS下OpenCV無法讀取視頻文件 http://www.linuxidc.com/Linux/2011-07/39295.htm

Ubuntu 12.04下安裝OpenCV 2.4.5總結 http://www.linuxidc.com/Linux/2013-06/86704.htm

Ubuntu 10.04中安裝OpenCv2.1九步曲 http://www.linuxidc.com/Linux/2010-09/28678.htm

基於QT和OpenCV的人臉識別系統 http://www.linuxidc.com/Linux/2011-11/47806.htm

--------------------------------------分割線 --------------------------------------

OpenCV的詳細介紹:請點這裡
OpenCV的下載地址:請點這裡

Copyright © Linux教程網 All Rights Reserved