-msoft-float for beagleboard
Is it really need to use g++ flag
-msoft-float
for compile OpenCV on beagleboard (beagleboard xm)?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Is it really need to use g++ flag
-msoft-float
for compile OpenCV on beagleboard (beagleboard xm)?
EDIT I have checked again and it turns out that the BeagleBoard-xM has a Super-scalar ARM Cortex TM -A8 with floating point capabilities. So the -msoft-float flag should be unnecessary.
Old answer, Incorrect for BeagleBoard-xM, right for other ARM processors.
This flag tells gcc to use a (very slow) software implementation of floating point arithmetic. As the ARM processors don't have a floating point processor this flag becomes necessary. As far as I know the BeagleBoard-xM does not have a floating point co-processor.
Theoretically you can compile bits of OpenCV to use only integer arithmetic, but I don't know how many routines will be available.
So the short answer is "yes, unless you can strip away all the floating point arithmentic from OpenCV".
Two clarifications:
Long-story short, -mfloat-abi=softfp is a reasonable flag to include but is possibly the compiler default.
Asked: 2011-10-30 21:18:45 -0600
Seen: 901 times
Last updated: Oct 31 '11
Error while installing ROS Base Install from SVN on Ubuntu (BeagleBoard)
OpenNI compilation error, Diamondback, version mobile, ARM
How to install ROS on BeagleBoard Ubuntu 10.10?
How to add additional compile flags
How to cross-compile ROS for BeagleBoard-xM (ARM)
How to run ROS on beagleboard effectively?
Advice ROS Single Board Computer - (Kinect, +other sensors)
Why can't you use floats for accessing parameters in roscpp?