-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
rPackages.opencv: fixed build #293081
rPackages.opencv: fixed build #293081
Conversation
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 builds, but something is still missing:
ocv_display(faces)
Error: OpenCV(4.9.0) /build/source/modules/highgui/src/window.cpp:1255: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvNamedWindow'
In addition, native and buildInputs should be split correctly.
I've added |
Ok, think I got it, the error message was related to opencv, not the R package. So I needed to override opencv to build with gtk2 support (thanks to https://stackoverflow.com/a/53757886). That seems to have done the trick, could you test it on your end as well? |
OK, I'm building it on x86_64 Linux. If someone could check on darwin, that would be awesome. Not sure they have gtk there? Does it need Cocoa or something? |
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.
Description of changes
Fixed build and tested basic functionality.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.