问题描述
我需要为 ARM 9 处理器交叉编译 opencv.我有处理器的工具链,但不知道如何交叉编译.有没有请告诉我为arm板交叉编译的过程.
i need to cross compile opencv for ARM 9 processor. I have the tool chain for the processor but don't know how to cross compile. Can some on please tell me the procedure of cross compiling it for the arm board.
先谢谢大家
推荐答案
看看这个 参考来解释交叉编译.如果要编译的源代码支持 GNU 构建系统,则应该像键入 ./configure --host=arm-none-linux-gnueabi
而不是 ./configure
一样简单>,但所有类型的问题都可能发生(例如,构建系统尝试在构建过程中运行编译代码,这是不可能的,因为您正在 X86(我假设)机器上构建 ARM 代码).
Look at this reference for a explanation of cross compiling. If the source to be compiled supports the GNU build system it should be as easy as typing ./configure --host=arm-none-linux-gnueabi
instead of ./configure
, but all types of problems can occur (e.g. that the build system tries to run compiled code during the build process which is not possible since you are building ARM code on a X86 (I assume) machine).
也就是说我查看了 OpenEmbedded 并且它有大量的依赖项(你需要先构建的东西);例如蟒蛇,swig,油嘴滑舌(1).所以我会说你有一些工作要做;)
That said I looked at the recipe for opencv in OpenEmbedded and it has an impressive number of dependencies (stuff you need to build first); e.g. python, swig, glib (1). So I would say that you have some work ahead of you;)
(1) :这些依赖项是 OpenEmbedded 提供的依赖项,您可能会使用比指定的更少的依赖项.
(1) : These dependencies are those given by OpenEmbedded and you might be able to get away with fewer than those specified.
这篇关于ARM 9处理器的opencv交叉编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!