Ask Your Question
0

Compilation flags for hard float on ARM

asked 2013-02-05 03:52:43 -0600

Angeloc gravatar image

updated 2013-02-05 03:59:12 -0600

I'm tring to recompile opencv with full floating point support on ARM. Right now I modified the CMakeLists.txt setting this option:

set(EXTRA_C_FLAGS "-mfloat-abi=hard -mfpu=vfpv3")

I'm recompiling the Ubuntu 12.04 (armhf) package for Opencv (2.3.1), the compilation runs smoothly and produces correct debs to install.

I'm recompiling also my own software linking with the recopiled libraries.

The software runs, but it produces a completely broken capture. The software should run on a Beaglebone.

Anybody knows the corrects flags to recompile Opencv with hard float support?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-02-05 06:37:40 -0600

I'm working on OpenCV cross compilation for ARM (softfp and hardfp) for branch 2.4 on Github. You can use tool chains from platforms/linux folder as base.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-05 03:52:43 -0600

Seen: 1,310 times

Last updated: Feb 05 '13