Closed rasit closed 9 years ago
Which Eigen version and compiler do you use?
Eigen version appears to be 3.2.1
and compiler on OSX 10.9 is clang, specifically:
$ clang --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix
I believe subtle differences between clang and gcc and possibly some differences in the standard headers between linux/osx are the main issues here.
Could you please verify that #5 fixes the problem?
Thanks for looking into it. This fixes the first error. New one appears: http://pastebin.com/pLGjeU71
I'll check it soon, but I solved the sincos() problem by separating those calls into sin() and cos().
sincos
is a GNU extension and not part of standard libc. See http://www.gnu.org/software/libc/manual/html_node/Trig-Functions.html, which says on sincos
: "This function is a GNU extension. Portable programs should be prepared to cope with its absence."
Yes, indeed. That's why I separated it...
@rasit: We would need a fix that works for all platforms. Using sincos
when available will be faster. Maybe a preprocessor check for GNU libc can help.
Well, the real fix is the same done by the developers, not us, the end users...
I just argued that this is not necessarily the "real fix" as it deteriorates the situation on Linux. I'm sure the developer would welcome a pull requests, if you have already solved this. Otherwise he is spending his free time to duplicate your work.
Sure... My fix was an hint, albeit not a clear one, that the solution would be adopted by the developer. As a matter of fact, I just heard about the function (not write application code much), and think that it is a poor idea (of GNU people) to have such a mixed function in the first place.
The reason for this extension is probably that there is hardware support for computing both sin and cos at the same time.
Any solutions for the new (as presented by Nikolaus Demmel) compiler errors? Obviously, I'm getting the same.
Hi,
I've successfully (with some pain and minor modifications, but...) built desktop_full on OS X Mavericks. However, after adding the hector_quadrotor package and it dependencies, I started getting problems. Here is the command that I ran:
raspberry:catkin_ws rasit$ VERBOSE=1 ./src/catkin/bin/catkin_make_isolated --pkg hector_pose_estimation_core -j1