-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[OpenCV] fix compatibility with VTK9 #12785
Conversation
LGTM. |
back to draft: there are some problems in downstream usage. Might require deeper fixes unfortunately |
@cenit Please ping me if this PR is ready for review. |
@cenit: any application using the viz module which can be put into |
I can look for one. The one I am working on right now is not open source :) |
I had to patch vtk port, it was failing otherwise in downstream projects using the library... |
A simple test project would have detected that vtk had green mark from CI but was not working in reality, since the linking stage was failing |
@JackBoosY PR might be ready. I have enabled VTK also on static builds. Initial tests look fine, both on OpenCV3 and on OpenCV4. |
WTF? ParaView is not enough for you? It is also building a runable executable... Furthermore #11148 and #9960 were reviewed by one of the VTK maintainers.
|
very easy check: try building this sample code without that fix
it was broken on linux (at least) without that change :) ps: I also suggest you to moderate your tones. Also, are you sure you have any power to veto or delay a PR so strongly? |
ParaView is not silently patching anything of VTK and is building on osx, linux and windows (x64&static; x86 is not tested due to a cascade failure) without issues (see vcpkg CI logs, basically everything rebuilding qt also rebuilds paraview). If it would have been patched by ParaView it would have made it directly into VTK since both ports are highly connected sharing devs.
The tone was more disbelief than anger if you read it with that tone.
I don't have any power I can just give strong suggestions ;) But you are neither disclosing a full repro including the CMakeLists.txt and feature set of the installed VTK nor have you opened up an upstream issue until now. |
CMakeLists.txt
main.cpp
Terminal Output:
I don't see any issues..... so somebody has to dig deeper. |
If this PR-related issue is related to vtk, do we need to call vtk official review this PR? |
Sorry I am on vacation from today for few days
? This config was failing for me without that fix. This is how vtk is used in the opencv community, and it was working before vtk9 |
Azure Pipelines successfully started running 1 pipeline(s). |
@strega-nil is pangolin regression due to this PR? I doubt it...
missing at the end of CeresConfig.cmake) |
@BillyONeal is the new person on duty, so let's see what he has to say. |
after a rerun pangolin disappeared and opencv4 on macOS returned. I am unable to reproduce it locally on my machine. |
I am trying some "blind fixes" using directly the azure pipeline here to verify them, due to the fact that locally it works. |
Unfortunately I haven't seen a build where At least in the current build it looks like it doesn't like generator expressions in a place?
I'm not sure where |
I also observe pangolin says |
https://github.com/microsoft/vcpkg/runs/1515708729 this is the run where pangolin failed. In fact, osx went fine there and windows failed. |
wait a minute: why is opencv not tested in ANY pipeline apart osx?? This PR is arriving very late! So late that OpenCV is already broken on master?? 😢 |
@BillyONeal in any case now this PR has a green mark, I hope it can be considered for merging because it contains an opencv test which is verifying important features excluded from the default build which otherwise often regress |
@BillyONeal Ping for review and merge this PR. |
Thanks for your help! |
Resolves microsoft#22980 microsoft#12785 Added a set of `CMAKE_CXX_STANDARD` in this CMake config which accidentally overwrites higher versions. Upstream already has a `target_compile_options` to do this the Right Way. This change: * Deletes the offending attempt to set CMAKE_CXX_STANDARD. Downstream users that don't listen to the INTERFACE_COMPILE_FEATURES need to be patched locally. * Modernizes to use vcpkg_cmake_Xxx. * Removes attempt to fix up paths that already appears handled by `vcpkg_cmake_config_fixup`. * Adds quotes.
Resolves #22980 #12785 Added a set of `CMAKE_CXX_STANDARD` in this CMake config which accidentally overwrites higher versions. Upstream already has a `target_compile_options` to do this the Right Way. This change: * Deletes the offending attempt to set CMAKE_CXX_STANDARD. Downstream users that don't listen to the INTERFACE_COMPILE_FEATURES need to be patched locally. * Modernizes to use vcpkg_cmake_Xxx. * Removes attempt to fix up paths that already appears handled by `vcpkg_cmake_config_fixup`. * Adds quotes.
After VTK9 update in #12149, VTK feature in OpenCV was broken. This patch will fix it.