Skip to content
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

anki-bin: Qt fatal: Cannot mix incompatible Qt library (6.6.2) with this library (6.6.1) #298187

Closed
ElnuDev opened this issue Mar 22, 2024 · 12 comments · Fixed by #298981
Closed

Comments

@ElnuDev
Copy link
Contributor

ElnuDev commented Mar 22, 2024

Describe the bug

Anki fails to run with error Qt fatal: Cannot mix incompatible Qt library (6.6.2) with this library (6.6.1). It was giving this error so I decided to update my system to latest nixpkgs, and the error remained.

Notify maintainers

@mahmoudk1000

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[elnu@elnu:~/nix-config]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.8.1, NixOS, 24.05 (Uakari), 24.05.20240321.20f77aa`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/wa8lhchql76i6czzvad3bqz6lvnjnbr5-source`

Add a 👍 reaction to issues you find important.

@SuperSandro2000
Copy link
Member

Are you mixing different versions of nixpkgs?

@ElnuDev
Copy link
Contributor Author

ElnuDev commented Mar 23, 2024

I don't believe so. If you want to take a look at my configuration (it's a bit of a mess), it's here. Oh, and I should have tested this before, but I just checked and anki works just fine, this is specific to anki-bin.

@chewblacka
Copy link
Contributor

I tried installing anki-bin and get this error too.

@mahmoudk1000
Copy link
Member

mahmoudk1000 commented Mar 23, 2024

I am updating my system to latest Nixpkgs. And going to check it once done.

Edit: bty anki-bin works just fine on my system, which is last update at 26 February.

@lolbinarycat
Copy link
Contributor

unable to replicate when building anki-bin on nixpkgs master (ada65ba)

@chewblacka
Copy link
Contributor

Ok I think I found the culprit. I ran anki-bin under plasma6 and got the same incompatible QT library error as the OP. Then installed and booted into Pantheon instead where it runs fine. So seems to be plasma6 specific.

@lolbinarycat
Copy link
Contributor

ah, makes sense. i'm running plasma5 still.

@mahmoudk1000
Copy link
Member

Nice catch. Then I would suppose it will be fixed once Anki 24.04 is released. As then ankitects/anki@f09fbea should be rolled out.

@SuperSandro2000
Copy link
Member

if the bin variant is vendoring qt6, then we probably need to unset some envs otherwise things will often break.

@mahmoudk1000
Copy link
Member

Anki itself does vendor qt6 version. But the anki-bin package doesn't.

@ElnuDev
Copy link
Contributor Author

ElnuDev commented Mar 24, 2024

Ok I think I found the culprit. I ran anki-bin under plasma6 and got the same incompatible QT library error as the OP. Then installed and booted into Pantheon instead where it runs fine. So seems to be plasma6 specific.

Forgot to mention that I'm running on X.org with i3

@mahmoudk1000
Copy link
Member

mahmoudk1000 commented Mar 25, 2024

Ok I think I found the culprit. I ran anki-bin under plasma6 and got the same incompatible QT library error as the OP. Then installed and booted into Pantheon instead where it runs fine. So seems to be plasma6 specific.

Forgot to mention that I'm running on X.org with i3

I ran into it after updating my system to the latest nixpkgs, despite I don't run Plasma as well.

if the bin variant is vendoring qt6, then we probably need to unset some envs otherwise things will often break.

You were correct. Following your comment, I managed to fix it by unset QT_PLUGIN_PATH under profile arguments.
Is there any further envs, that you recommend unsetting to prevent future breaks?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants