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

QtWayland 6 doesn't compile because of a linker error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 6.0.0
    • GUI: OpenGL, QPA: Wayland
    • None
    • Linux/Wayland

      Hi

       

      Trying to compile QtWayland 6 against QtBase 6 results in a linker error

      QtBase is compiled with

      ```

      ../configure -confirm-license -opensource -qpa wayland -egl -prefix $INSTALLDIR -libdir $INSTALLDIR/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) -release -feature-accessibility -dbus -system-sqlite -no-warnings-are-errors -no-separate-debug-info -nomake tests -nomake examples -libinput -optimize-size

      ```

      QtWayland

      ```

      cmake -Wno-dev .. -DCMAKE_INSTALL_PREFIX=$INSTALLDIR -DCMAKE_PREFIX_PATH=$INSTALLDIR -DCMAKE_BUILD_TYPE=Release

      ```

       

      Below is the error I get:

      ```

      /usr/bin/ld: CMakeFiles/WaylandCompositor.dir/compositor_api/qwaylandcompositor.cpp.o: in function `QWaylandCompositor::grabSurface(QWaylandSurfaceGrabber*, QWaylandBufferRef const&)':
      qwaylandcompositor.cpp.text+0x2e56): undefined reference to `QOpenGLFramebufferObject::toImage() const'
      collect2: error: ld returned 1 exit status
      make[2]: *** [src/compositor/CMakeFiles/WaylandCompositor.dir/build.make:1430: lib/i386-linux-gnu/libQt6WaylandCompositor.so.6.0.0] Error 1
      make[1]: *** [CMakeFiles/Makefile2:1684: src/compositor/CMakeFiles/WaylandCompositor.dir/all] Error 2
      make[1]: *** Waiting for unfinished jobs....

      ```

       

       

      This is on Debian Testing

      Thanks

        1. qt6buildlogs.tar.gz
          29 kB
          nerdopolis turfwalker
        2. qt6buildlogs.tar.gz
          29 kB
          nerdopolis turfwalker
        3. qt6logs.tar.gz
          115 kB
          nerdopolis turfwalker
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            nerdopolisturfwalker nerdopolis turfwalker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes