Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot build Qt 5.11.0 due to missing wayland libraries (On ubuntu 16.04)
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 1.8k Views
  • 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 Offline
    R Offline
    RTbecard
    wrote on 22 Jun 2018, 20:28 last edited by
    #1

    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
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 22 Jun 2018, 20:35 last edited by
      #2

      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 22 Jun 2018, 21:01
      0
      • S SGaist
        22 Jun 2018, 20:35

        Hi,

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

        R Offline
        R Offline
        RTbecard
        wrote on 22 Jun 2018, 21:01 last edited by
        #3

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

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 22 Jun 2018, 21:09 last edited by SGaist
          #4

          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 23 Jun 2018, 07:44
          0
          • S SGaist
            22 Jun 2018, 21:09

            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]

            R Offline
            R Offline
            RTbecard
            wrote on 23 Jun 2018, 07:44 last edited by
            #5

            @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
            0

            3/5

            22 Jun 2018, 21:01

            • Login

            • Login or register to search.
            3 out of 5
            • First post
              3/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved