-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 -0500
Seen: 872 times
Last updated: Oct 31 '11
OpenNI compilation error, Diamondback, version mobile, ARM
PWM Linux kernel module [closed]
How to send float type data to the serial port using pyserial in ros python?
What embedded platforms does ROS Support?
ROS service: problem passing parameters
float error while using a float - custom messages
How to install ROS on BeagleBoard Ubuntu 10.10?