Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved Cannot build Qt 5.11.0 due to missing wayland libraries (On ubuntu 16.04)

    Installation and Deployment
    2
    5
    1374
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      RTbecard last edited by

      When running make with the following configuration:

      sudo ./configure -v -static -prefix "/home/james/Qt/5.11.0_Static" -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -qt-xcb -make libs -nomake tools -nomake examples -nomake tests -opensource -confirm-license -egl -opengl es2 -skip wayland
      

      I get the following errors during build:

      /usr/bin/ld.gold: error: cannot find -lqwayland-generic
      /usr/bin/ld.gold: error: cannot find -lqwayland-xcomposite-egl
      /usr/bin/ld.gold: error: cannot find -lqwayland-xcomposite-glx
      /usr/bin/ld.gold: error: cannot find -lqt-plugin-wayland-egl
      /usr/bin/ld.gold: error: cannot find -lbradient
      /usr/bin/ld.gold: error: cannot find -livi-shell
      /usr/bin/ld.gold: error: cannot find -lQt5WaylandClient
      .obj/qml_plugin_import.o:qml_plugin_import.cpp:function _GLOBAL__sub_I_qml_plugin_import.cpp: error: undefined reference to 'qt_static_plugin_QWaylandEglPlatformIntegrationPlugin()'
      .obj/qml_plugin_import.o:qml_plugin_import.cpp:function _GLOBAL__sub_I_qml_plugin_import.cpp: error: undefined reference to 'qt_static_plugin_QWaylandIntegrationPlugin()'
      .obj/qml_plugin_import.o:qml_plugin_import.cpp:function _GLOBAL__sub_I_qml_plugin_import.cpp: error: undefined reference to 'qt_static_plugin_QWaylandXCompositeEglPlatformIntegrationPlugin()'
      .obj/qml_plugin_import.o:qml_plugin_import.cpp:function _GLOBAL__sub_I_qml_plugin_import.cpp: error: undefined reference to 'qt_static_plugin_QWaylandXCompositeGlxPlatformIntegrationPlugin()'
      .obj/qml_plugin_import.o:qml_plugin_import.cpp:function _GLOBAL__sub_I_qml_plugin_import.cpp: error: undefined reference to 'qt_static_plugin_QWaylandEglClientBufferPlugin()'
      .obj/qml_plugin_import.o:qml_plugin_import.cpp:function _GLOBAL__sub_I_qml_plugin_import.cpp: error: undefined reference to 'qt_static_plugin_QWaylandBradientDecorationPlugin()'
      .obj/qml_plugin_import.o:qml_plugin_import.cpp:function _GLOBAL__sub_I_qml_plugin_import.cpp: error: undefined reference to 'qt_static_plugin_QWaylandIviShellIntegrationPlugin()'
      collect2: error: ld returned 1 exit status
      Makefile:122: recipe for target '../../bin/qml' failed
      make[3]: *** [../../bin/qml] Error 1
      make[3]: Leaving directory '/home/james/Qt5.11.0/5.11.0/Src/qtdeclarative/tools/qml'
      Makefile:126: recipe for target 'sub-qml-make_first' failed
      make[2]: *** [sub-qml-make_first] Error 2
      make[2]: Leaving directory '/home/james/Qt5.11.0/5.11.0/Src/qtdeclarative/tools'
      Makefile:72: recipe for target 'sub-tools-make_first' failed
      make[1]: *** [sub-tools-make_first] Error 2
      make[1]: Leaving directory '/home/james/Qt5.11.0/5.11.0/Src/qtdeclarative'
      Makefile:360: recipe for target 'module-qtdeclarative-make_first' failed
      make: *** [module-qtdeclarative-make_first] Error 2
      

      It looks like even after assigning -skip wayland, I still have dependancies for it. Does anyone know what the issue is here? My understanding is that wayland is only on Ubnutu from 17.04. I don't really want to manually build wayland on my machine, but rather just skip it.

      I'm using Elementary OS (Loki) which is based on Ubuntu 16.04.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Did you add -skip wayland after the build failed or did you do a completely new build ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        R 1 Reply Last reply Reply Quote 0
        • R
          RTbecard @SGaist last edited by

          @SGaist I ran sudo make clean, then ran configure and make again.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by SGaist

            I would do an out of source build so if there's trouble with the build you can nuke it start from fresh without possible artefact affecting the detection and build process.

            [Edit: Original message in the wrong thread... SGaist]

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            R 1 Reply Last reply Reply Quote 0
            • R
              RTbecard @SGaist last edited by

              @SGaist Yup, that was it! I redownloaded the source code, ran an out-of-source build, and the error is now gone and make ran all the way through with no issues.

              Thanks for the quick help!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post