不兼容的Qt库和CUDA工具包

huangapple go评论88阅读模式
英文:

Incompatible Qt libraries and the CUDA toolkit

问题

我安装了全新的Ubuntu 22.04(实际上是Pop OS,同样的版本)。

我已经从Ubuntu存储库安装了CUDA工具包,安装的版本是11.5。

操作系统和CUDA工具包是最先安装的,所以我还没有尝试过不同版本,其他Qt软件等。

我可以编写CUDA代码,编译并正常运行,安装似乎是有效的。但是,如果我尝试运行nsight-sys或ncu-ui,就会出现错误消息:

无法将不兼容的Qt库(5.15.3)与此库(5.15.2)混合使用。

这是由于什么引起的。几天前它实际上抱怨了比较5.13.3和5.13.2,所以似乎发生在这两个错误版本之间的任何Qt更新?

我该如何让CUDA调试工具与我系统中安装的任何Qt库一起运行?

英文:

I have a fresh install of ubuntu 22.04 (actually pop os, same version)

I've got the CUDA toolkit installed from the ubuntu repositories, which installs version 11.5.

The OS and CUDA toolkits were the first things installed so I haven't played around with different versions, other Qt software, etc.

I can write CUDA code, compile it an run it just fine, the installation seems to work. However, if I try to run nsight-sys, or ncu-ui, I get the error message

Cannot mix incompatible Qt library (5.15.3) with this library (5.15.2)

What is this due to. A few days ago it actually complained comparing 5.13.3 to 5.13.2, so it seems any Qt update that happened in between updated two wrong versions?

How do I make the CUDA debugging tools run with whatever Qt library I have installed in my system?

答案1

得分: 5

这是一个 nsight-compute / nsight-systems 软件包问题。作为一种解决办法,您可以按照以下 4 个步骤手动导入导致冲突的库(libQt5Network.so)从此 Debian 软件包

  1. 从 Debian 软件库下载 libqt5network5(来自 Qt 5.15.2)软件包
$ wget -q 'http://ftp.de.debian.org/debian/pool/main/q/qtbase-opensource-src/libqt5network5_5.15.2+dfsg-9_amd64.deb'
  1. 解压软件包
$ dpkg -x libqt5network5_5.15.2+dfsg-9_amd64.deb .
  1. 将缺失的库及其关联的符号链接复制到 Nsight Compute 安装目录
$ sudo cp -P usr/lib/x86_64-linux-gnu/libQt5Network.so* /usr/lib/nsight-compute/host/linux-desktop-glibc_2_11_3-x64/
  1. 将缺失的库及其关联的符号链接复制到 Nsight Systems 安装目录
$ sudo cp -P usr/lib/x86_64-linux-gnu/libQt5Network.so* /usr/lib/nsight-systems/host-linux-x64/

按照这些步骤操作后,工具将正常启动。

英文:

This is a nsight-compute / nsight-systems package issue. As a workaround, you can follow these 4 steps to manually import the library causing the conflict (libQt5Network.so) from this Debian package:

  1. Download libqt5network5 (from Qt 5.15.2) package from Debian repository
$ wget -q 'http://ftp.de.debian.org/debian/pool/main/q/qtbase-opensource-src/libqt5network5_5.15.2+dfsg-9_amd64.deb'
  1. Extract package
$ dpkg -x libqt5network5_5.15.2+dfsg-9_amd64.deb .
  1. Copy missing library and its associated symlinks to Nsight Compute installation
$ sudo cp -P usr/lib/x86_64-linux-gnu/libQt5Network.so* /usr/lib/nsight-compute/host/linux-desktop-glibc_2_11_3-x64/
  1. Copy missing library and its associated symlinks to Nsight Systems installation
$ sudo cp -P usr/lib/x86_64-linux-gnu/libQt5Network.so* /usr/lib/nsight-systems/host-linux-x64/

After following these steps, tools will start normally.

huangapple
  • 本文由 发表于 2023年3月21日 00:40:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/75792998.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定