-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[rtabmap] New port #14299
[rtabmap] New port #14299
Conversation
This is ready for review and merge. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seanyen, thanks for your contribution!
@PhoebeHui Thanks for the review. I addressed the feedback in the latest commit. |
ports/rtabmap/001_opencv.patch
Outdated
) | ||
ENDIF(GTSAM_FOUND) | ||
|
||
+IF(NOT VTK_FOUND) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the port should declare a dependency on vtk instead? It would be bad if:
vcpkg install vtk
vcpkg install rtabmap
and
vcpkg install rtabmap
vcpkg install vtk
produce different output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this VTK_FOUND
patch and added vtk
as a dependency. Waiting for the CI results.
Co-authored-by: Billy O'Neal <[email protected]>
Connecting #11601. Adding VTK as a dependency run into the same issue reported there. It cannot find So instead of dealing with VTK related things, I used |
ports/rtabmap/vcpkg.json
Outdated
"version-string": "0.20.3", | ||
"description": "Real-Time Appearance-Based Mapping", | ||
"homepage": "https://introlab.github.io/rtabmap/", | ||
"supports": "!linux & !osx & !static", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be supports: windows
and then call vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY
?
(Note that this will automatically make vcpkg_configure_cmake
and friends do the right thing)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By doing that, it caused the static windows CI build failure on this error:
-- Note: rtabmap only supports dynamic library linkage. Building dynamic library.
CMake Error at scripts/cmake/vcpkg_check_linkage.cmake:42 (message):
Refusing to build unexpected dynamic library against the static CRT. If
this is desired, please configure your triplet to directly request this
configuration.
Maybe I should do supports: windows & !static
plus vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
?
The bits I was waiting for are fixed.
Thanks for your contribution! |
Describe the pull request
What does your PR fix? Fixes [New Port Request] RTAB-MAP (or RTABMAP) #13791
Which triplets are supported/not supported? Have you updated the CI baseline? Enabled Windows build only.
Does your PR follow the maintainer guide? Yes