编译用于手臂架构的opencv [英] compiling opencv for arm architecture

查看:465
本文介绍了编译用于手臂架构的opencv的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在/home/myself/filesys/bin..etc//
上设置了目标fs
GCC编译:
主机$ arm_v5t_le-gcc hello.c -o hello

运行:
目标$ cd/opt/hello
目标$./hello

我已经在主机ubuntu机器上安装了opencv2.3,现在我希望将opencv移植到DM6446,所以我按照

1解压缩opencv2.3 tarball
2 sudo cmake OpenCV-2.3.1
3 sudo make ARCH =手臂CROSS_COMPILE = arm_v5t_le-

但是当我从bin运行示例测试时,它在为ARM制作的x86机器上运行,我认为我没有遵循正确的步骤来制作opencv

为使ARM体系结构成为opencv,我需要做些什么.在交叉编译中应遵循的步骤.

i have set up target fs on /home/myself/filesys/bin..etc//

GCC compile:
host $ arm_v5t_le-gcc hello.c -o hello

Run:
target $ cd /opt/hello
target $./hello

i have installed opencv2.3 on host ubuntu machine now i want opencv to be ported to DM6446 so i follow

1 uncompress opencv2.3 tarball
2 sudo cmake OpenCV-2.3.1
3 sudo make ARCH=arm CROSS_COMPILE=arm_v5t_le-

but when i run the sample test from bin it runs on x86 machine which was made for ARM i think i am not following the correct procedure to make opencv

is there anything i have to do to make opencv for ARM architecture what are the steps to follow in cross compiling.

推荐答案

arm_v5t_le-gcc hello.c -o hello

运行:
目标
arm_v5t_le-gcc hello.c -o hello

Run:
target


cd/opt/hello
target
cd /opt/hello
target


./hello

我已经在主机ubuntu机器上安装了opencv2.3,现在我希望将opencv移植到DM6446,所以我按照

1解压缩opencv2.3 tarball
2 sudo cmake OpenCV-2.3.1
3 sudo make ARCH =手臂CROSS_COMPILE = arm_v5t_le-

但是当我从bin运行示例测试时,它在为ARM制作的x86机器上运行,我认为我没有遵循正确的步骤来制作opencv

为使ARM体系结构成为opencv,我需要做些什么,交叉编译要遵循哪些步骤.
./hello

i have installed opencv2.3 on host ubuntu machine now i want opencv to be ported to DM6446 so i follow

1 uncompress opencv2.3 tarball
2 sudo cmake OpenCV-2.3.1
3 sudo make ARCH=arm CROSS_COMPILE=arm_v5t_le-

but when i run the sample test from bin it runs on x86 machine which was made for ARM i think i am not following the correct procedure to make opencv

is there anything i have to do to make opencv for ARM architecture what are the steps to follow in cross compiling.


这篇关于编译用于手臂架构的opencv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆