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

Building offscreen plugin broken on Xubuntu 16.04

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.14.0 Alpha
    • 5.13.0 Beta 1
    • QPA
    • None
    • Linux/X11
    • 54ceb8a5f86465dcde334973dedf401b31210e63 (qt/qtbase/dev)

    Description

      paeglis, change https://codereview.qt-project.org/#/c/253904/3 broke the build on Vanilla Xubuntu 16.04 amd64:

      g++ -m64 -Wl,--no-undefined -fuse-ld=gold -Wl,--enable-new-dtags -Wl,--gdb-index -Wl,-rpath,/home/rw/projects/qt/build/qtbase/lib -shared -o libqoffscreen.so .obj/main.o .obj/qoffscreenintegration.o .obj/qoffscreenwindow.o .obj/qoffscreencommon.o .obj/qoffscreenintegration_x11.o  -L/usr/X11R6/lib64 -L/home/rw/projects/qt/build/qtbase/lib -lQt5EventDispatcherSupport -lQt5FontDatabaseSupport -lfontconfig -lfreetype -lz -lQt5GlxSupport -lQt5Gui -lQt5Core -lGL -lpthread    
      /home/rw/projects/qt/qt5/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:171: error: undefined reference to 'XCreateColormap'
      /home/rw/projects/qt/qt5/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:181: error: undefined reference to 'XCreateWindow'
      /home/rw/projects/qt/qt5/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:182: error: undefined reference to 'XFreeColormap'
      /home/rw/projects/qt/qt5/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:192: error: undefined reference to 'XFree'
      /home/rw/projects/qt/qt5/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:252: error: undefined reference to 'XDestroyWindow'
      /home/rw/projects/qt/qt5/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:259: error: undefined reference to 'XResizeWindow'
      /home/rw/projects/qt/qt5/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:260: error: undefined reference to 'XSync'
      /home/rw/projects/qt/qt5/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:137: error: undefined reference to 'XInitThreads'
      /home/rw/projects/qt/qt5/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:140: error: undefined reference to 'XOpenDisplay'
      /home/rw/projects/qt/qt5/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:148: error: undefined reference to 'XCloseDisplay'
      /home/rw/projects/qt/qt5/qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp:242: error: undefined reference to 'XFree'
      /home/rw/projects/qt/qt5/qtbase/src/platformsupport/glxconvenience/qglxconvenience.cpp:181: error: undefined reference to 'XFree'
      /home/rw/projects/qt/qt5/qtbase/src/platformsupport/glxconvenience/qglxconvenience.cpp:181: error: undefined reference to 'XFree'
      collect2: error: ld returned 1 exit status
      Makefile:128: recipe for target '../../../../plugins/platforms/libqoffscreen.so' failed
      

      The search path -L/usr/X11R6/lib64 does not exist. When reverting, qtbase is built successfully. My configure command line:

       -developer-build -opensource -nomake examples -confirm-license -platform linux-g++-64 -skip qtactiveqt -skip qt3d -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmultimedia -skip qtquickcontrols -skip qtquickcontrols2 -skip qtpurchasing -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtspeech -skip qtsvg -skip qtwayland -skip qtvirtualkeyboard -skip qtwebchannel -skip qtwebengine -skip qtwebview -use-gold-linker
      

      I have absolutely no clue about platform plugins and libxcb, but it looks like libxcb is required for the offscreen plugin or do I miss a configure flag?

      Attachments

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

        Activity

          People

            paeglis Gatis Paeglis
            rweickelt Richard Weickelt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes