ubuntu下运行p4v报错Could not load the Qt platform plugin “xcb” in “” even though it was found的问题解决
在ubuntu20.4上运行下载的p4v-2024.2版本p4v,报如下错误:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: minimal, offscreen, vnc, xcb.
按照官方排错方法,执行如下顺序的代码找到缺少的库,安装上即可:
$cd ~/p4v-2024.2.2634463/lib $ export LD_LIBRARY_PATH=`pwd` $ cd plugins/platforms $ ldd libqxcb.so | grep "not found" libxcb-cursor.so.0 => not found libxcb-cursor.so.0 => not found
执行
sudo apt install libxcb-cursor0
重新运行解决问题
注:官方推荐使用命令
sudo apt search libxcb-cursor.so.0
找到缺少的库所在的包,但是我执行后没有找到任何数据,替换使用
sudo apt list |grep libxcb-cursor
命令找到包名称,但这种方法可能不通用
Popularity: 2% [?]
Random Posts
August 19, 2024 | Filed Under LAMP