How to compile OpenCV for bare metal arm?

asked 2013-10-18 03:01:24 -0600

Anders gravatar image

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: https://launchpad.net/gcc-arm-embedded

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?

edit retag flag offensive close merge delete

Comments

Hello, I am interested too, but I cannot find that "proper" way. As it has passed some time since you posted, did you happen to find something ?

SpCr gravatar imageSpCr ( 2014-07-09 05:17:07 -0600 )edit