/********************************************************************************* * error: QXcbConnection: Could not connect to display * 说明: * 调试Qt5支持XCB平台模式的时候遇到的错误。 * * 2017-11-28 深圳 南山平山村 曾剑锋 ********************************************************************************/ 一、参考文档: 1. Qt5: QXcbConnection: Could not connect to display Aborted (core dumped) http://bbs.csdn.net/topics/391894181二、Qt支持X11 XCB /home/zengjf/zengjf/zengjfos/buildroot-2017.02.3/.config - Buildroot 2017.02.3 C o> Target packages > Graphic libraries and applications (graphic/text) > Qt5 ── ┌────────────────────────────────── Qt5 ──────────────────────────────────┐ │ Arrow keys navigate the menu.selects submenus ---> (or empty │ │ submenus ----). Highlighted letters are hotkeys. Pressing │ │ selectes a feature, while will exclude a feature. Press │ │ to exit, for Help, for Search. Legend: [*] feature │ │ ┌────^(-)─────────────────────────────────────────────────────────────┐ │ │ │ -*- gui module │ │ │ │ -*- widgets module │ │ │ │ *** OpenGL support needs an OpenGL-capable backend *** │ │ │ │ [*] linuxfb support │ │ │ │ *** directfb backend available if directfb is enabled *│ │ │ │ [*] X.org XCB support │ │ │ │ *** eglfs backend available if OpenGL and EGL are enabl│ │ │ │ (xcb) Default graphical platform │ │ │ │ [ ] fontconfig support │ │ │ │ [ ] GIF support │ │ │ └────┴(+)─────────────────────────────────────────────────────────────┘ │ ├─────────────────────────────────────────────────────────────────────────┤ │