下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
本文格式为Word版,下载可任意编辑——opencv移植到arm详细过程
Opencv-2.1.0的arm移植
我的环境
Host:Ubuntu14.04
Target:tq2410withLinux2.6.30.4
CrossingCompiler:arm-linux-gcc4.3.2
一交织编译链的安装
1#cd/usr/local
解压,即可得到arm-none-linux-gnueabi目录
#tarxzvfarm-none-linux-gnueabi-4.3.2.tgz-C./
2编辑/etc/bash.bashrc文件添加把编译器路径到环境变量PATH中,只要在这个文件中添加下面这2个语句即可:
PATH=/usr/local/arm/4.3.2/bin:$PATH
exportPATH
3编辑完毕后使用source/etc/bash.bashrc命令执行以下这个文件,让设置生效,之后再输入:
#arm-none-linux-gnueabi-gcc-v
假使输出下面的信息则表面设置成功:
Usingbuilt-inspecs.
Target:arm-none-linux-gnueabi
Configured
--build=i686-pc-linux-gnu
--with-gnu-ldwith:/scratch/julian/lite-respin/linux/src/gcc-4.3/configure--host=i686-pc-linux-gnu--target=arm-none-linux-gnueabi--enable-symvers=gnu--enable-threads--disable-libmudflap--disable-libssp--disable-libstdcxx-pch--with-gnu-as--enable-languages=c,c++--enable-shared
依照下图方式选择源码目录和
build目录然后点击
Configure按钮,保持generator为UnixMakefiles,选择Specifyoptionsforcross-compiling,点击Next
依照如下方式配置:
注:/usr/local/arm/4.3.2为交织编译工具arm-linux-g++/gcc的所在包含文件夹(在bin文件夹里面)
注:TargetSystem选项里Operation我认为是arm板子上的操作系统,对应我的Version
为2.6.30.4,上图中没有更改
然后点击“Finish〞按钮;
然后点击Generate按钮生成Makefile;
4.在/usr/local/opencv/opencv-arm目录下$sudomake
(1)83%报错:
LinkingCXXexecutable../../bin/opencv_createsamples
../../lib/libopencv_core.so:undefinedreferenceto`clock_gettime'
../../lib/libopencv_highgui.so:undefinedreferenceto`_TIFFerrorHandler'
../../lib/libopencv_highgui.so:undefinedreferenceto`_TIFFrealloc'
../../lib/libopencv_core.so:undefinedreferenceto`pthread_key_create
解决方法:修改CMakeCache.txt,CMAKE_EXE_LINKER_FLAGS原来为空,加上-lpthread-lrt,重新编译
(3)又报错:
LinkingCXXexecutable../../bin/opencv_createsamples
此时又出错:
../../lib/libopencv_highgui.so:undefinedreferenceto`_TIFFerrorHandler'
../../lib/libopencv_highgui.so:undefinedreferenceto`_TIFFrealloc'
../../lib/libopencv_highgui.so:undefinedreferenceto`_TIFFmalloc'
../../lib/libopencv_highgui.so:undefinedreferenceto`_TIFFmemcpy'
../../lib/libopencv_highgui.so:undefinedreferenceto`TIFFOpen'
../../lib/libopencv_highgui.so:undefinedreferenceto`_TIFFfree'
首先得确保摄像头在ARM板上的使用是正常的,具体状况请查阅大神的博文:
《摄像头在liunx上的QT显示和OK6410ARM开发板上的使用》
参考文档:
1.Opencv-2.0.0的ARM移植和使用(Ubunt
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 安卓单词app课程设计
- 2024-2030年中国羊奶市场消费规模趋势与营销推广模式研究研究报告
- 2024-2030年中国维丁钙片行业市场深度调研及发展趋势与投资前景研究报告
- 2024-2030年中国纺纱纸锥行业应用潜力与投资盈利预测研究报告
- 2024-2030年中国红茶菌市场经营风险与销售渠道现状分析报告
- 2024-2030年中国红茶行业市场发展分析及竞争策略与投资前景研究报告
- 平台推广协议合同模板
- 港澳地区旅游合同模板
- 房屋出租商户合同模板
- 买房 不给合同模板
- 水箱液位测量系统方案设计报告
- 中兴50G PON 技术白皮书
- 《社会保障法 》课件
- 冷食加工流程图
- 考试之反思-试卷整理分析表
- 民国年号干支纪年对照表
- 中小学教师评课评价量表
- 2023年四川省绵阳市中考英语试卷真题(含答案)
- 西门子S7-1500系列PLC技术及应用 完整全套课件 第1-8章 可编程序控制器概述- 系统调试与诊断
- 剑桥少儿英语第一集听力对话文本
- 全国高中物理教师信息化教学设计和说课大赛一等奖《牛顿第三定律》教学课件
评论
0/150
提交评论