less than 1 minute read

1 软件

  1. qt 启动失败
    报错: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found
    问题: 启动时依赖的一些库在 /Qt5.12.3/Tools/QtCreator/lib/Qt/lib 下,但是无法搜多到该路径;
    解决: 手动加到系统路径下;
    sudo gedit /etc/profile
    #添加
    export LD_LIBRARY_PATH=~/Qt5.12.3/Tools/QtCreator/lib/Qt/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
    

    使用其他修改环境变量的方法也可以;


TOP

附录

A 代码示例

Categories: ,

Updated:

Comments