-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Problems with the shipping of a development version of FLANN. #7114
Comments
@SergioRAgostinho Thanks for reporting this issue! And using this latest version build in vcpkg should be successful. If you wish to use version 1.9.1, please revert vcpkg to Commit ID 18b029a and rebuild flann. Thanks. |
@SergioRAgostinho I will also take a look at your problem, since I want to integrate PCL in a project soon. edit: sorry, it was not reverted, he just used 1.9.1 tag to label the dev version... which is maybe an error, it would have been better to use the day tag edit2: also I built PCL with my commit and didn't experience any problem, didn't try with the most recent one by @JackBoosY, but CI should have caught regression since we also have PCL here?? |
@cenit As I said:
And the version tag should NOT be 1.9.1, which is my fault. We need to mark this dev version with a date. The only problem is the reason why the author failed to build. |
Thank you for your replies. I'll try to address all the comments.
For our ci issue, this is a valid workaround. I still believe we need to think ahead of simply sticking to a specific commit. I assume our users will want to keep vcpkg somewhat updated and it would be bad to force them to stick to a specific old version of vcpkg just because of PCL.
I am. We are printing the port list at the very end of the dependency installation phase and it is showing
This also means I haven't been able to verify if we still have problems with your current master. I simply checked the subsequent commits to the flann port and from briefly skimming through the diffs, I believe the issue should still be there.
To help you replicate our steps, this is what we do in our CI.
Worth noting, that this is running on the CI and it is a clean machine every time we run. The error is popping because flann (master) now needs linking against an external lz4. However since our custom FindFLANN.cmake is complying with the latest official version, we don't look for or link with the newest lz4 dependency. Hence, the missing symbols. This being said, yesterday @taketwo brought up the fact that since the development version now uses a config file, we can use that. Here's the solution draft he started working on PointCloudLibrary/pcl#3202. I.e. it is likely that we will be able to patch things from our side after all and this issue can be closed. |
We ended up going that path and now support both config- and pkgconfig-based detection of FLANN (PointCloudLibrary/pcl#3202), so this can be closed. I would like to ask vcpkg maintainers to consider in future that PCL relies on vcpkg in CI. Thus when you introduce breaking changes (like it happened in #6294), it breaks our CI. Which is okay. But it would be great if besides from adding a patch to your portfile, you also ping us about the problem so we can take measures in timely fashion. Thanks! |
My bad sorry. I forgot to ping upstream about the patch. Good that you solved your problems :) |
Just adding extra clues to help you in case there is further interest in trying to reproduce the original issue. This is what we pass at configuration stage
I'm not sure if it is relevant but we're linking dynamically against flann. This was the last commit before we merged the fix. PointCloudLibrary/pcl@d91f2af |
I wonder how this |
Is this issue resolved? |
Please feel free to reopen this issue if you still encounter it. Thank you! |
Hey vcpkg team. I'm one of the maintainers for the Point Cloud Library project. We've been using vcpkg in our CI to meet our dependencies for a while now. Recently, we've hit a problem we can't seem to figure out how to patch, because it's vcpkg specific. It pertains the FLANN library.
FindFLANN.cmake
because the flann development version already exports a configuration file.Ultimately users who want to compile PCL from source, using vcpkg for the latest dependencies are pretty much in a tough spot at this point. I came here seeking advice on how to proceed, assuming I might have overlooked something.
Ping @UnaNancyOwen , @claudiofantacci .
The text was updated successfully, but these errors were encountered: