Building on OSX Yosemite
Opened this issue · 3 comments
Hi, I am unable to build Hector localization on Yosemite. One of the errors faced was the sincos use which was easily bypassed by the __sincos function in OSX.
Another issue faced is an error in a Macro which seems fine, any clues on how to make it work with OSX? http://pastebin.com/Qxcv2QNg
Any pointers would be great.
Could you try to change SYSTEM_MODEL_TRAIT(Derived, _VectorDimension, _CovarianceDimension)
to SYSTEM_MODEL_TRAIT(Derived, _VectorDimension, _CovarianceDimension);
wherever SYSTEM_MODEL_TRAIT
is used ? (Notice that I added a semicolon at the end.
And which compiler do you use ?
If this doesnt work, I notice that the SYSTEM_MODEL_TRAIT
is only used in 2 places. You could simply remove the #define
and copy the typedef and enum lines in both the locations.
i.e. as the compiler is unable to understand it, you simply do it's preprocessing job for it ;)
Seems the error was something else. There is a struct named traits in model.h and the namespace in this code was also traits, renaming that fixed the issue and I was able to build.