zoukankan      html  css  js  c++  java
  • Qt报错:qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch).....

    Qt编译完后运行程序报如下错误

    17:46:32: Starting /home/wyl/Documents/Qtcode/RSViewer/RSViewer_build/RSViewer...
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 770, resource id: 136314920, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 935, resource id: 136314920, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1010, resource id: 136314920, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1059, resource id: 136314920, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1070, resource id: 136314920, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1211, resource id: 136314982, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1349, resource id: 136314996, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1583, resource id: 136315025, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1790, resource id: 136315025, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1839, resource id: 136315025, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1850, resource id: 136315025, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1978, resource id: 136315074, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 2112, resource id: 136315088, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 2343, resource id: 136315113, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 2538, resource id: 136315113, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 2587, resource id: 136315113, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 2598, resource id: 136315113, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 2744, resource id: 136315164, major code: 130 (Unknown), minor code: 3
    qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 2878, resource id: 136315178, major code: 130 (Unknown), minor code: 3

    原因

    QT找不到xcb动态库,

    没有将libqxcb库拷贝到发布包中,或者libqxcb需要的动态库不全

    解决办法

    将Qt安装目录中 Qt5.6.3/5.6.3/gcc_64/plugins/platforms 拷贝到qt程序所在目录, 
    使用ldd查看libqxcb需要链接的库是否能找到,如果没有,将缺少的库一并拷贝到发布包中

  • 相关阅读:
    Bayes分类器原理分析以及实现
    数据库视图探究
    请求页式存储管理系统实验
    离散数学知识点整理(一)
    数据结构知识点总结之树
    数据结构知识点总结之栈、队列
    数据结构知识点总结之串、数组、广义表
    数据结构知识点总结之线性表
    数据结构知识点总结之绪论
    数据结构知识点总结
  • 原文地址:https://www.cnblogs.com/Glucklichste/p/11447985.html
Copyright © 2011-2022 走看看