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

Qt's XCB plugin fails to build from source package...

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.0.0 RC 1
    • Fix Version/s: 5.0.0 RC 2
    • Component/s: Build System
    • Labels:
      None
    • Environment:
      Linux, Ubuntu LTS 12.04.1, 64bit (x86_64), {{uname -a}}:
      {{Linux ubuntu 3.2.0-34-generic #53-Ubuntu SMP Thu Nov 15 10:48:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux}}
    • Commits:
      2efaee43f7c916919507860ab17e9b1d86b2f508

      Description

      Hi there,

      I downloaded the 5.0.0RC1 candidate version as *.tar.gz (http://releases.qt-project.org/qt5.0/rc1/single/qt-everywhere-opensource-src-5.0.0-rc1.tar.gz) and unpacked it. Then I ran a './configure -opensource -qt-xcb', that seemed to finish successfully. But the following 'make' stopped after a while with the error:

      gcc -c -m64 -pipe -O2 -fPIC -w -fno-exceptions -Wall -W -D_REENTRANT -DQT_NO_LIBUDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../../mkspecs/linux-g++-64 -I. -I../../../../3rdparty/xcb/include/xcb -I../../../../3rdparty/xcb/sysinclude -I../../../../../include -I../../../../../include/QtGui -I../../../../../include/QtCore -I.moc/release-shared -o .obj/release-shared/xcb_image.o ../../../../3rdparty/xcb/xcb-util-image/xcb_image.c
      ../../../../3rdparty/xcb/xcb-util-image/xcb_image.c:32:25: schwerwiegender Fehler: xcb/xcb_aux.h: Datei oder Verzeichnis nicht gefunden
      Kompilierung beendet.
      make[6]: *** [.obj/release-shared/xcb_image.o] Fehler 1
      make[6]: Verlasse Verzeichnis '/home/dirk/tmp/qt5_rc1/qt-everywhere-opensource-src-5.0.0-rc1/qtbase/src/plugins/platforms/xcb/xcb-static'
      make[5]: *** [sub-xcb-static-make_first-ordered] Fehler 2
      make[5]: Verlasse Verzeichnis '/home/dirk/tmp/qt5_rc1/qt-everywhere-opensource-src-5.0.0-rc1/qtbase/src/plugins/platforms/xcb'
      make[4]: *** [sub-xcb-make_first] Fehler 2
      make[4]: Verlasse Verzeichnis '/home/dirk/tmp/qt5_rc1/qt-everywhere-opensource-src-5.0.0-rc1/qtbase/src/plugins/platforms'
      make[3]: *** [sub-platforms-make_first] Fehler 2
      make[3]: Verlasse Verzeichnis '/home/dirk/tmp/qt5_rc1/qt-everywhere-opensource-src-5.0.0-rc1/qtbase/src/plugins'
      make[2]: *** [sub-plugins-make_first] Fehler 2
      make[2]: Verlasse Verzeichnis '/home/dirk/tmp/qt5_rc1/qt-everywhere-opensource-src-5.0.0-rc1/qtbase/src'
      make[1]: *** [sub-src-make_first] Fehler 2
      make[1]: Verlasse Verzeichnis '/home/dirk/tmp/qt5_rc1/qt-everywhere-opensource-src-5.0.0-rc1/qtbase'
      make: *** [module-qtbase-make_first] Fehler 2
      dirk@ubuntu:~/tmp/qt5_rc1/qt-everywhere-opensource-src-5.0.0-rc1$ find . -name "xcb_aux.h"
      ./qtbase/src/3rdparty/xcb/include/xcb/xcb_aux.h
      dirk@ubuntu:~/tmp/qt5_rc1/qt-everywhere-opensource-src-5.0.0-rc1$
      

      So 'xcb_image.c' references 'xcb/xcb_aux.h', but only '-I../../../../3rdparty/xcb/include/xcb' gets passed as additional include path. From this I derive, that it should be either 'include "xcb_aux.h"' in the source file, or you'd have to pass '-I../../../../3rdparty/xcb/include' as well.
      After fixing this issue locally, the rest of the compile (including the examples) and the 'make install' went smoothly. Good job guys!

      Hope this helps...I can provide further infos about my system on request.

      Best regards,

      Dirk

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              rodal Samuel Rødal
              Reporter:
              dirkbaechle Dirk Baechle
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes