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
Enable nvidia-optical-flow-sdk when building opencv4 with cuda #81922
Conversation
Thanks for the pull-request! I got an error at the end of the build:
Full output here: https://gist.github.com/tbenst/7d53ace5b6533d7d1225429caddcc95c. Also, could you please split into two commits? e.g. |
7c8d33a
to
bd8f718
Compare
ee64b4c
to
bd8f718
Compare
bd8f718
to
72cc7c2
Compare
Build now succeeds. LGTM |
@mdaiter @basvandijk would one of you be able to review? This fixes compiling opencv4 when cuda is enabled. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review-may-2019/3032/125 |
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.
Some minor formatting comments
@veprbl I think I fixed everything you mentioned except what is in the comments. Please see my latest commit for the diff, after which I'll squash. |
aeef4cf
to
e876f23
Compare
e876f23
to
dc1a15e
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Could someone pick this to 20.03? The build's broken there too, and this applies cleanly and works. |
Motivation for this change
fixes #81103
This adds and enables nvidia's optical flow sdk which causes cuda 4 to fail to build when cuda is enabled.
Things done
Patched CMakeLists.txt in opencv contrib to avoid trying to download opencv headers.
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)