-
-
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
opencv 4.7.0 in nixpkgs master has link errors #214124
Comments
Hi 👋 Could you try building your flake with nixpkgs from the staging branch ? There are some changes that I've made to this package which are not yet merged into master https://github.com/NixOS/nixpkgs/blob/staging/pkgs/development/libraries/opencv/4.x.nix, maybe it'll help. |
I just finished bisecting nixpkgs: The commit 8c80bd08b7e39229947d55104d1871f5066437d9 breaks it for me. @trofi do you have any insights on that? I am trying staging now following your suggestion and will report back. |
With dynamic linking, this should never be necessary. If it works with explicit linking against these deps, I would still consider this a bug. |
Yeah, my apologies for the breakage. That change was reverted for a very similar reason in #213185 and is in |
Oh yes, thank you for pointing me to that, I try that branch. |
It's already all in the binary cache, so that was quick. This resolved my problem, thank you! |
Describe the bug
Hi, I created a minimal demonstrator for my problem:
https://github.com/tfc/whiteboard-opencv/tree/without-aruco (not main branch but
without-aruco
, to also build with nixos 22.11)This minimal C++ app includes and links against opencv4.
Building this flake using
nix build
works just fine and the resulting app works.Running
nix develop
and then doingmkdir build && cd build && cmake .. && make
results in link errors:With nixpkgs on 22.11, both nix build and nix develop work.
Steps To Reproduce
Steps to reproduce the behavior:
nix build
, worksnix develop
and run:mkdir build && cd build && cmake .. && make
, get mentioned error messagesExpected behavior
I would expect to not get these linker errors after upgrading to nixpkgs master
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers
@mdaiter @basvandijk
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: