Ask Your Question

Revision history [back]

How to compile OpenCV for bare metal arm?

Hi I'm trying to compile opencv for an arm cortex-m4 without any OS, I'm using opencv 2.4.6 and the following toolchain under Ubuntu:

I've tweeked the default toolchainfile that came with the source (in dir platforms/linux) into the attached file.

The cmake config seems ok (atleast there are no error messages) but I get several build errors. I've been able to work my way around some of them but now I've ended up with a long list of errors all saying "template with C linkage" and now I'm stuck. If needed I can give more information but I get the feeling that I'm doing the wrong way. I've searched the web but I can't seem to find a guide that shows how to compile opencv for arm but not using any OS...

Is there a "proper" way to configure the build (using cmake?) for a bare metal build?