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

humble rviz2 cannot mix incompatible Qt libarry #437

Closed
AchmadFathoni opened this issue Jul 29, 2024 · 1 comment
Closed

humble rviz2 cannot mix incompatible Qt libarry #437

AchmadFathoni opened this issue Jul 29, 2024 · 1 comment

Comments

@AchmadFathoni
Copy link
Contributor

OS: NixOS 24.05,
KDE: 6.0.5
Qt: 6.7.2
DS: Wayland

flake.nix

{
  inputs = {
    nix-ros-overlay.url = "github:lopsided98/nix-ros-overlay/master";
    nixpkgs.follows = "nix-ros-overlay/nixpkgs";  # IMPORTANT!!!
  };
  outputs = {nix-ros-overlay, nixpkgs, ... }:
    nix-ros-overlay.inputs.flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs {
          inherit system;
          overlays = [ nix-ros-overlay.overlays.default ];
        };
      in {
        devShells.default = pkgs.mkShell {
          name = "Example project";
          packages = [
            pkgs.colcon
            # ... other non-ROS packages
            (with pkgs.rosPackages.humble; buildEnv {
                paths = [
                    ros-core
                    rqt-graph
                    rviz2
                    ament-cmake-core
                ];
            })
          ];
        };
      });
  nixConfig = {
    extra-substituters = [ "https://ros.cachix.org" ];
    extra-trusted-public-keys = [ "ros.cachix.org-1:dSyZxI8geDCJrwgvCOHDoAfOm5sV1wCPjBkKL+38Rvo=" ];
  };
}

flake.lock

{
  "nodes": {
    "flake-utils": {
      "inputs": {
        "systems": "systems"
      },
      "locked": {
        "lastModified": 1705309234,
        "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
        "owner": "numtide",
        "repo": "flake-utils",
        "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "flake-utils",
        "type": "github"
      }
    },
    "nix-ros-overlay": {
      "inputs": {
        "flake-utils": "flake-utils",
        "nixpkgs": "nixpkgs"
      },
      "locked": {
        "lastModified": 1712797796,
        "narHash": "sha256-SkCWsnJ6H+LbXt7PLroXCPlb0k52+EG7WKEXtWjuNbI=",
        "owner": "lopsided98",
        "repo": "nix-ros-overlay",
        "rev": "e239e71fd2ce40ce1f7499328a4c92e9473fec88",
        "type": "github"
      },
      "original": {
        "owner": "lopsided98",
        "ref": "master",
        "repo": "nix-ros-overlay",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1707268954,
        "narHash": "sha256-2en1kvde3cJVc3ZnTy8QeD2oKcseLFjYPLKhIGDanQ0=",
        "owner": "lopsided98",
        "repo": "nixpkgs",
        "rev": "f8e2ebd66d097614d51a56a755450d4ae1632df1",
        "type": "github"
      },
      "original": {
        "owner": "lopsided98",
        "ref": "nix-ros",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "nix-ros-overlay": "nix-ros-overlay",
        "nixpkgs": [
          "nix-ros-overlay",
          "nixpkgs"
        ]
      }
    },
    "systems": {
      "locked": {
        "lastModified": 1681028828,
        "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
        "owner": "nix-systems",
        "repo": "default",
        "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
        "type": "github"
      },
      "original": {
        "owner": "nix-systems",
        "repo": "default",
        "type": "github"
      }
    }
  },
  "root": "root",
  "version": 7
}

When I run rviz2 I get

Qt: Session management error: None of the authentication protocols specified are supported
[INFO] [1722246487.591561860] [rviz2]: Stereo is NOT SUPPORTED
[INFO] [1722246487.591594394] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
kf.windowsystem: Could not find any platform plugin
[INFO] [1722246487.610200583] [rviz2]: Stereo is NOT SUPPORTED
Cannot mix incompatible Qt library (5.15.14) with this library (5.15.12)
zsh: IOT instruction (core dumped)  rviz2
@adrian-kriegel
Copy link

A workaround that worked for me was to unset QT_PLUGIN_PATH.

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

No branches or pull requests

2 participants