-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building with TBB on macOS for "debug" build types #661
Comments
Hmm this seems to be a very specific case (though I may be wrong). I am not sure if having GTSAM enforce requiring external libraries to follow the same build type makes any sense. We should be able to build a Debug version of GTSAM while using a Release version of TBB (at least from a performance perspective). |
Maybe. But I think it is the default (easiest) way to get TBB on macOS these days, so IMHO it's the default setup to compile GTSAM on macOS.
I don't really care about what libraries it uses (on Linux, where it seems it has both release and debug libraries shipped by TBB), but I agree this is a bit strange in the TBB find module, to enforce this. I'd rather expect it to choose release libraries unless you pass an extra flag saying you want debug libraries for TBB. But I'm not sure if some people would be disturbed if you would change the default on all platforms (i.e. always use release libs for TBB unless a specific flag is passed to cmake). But besides that, the main point of this issue here is that it would be nice if it would pick up TBB on macOS without requiring the additional cmake flag described in the workaround section above. (But it's also not very high priority, given that the workaround is quite easy if you know it.) |
Agreed! |
Awesome, thanks! I verified that now |
Description
On macOS (10.15 Catalina) -- with current TBB installed via homebrew -- the GTSAM cmake only picks it up for
Release
build type, but fails to do so forRelWithDebInfo
andDebug
. This is with the latestdevelop
branch.Steps to reproduce
Release
is ok:Debug
orRelWithDebInfo
fails:Workaround
It seems that the cmake find module wants to find dedicated debug libraries, but they don't seem to exist on macOS, at least not with the homebrew install:
Looks like there is a flag in the find module to turn this off:
Maybe on macOS this should be the default? (I haven't tried other installation methods for TBB next to homebrew.)
Environment
The text was updated successfully, but these errors were encountered: