-
Notifications
You must be signed in to change notification settings - Fork 28
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
Build fails when compiling against debug builds of gtsam #25
Comments
The error message here does not look related to GTSAM to me. Can you check if you link TBB correctly? |
That's thing, omnimapper's linking to TBB was being resolved implicitly given that GTSAM was linking to it already, except when building GTSAM with debug flags, this implicit relationship in CMake is broken. It seems that the TBB hasn't yet implemented a CMake-based build of TBB for easy embedding into open-source projects, despite large number of requests for it: Thus it seems that GTSAM uses its own custom cmake files to find and link to TBB: Could we reuse that somehow without just duplicating the file in out repo, to ensure where linking to TBB the same exact way that a version/tag of gtsam is? |
It is easier to copy the file to our repo. The right thing to do would be, when GTSAM is installed, it should also install FindTBB. Which will be out of the scope that we can control. |
Well, its non ideal given that its no longer certain that omnimapper will link to TBB in the same mannor as gtsam, if gtsam ever changes in the future, but 9e90715 should fix this for now. |
You could optionally turn off linking to TBB via CMake for debugging purposes. It should even make debugging easier. |
Also, I agree that TBB hasn't been easy to deal with. We've cleaned up a bunch of issues with TBB and GTSAM over the past few months, but still have various tasks items left. If you find anything helpful, we'd love to hear about it. |
Looks like there is a linking issue with tbb when compiling against debug builds of gtsam:
This is prevents the use of debug symbols to triage issues with the plane plugins. My guess that omnimapper is implicitly relying gtsam to export tbb during the linking stage, and that gtsam disables the use of tbb when the library is compiled using debug flags.
The text was updated successfully, but these errors were encountered: