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. Qt 5.7.0 qtwayland build error with gcc6
Forum Updated to NodeBB v4.3 + New Features

Qt 5.7.0 qtwayland build error with gcc6

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 2.0k Views 1 Watching
  • 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.
  • Paul H.P Offline
    Paul H.P Offline
    Paul H.
    wrote on last edited by
    #1

    I am trying to build 5.7.0 in linux with gcc 6.1.0. The module qtwayland is failing. If I skip this module, everything else builds. There are multiple errors about something "not being declared in this scope". Here is the first error:

    In file included from /home/paul/mnt/sources/build-qt/qtbase/include/QtCore/qglobal.h:1:0,
                     from ../../include/QtWaylandCompositor/../../../../../../src_mnt/sources/qt5/qtwayland/src/compositor/global/qwaylandexport.h:40,
                     from ../../include/QtWaylandCompositor/qwaylandexport.h:1,
                     from ../../include/QtWaylandCompositor/../../../../../../src_mnt/sources/qt5/qtwayland/src/compositor/global/qwaylandcompositorextension.h:40,
                     from ../../include/QtWaylandCompositor/qwaylandcompositorextension.h:1,
                     from ../../include/QtWaylandCompositor/QWaylandCompositorExtension:1,
                     from /home/paul/src_mnt/sources/qt5/qtwayland/src/compositor/extensions/qwaylandtextinput.h:40,
                     from /home/paul/src_mnt/sources/qt5/qtwayland/src/compositor/extensions/qwaylandtextinput.cpp:37:
    /home/paul/src_mnt/sources/qt5/qtwayland/src/compositor/extensions/qwaylandtextinput.cpp: In member function 'void QWaylandTextInputPrivate::sendKeyEvent(QKeyEvent*)':
    /home/paul/src_mnt/sources/qt5/qtwayland/src/compositor/extensions/qwaylandtextinput.cpp:218:35: error: 'QWaylandXkb' was not declared in this scope
         foreach (xkb_keysym_t keysym, QWaylandXkb::toKeysym(event)) {
    

    Here are my build commands:

    export CXXFLAGS=-fno-delete-null-pointer-checks &&
    
    <path_to_git_source>/configure -prefix         /opt/qt5 \
                -sysconfdir     /etc/xdg   \
                -confirm-license           \
                -opensource                \
                -dbus-linked               \
                -openssl-linked            \
                -system-harfbuzz           \
                -system-sqlite             \
                -nomake examples           \
                -no-rpath                  \
                -optimized-qmake           \
                -skip qtwebengine          &&
    make
    

    Any ideas on how to fix?

    frustF 1 Reply Last reply
    0
    • Paul H.P Offline
      Paul H.P Offline
      Paul H.
      wrote on last edited by
      #2

      Ok, I got this figured out. I thought it might be an issue with gcc6, so I tried on a different system with gcc5, which was successful. I compared the config.summary files from the 2 builds and saw that the unsuccessful build was attempting to use a bundled version of libxkbcommon. I installed libxkbcommon-0.6.1 on the gcc6 system and re-built. This time it was successful.

      Paul

      1 Reply Last reply
      1
      • Paul H.P Paul H.

        I am trying to build 5.7.0 in linux with gcc 6.1.0. The module qtwayland is failing. If I skip this module, everything else builds. There are multiple errors about something "not being declared in this scope". Here is the first error:

        In file included from /home/paul/mnt/sources/build-qt/qtbase/include/QtCore/qglobal.h:1:0,
                         from ../../include/QtWaylandCompositor/../../../../../../src_mnt/sources/qt5/qtwayland/src/compositor/global/qwaylandexport.h:40,
                         from ../../include/QtWaylandCompositor/qwaylandexport.h:1,
                         from ../../include/QtWaylandCompositor/../../../../../../src_mnt/sources/qt5/qtwayland/src/compositor/global/qwaylandcompositorextension.h:40,
                         from ../../include/QtWaylandCompositor/qwaylandcompositorextension.h:1,
                         from ../../include/QtWaylandCompositor/QWaylandCompositorExtension:1,
                         from /home/paul/src_mnt/sources/qt5/qtwayland/src/compositor/extensions/qwaylandtextinput.h:40,
                         from /home/paul/src_mnt/sources/qt5/qtwayland/src/compositor/extensions/qwaylandtextinput.cpp:37:
        /home/paul/src_mnt/sources/qt5/qtwayland/src/compositor/extensions/qwaylandtextinput.cpp: In member function 'void QWaylandTextInputPrivate::sendKeyEvent(QKeyEvent*)':
        /home/paul/src_mnt/sources/qt5/qtwayland/src/compositor/extensions/qwaylandtextinput.cpp:218:35: error: 'QWaylandXkb' was not declared in this scope
             foreach (xkb_keysym_t keysym, QWaylandXkb::toKeysym(event)) {
        

        Here are my build commands:

        export CXXFLAGS=-fno-delete-null-pointer-checks &&
        
        <path_to_git_source>/configure -prefix         /opt/qt5 \
                    -sysconfdir     /etc/xdg   \
                    -confirm-license           \
                    -opensource                \
                    -dbus-linked               \
                    -openssl-linked            \
                    -system-harfbuzz           \
                    -system-sqlite             \
                    -nomake examples           \
                    -no-rpath                  \
                    -optimized-qmake           \
                    -skip qtwebengine          &&
        make
        

        Any ideas on how to fix?

        frustF Offline
        frustF Offline
        frust
        wrote on last edited by
        #3

        @Paul-H. i got the same error , and installed libxkbcommon-0.6.1,but the same error is also ~
        these days , i compiled qt5 for a lot time , but eventuily disappointed~

        1 Reply Last reply
        0

        • Login

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