Problem Building Qt5 on SLED11.3



  • Hello,

    I have been trying to use Qt5 on Suse SLED11.3 but I have found that the X11 libxcb library distributed as part of SLED11 does not support the XInput2 extensions and so the pre-build distributions of Qt5.2.1 does not work in this linux distribution. Consequently I have tried building Qt from source with first Qt5.2.1 and then Qt5.3 but in both cases I have encountered the same issue.

    I configure the build using "configure -no-c++11 -qt-xcb" or ""configure -no-c++11 -qt-xcb -platform linux-g++" and the configure stage works fine and the configure status looks reasonable. However, when I try to build, I get a compilation failure when compiling qtbase/src/3rdparty/xcb/xcb-util-wm/icccm.c because a lot of macros starting with XCB_ATOM_ are undefined.

    Is there some trick that I am missing to get this to work?

    The full compiler command line and the first few errors from it's output for this file are appended below.

    Wade

    gcc -c -pipe -O2 -fPIC -w -fno-exceptions -Wall -W -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/mkspecs/linux-g++ -I/space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/src/plugins/platforms/xcb/xcb-static -I/space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/src/3rdparty/xcb/include -I/space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/src/3rdparty/xcb/include/xcb -I/space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/src/3rdparty/xcb/sysinclude -I. -o .obj/icccm.o /space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/src/3rdparty/xcb/xcb-util-wm/icccm.c
    /space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/src/3rdparty/xcb/xcb-util-wm/icccm.c: In function ‘xcb_icccm_set_wm_name_checked’:
    /space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/src/3rdparty/xcb/xcb-util-wm/icccm.c:90: error: ‘XCB_ATOM_WM_NAME’ undeclared (first use in this function)
    /space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/src/3rdparty/xcb/xcb-util-wm/icccm.c:90: error: (Each undeclared identifier is reported only once
    /space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/src/3rdparty/xcb/xcb-util-wm/icccm.c:90: error: for each function it appears in.)
    /space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/src/3rdparty/xcb/xcb-util-wm/icccm.c: In function ‘xcb_icccm_set_wm_name’:
    /space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/src/3rdparty/xcb/xcb-util-wm/icccm.c:99: error: ‘XCB_ATOM_WM_NAME’ undeclared (first use in this function)
    /space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/src/3rdparty/xcb/xcb-util-wm/icccm.c: In function ‘xcb_icccm_get_wm_name’:
    /space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/src/3rdparty/xcb/xcb-util-wm/icccm.c:107: error: ‘XCB_ATOM_WM_NAME’ undeclared (first use in this function)
    /space/qt5.3Src/qt-everywhere-opensource-src-5.3.0/qtbase/src/3rdparty/xcb/xcb-util-wm/icccm.c: In function ‘xcb_icccm_get_wm_name_unchecked’:



  • Similar error occurs on SLES 11.1 QT 5.5.0


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.