Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Problem Building Qt5 on SLED11.3
Qt 6.11 is out! See what's new in the release blog

Problem Building Qt5 on SLED11.3

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    WadeOram
    wrote on last edited by
    #1

    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’:

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Alon
      wrote on last edited by
      #2

      Similar error occurs on SLES 11.1 QT 5.5.0

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved