Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-31190

::Display’ has not been declared - Qtbase compilation fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.1.0
    • 5.1.0 Beta 1
    • Core: Plugins
    • None

    Description

      Qt 5.1.0 compilation issue.

      /usr/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/disks/PROJECT/qt510/ -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c+0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DXCB_USE_XLIB -DXCB_USE_EGL -DSUPPORT_X11 -DXCB_USE_IBUS -DXCB_USE_RENDER -DDFLT_XKB_CONFIG_ROOT=\"/usr/share/X11/xkb\" -DDEFAULT_XKB_RULES=\"evdev\" -DDEFAULT_XKB_MODEL=\"pc105\" -DDEFAULT_XKB_LAYOUT=\"us\" -DQ_FONTCONFIGDATABASE -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PLATFORMSUPPORT_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../mkspecs/devices/linux-rasp-pi-g+ -I. -I../../../3rdparty/xcb/include -I../../../3rdparty/xcb/sysinclude -I../../../3rdparty/xkbcommon -I../../../3rdparty/xkbcommon/src -I../../../3rdparty/xkbcommon/src/xkbcomp -I../../../../include -I../../../../include/QtPlatformSupport -I../../../../include/QtPlatformSupport/5.1.0 -I../../../../include/QtPlatformSupport/5.1.0/QtPlatformSupport -I../../../../include/QtDBus -I../../../../include/QtGui -I../../../../include/QtGui/5.1.0 -I../../../../include/QtGui/5.1.0/QtGui -I../../../../include/QtCore -I../../../../include/QtCore/5.1.0 -I../../../../include/QtCore/5.1.0/QtCore -I.moc/release-shared -I/disks/PROJECT/qt510/opt/vc/include -I/disks/PROJECT/qt510/opt/vc/include/interface/vcos/pthreads -I/disks/PROJECT/qt510/opt/vc/include/interface/vmcs_host/linux -o .obj/release-shared/main.o main.cpp
      /usr/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/disks/PROJECT/qt510/ -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c+0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DXCB_USE_XLIB -DXCB_USE_EGL -DSUPPORT_X11 -DXCB_USE_IBUS -DXCB_USE_RENDER -DDFLT_XKB_CONFIG_ROOT=\"/usr/share/X11/xkb\" -DDEFAULT_XKB_RULES=\"evdev\" -DDEFAULT_XKB_MODEL=\"pc105\" -DDEFAULT_XKB_LAYOUT=\"us\" -DQ_FONTCONFIGDATABASE -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PLATFORMSUPPORT_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../mkspecs/devices/linux-rasp-pi-g+ -I. -I../../../3rdparty/xcb/include -I../../../3rdparty/xcb/sysinclude -I../../../3rdparty/xkbcommon -I../../../3rdparty/xkbcommon/src -I../../../3rdparty/xkbcommon/src/xkbcomp -I../../../../include -I../../../../include/QtPlatformSupport -I../../../../include/QtPlatformSupport/5.1.0 -I../../../../include/QtPlatformSupport/5.1.0/QtPlatformSupport -I../../../../include/QtDBus -I../../../../include/QtGui -I../../../../include/QtGui/5.1.0 -I../../../../include/QtGui/5.1.0/QtGui -I../../../../include/QtCore -I../../../../include/QtCore/5.1.0 -I../../../../include/QtCore/5.1.0/QtCore -I.moc/release-shared -I/disks/PROJECT/qt510/opt/vc/include -I/disks/PROJECT/qt510/opt/vc/include/interface/vcos/pthreads -I/disks/PROJECT/qt510/opt/vc/include/interface/vmcs_host/linux -o .obj/release-shared/qxcbnativeinterface.o qxcbnativeinterface.cpp
      In file included from qxcbconnection.h:60:0,
      from qxcbobject.h:45,
      from qxcbscreen.h:51,
      from qxcbnativeinterface.cpp:44:
      ../../../3rdparty/xcb/include/xcb/xkb.h:118:5: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
      qxcbnativeinterface.cpp: In member function ‘void QXcbNativeInterface::beep()’:
      qxcbnativeinterface.cpp:97:5: error: ‘::Display’ has not been declared
      qxcbnativeinterface.cpp:97:16: error: ‘display’ was not declared in this scope
      qxcbnativeinterface.cpp:97:27: error: ‘::Display’ has not been declared
      qxcbnativeinterface.cpp:97:38: error: expected primary-expression before ‘)’ token
      qxcbnativeinterface.cpp:97:39: error: expected ‘;’ before ‘nativeResourceForScreen’
      qxcbnativeinterface.cpp:316:1: error: expected ‘}’ at end of input
      qxcbnativeinterface.cpp: At global scope:
      qxcbnativeinterface.cpp:86:1: warning: ‘qXcbResourceMap’ defined but not used [-Wunused-variable]
      make[5]: *** [.obj/release-shared/qxcbnativeinterface.o] Error 1
      make[5]: Leaving directory `/disks/PROJECT/qt510/qt5/qtbase/src/plugins/platforms/xcb'
      make[4]: *** [sub-xcb-plugin-pro-make_first-ordered] Error 2
      make[4]: Leaving directory `/disks/PROJECT/qt510/qt5/qtbase/src/plugins/platforms/xcb'
      make[3]: *** [sub-xcb-make_first] Error 2
      make[3]: Leaving directory `/disks/PROJECT/qt510/qt5/qtbase/src/plugins/platforms'
      make[2]: *** [sub-platforms-make_first] Error 2
      make[2]: Leaving directory `/disks/PROJECT/qt510/qt5/qtbase/src/plugins'
      make[1]: *** [sub-plugins-make_first] Error 2
      make[1]: Leaving directory `/disks/PROJECT/qt510/qt5/qtbase/src'
      make: *** [sub-src-make_first] Error 2

      Attachments

        1. rep
          4 kB
        2. sel
          23 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            nierob Nierob
            nagyimre Nagy Imre
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes