-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 | Q&A answers.ros.org |
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.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2011-10-30 21:18:45 -0500
Seen: 854 times
Last updated: Oct 31 '11
Why can't you use floats for accessing parameters in roscpp?
Compile ROS Groovy on Beagleboard?
Reading float from Float32 data from kinect pointcloud2
How to add additional compile flags
vision_opencv installation error on beagleboard
Why won't the /scan topic display rounded values?
How to receive and array of floats over a user defined message type ?