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

Qt 5.1.1 build fails in qoffscreenintegration_x11.cpp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.2.0
    • 5.1.1
    • Build System
    • None
    • CentOS 6 x64
    • ac327aa3af8d934abb1d605541d9b6f8d1cfdc27,5ca5f4d344f6eb644a9b56f8b1ad166582bb8483

    Description

      Building qt 5.1.1 from source on a fully updated system gives error these errors. Offscreen stuff cannot be turned off in configure it looks. There is no documentation about this class in Qt 5.1.0 Qt Assistant.

      Configured as:

      ./configure -developer-build -nomake examples -nomake tests -opensource -confirm-license -shared -qt-sql-mysql -qt-sql-odbc -javascript-jit -platform linux-g++ -qt-zlib -qt-libpng -qt-libjpeg -openssl -qt-xcb -qt-xkbcommon -gui -widgets -opengl
      

      Result:

      g++ -Wl,--no-undefined -Wl,-rpath,/root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/lib -Wl,-rpath-link,/root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/lib -shared -o libqoffscreen.so .obj/debug-shared/main.o .obj/debug-shared/qoffscreenintegration.o .obj/debug-shared/qoffscreenwindow.o .obj/debug-shared/qoffscreencommon.o .obj/debug-shared/qoffscreenintegration_x11.o  -L/root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/lib -lQt5PlatformSupport -pthread -lgthread-2.0 -lrt -lglib-2.0 -lQt5DBus -lQt5Gui -lQt5Core -lGL -lpthread
      .obj/debug-shared/qoffscreenintegration_x11.o: In function `QOffscreenX11Connection':
      /root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:81: undefined reference to `XInitThreads'
      /root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:84: undefined reference to `XOpenDisplay'
      .obj/debug-shared/qoffscreenintegration_x11.o: In function `~QOffscreenX11Connection':
      /root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:91: undefined reference to `XCloseDisplay'
      .obj/debug-shared/qoffscreenintegration_x11.o: In function `createDummyWindow':
      /root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:137: undefined reference to `XCreateColormap'
      /root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:146: undefined reference to `XCreateWindow'
      /root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:147: undefined reference to `XFreeColormap'
      /root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:157: undefined reference to `XFree'
      .obj/debug-shared/qoffscreenintegration_x11.o: In function `QOffscreenX11GLXContext':
      /root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:171: undefined reference to `qglx_findConfig(_XDisplay*, int, QSurfaceFormat const&, int)'
      /root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:182: undefined reference to `qglx_surfaceFormatFromGLXFBConfig(QSurfaceFormat*, _XDisplay*, __GLXFBConfigRec*, __GLXcontextRec*)'
      /root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:187: undefined reference to `qglx_findVisualInfo(_XDisplay*, int, QSurfaceFormat*)'
      /root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:198: undefined reference to `XFree'
      .obj/debug-shared/qoffscreenintegration_x11.o: In function `~QOffscreenX11GLXContext':
      /root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:205: undefined reference to `XDestroyWindow'
      .obj/debug-shared/qoffscreenintegration_x11.o: In function `QOffscreenX11GLXContext::makeCurrent(QPlatformSurface*)':
      /root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:212: undefined reference to `XResizeWindow'
      /root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:213: undefined reference to `XSync'
      collect2: ld returned 1 exit status
      make[5]: *** [../../../../plugins/platforms/libqoffscreen.so] Error 1
      make[5]: Leaving directory `/root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms/offscreen'
      make[4]: *** [sub-offscreen-make_first] Error 2
      make[4]: Leaving directory `/root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins/platforms'
      make[3]: *** [sub-platforms-make_first] Error 2
      make[3]: Leaving directory `/root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src/plugins'
      make[2]: *** [sub-plugins-make_first] Error 2
      make[2]: Leaving directory `/root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase/src'
      make[1]: *** [sub-src-make_first] Error 2
      make[1]: Leaving directory `/root/development/qt/qt5/5.1.1-src/qt-everywhere-opensource-src-5.1.1/qtbase'
      

      Attachments

        1. configure.txt
          155 kB
        2. installed.txt
          7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            buddenha Oswald Buddenhagen
            sanyibacsi Sandor Hadas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes