-
Notifications
You must be signed in to change notification settings - Fork 754
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
(WIP) Changes to get gtsam to compile in Windows #85
Conversation
@cntaylor , @izzys, @varunagrawal Could you please give it a try to this branch, to verify that it still builds correctly for MATLAB? |
I have had significant problems getting MATLAB toolbox to build (see issue #86 just submitted) but I figured just getting gtsam library by itself to compile was progress, so I submitted that pull request. Hopefully that's okay! |
@jlblancoc still doesn't work well. Now the project name is being set to |
That is fixed with the latest commits in this branch, but the link errors in #86 are still there. |
* The check.base unit tests all pass now. * The gstam_matlab_wrapper class compiles with now errors now. * Note that I had to remove all LieMatrix, LieVector, and LieScalar stuff to get this to work...
Just submitted pull request #87 that fixes the compilation problems. There are still a lot of unit tests that fail in the geometry section and other places, but the gtsam_matlab_wrapper library compiles with no errors now. I believe this pull will close off issue #86, but as I mentioned in some comments there, I'm a bit uncomfortable with how this issue resolved itself. |
I have compiled this branch on Linux 16.04 with MATALB flag ON and it works. However, the following examples from the MATLAB toolbox have errors ( I have tested with MATLAB R2019a): 1: gtsam_examples/CameraFlyingExample.m Error in CameraFlyingExample (line 123) 2: gtsamExamples (GUI not working) 3: gtsam_examples/Pose2SLAMwSPCG.m Error using gtsam_wrapper Error in gtsam.LevenbergMarquardtParams/setLinearSolverType (line 238) Error in Pose2SLAMwSPCG (line 57) 4: unstable_examples/TransformProjectionFactorExampleISAM.m Error in TransformProjectionFactorExampleISAM (line 50) 5: unstable_examples/TransformProjectionFactorExample.m Error in TransformProjectionFactorExample (line 36) 6: unstable_examples/TransformCalProjectionFactorIMUExampleISAM.m Error in TransformCalProjectionFactorIMUExampleISAM (line 56) 7: unstable_examples/TransformCalProjectionFactorExampleISAM.m Error in TransformCalProjectionFactorExampleISAM (line 48) 8: unstable_examples/IMUKittiExampleVO.m 9: unstable_examples/IMUKittiExampleAdvanced.m 10: unstable_examples/FlightCameraTransformIMU.m Error in FlightCameraTransformIMU (line 248) |
@izzys Most of those commands are behind a DEFINE for GTSAM_ALLOW_DEPRECATED_SINCE_V4. Can you make sure that is on (I know I turned it off sometimes) and see if your MATLAB examples work? |
Resolved several MSVC compiling errors
@dellaert @chrisbeall : Just requested AppVeyor access to this ORG, so I can integrate their Windows MSVC build CI service, probably in this PR, ok? Let me know when you approve the app access. |
Merging to fix matlab, will add AppVeyor in another pr. |
AppVeyor was approved... |
@izzys Thanks for checking the MATLAB examples. I think we should be able to run the examples with GTSAM_ALLOW_DEPRECATED_SINCE_V4, so would you mind opening an issue? If you feel up to it, the fixes should be fairly straightforward for a PR :-) |
Follow up of #84 . Fixes #82 .
To-do:
This change is