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. Cross-compile failed: xkbcommon no such file or directory.
Forum Updated to NodeBB v4.3 + New Features

Cross-compile failed: xkbcommon no such file or directory.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
12 Posts 3 Posters 6.4k 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.
  • A Offline
    A Offline
    Alexander-9
    wrote on last edited by
    #1

    Hi everybody, i have a this problem, how can i solve it:
    In file included from qwaylandinputdevice.cpp:52:0:
    ../shared/qwaylandxkb_p.h:46:33: fatal error: xkbcommon/xkbcommon.h: No such file or directory
    compilation terminated.
    Makefile:5394: fallo en las instrucciones para el objetivo '.obj/qwaylandinputdevice.o'
    make[3]: *** [.obj/qwaylandinputdevice.o] Error 1
    make[3]: se sale del directorio '/home/qt/Descargas/qt-everywhere-opensource-src-5.8.0/qtwayland/src/client'
    Makefile:71: fallo en las instrucciones para el objetivo 'sub-client-make_first'
    make[2]: *** [sub-client-make_first] Error 2
    make[2]: se sale del directorio '/home/qt/Descargas/qt-everywhere-opensource-src-5.8.0/qtwayland/src'
    Makefile:44: fallo en las instrucciones para el objetivo 'sub-src-make_first'
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: se sale del directorio '/home/qt/Descargas/qt-everywhere-opensource-src-5.8.0/qtwayland'
    Makefile:462: fallo en las instrucciones para el objetivo 'module-qtwayland-make_first'
    make: *** [module-qtwayland-make_first] Error 2

    This error show me when run "make" after of run my cross-compile: ./configure -prefix /usr/local/qt5 -extprefix opt/qt5 -device linux-imx6-g++ -device-option CROSS_COMPILE=/opt/poky/2.0.3/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi- -sysroot /opt/poky/2.0.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi -nomake examples -nomake tests -opengl es2 -qt-xkbcommon -v

    I hope you can help me, thanks.

    Regards.

    jsulmJ 1 Reply Last reply
    0
    • A Alexander-9

      Hi everybody, i have a this problem, how can i solve it:
      In file included from qwaylandinputdevice.cpp:52:0:
      ../shared/qwaylandxkb_p.h:46:33: fatal error: xkbcommon/xkbcommon.h: No such file or directory
      compilation terminated.
      Makefile:5394: fallo en las instrucciones para el objetivo '.obj/qwaylandinputdevice.o'
      make[3]: *** [.obj/qwaylandinputdevice.o] Error 1
      make[3]: se sale del directorio '/home/qt/Descargas/qt-everywhere-opensource-src-5.8.0/qtwayland/src/client'
      Makefile:71: fallo en las instrucciones para el objetivo 'sub-client-make_first'
      make[2]: *** [sub-client-make_first] Error 2
      make[2]: se sale del directorio '/home/qt/Descargas/qt-everywhere-opensource-src-5.8.0/qtwayland/src'
      Makefile:44: fallo en las instrucciones para el objetivo 'sub-src-make_first'
      make[1]: *** [sub-src-make_first] Error 2
      make[1]: se sale del directorio '/home/qt/Descargas/qt-everywhere-opensource-src-5.8.0/qtwayland'
      Makefile:462: fallo en las instrucciones para el objetivo 'module-qtwayland-make_first'
      make: *** [module-qtwayland-make_first] Error 2

      This error show me when run "make" after of run my cross-compile: ./configure -prefix /usr/local/qt5 -extprefix opt/qt5 -device linux-imx6-g++ -device-option CROSS_COMPILE=/opt/poky/2.0.3/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi- -sysroot /opt/poky/2.0.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi -nomake examples -nomake tests -opengl es2 -qt-xkbcommon -v

      I hope you can help me, thanks.

      Regards.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Alexander-9 Did you install libxkbcommon devel package containing the header files?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Alexander-9
        wrote on last edited by
        #3

        @jsulm, I have installed libxkbcommon devel, the install with apt-get install libxkbcommon-dev

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Did you do that for your poky distribution ? Since you are cross-compiling you need to install the dev packages for your target.

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

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Alexander-9
            wrote on last edited by Alexander-9
            #5

            @SGaist , Yes do for poky distribution, and how i can install or get the packages for my target freescale imx6 and this is my cross-compiling:
            ./configure -prefix /usr/local/qt5 -extprefix opt/qt5 -device linux-imx6-g++ -device-option CROSS_COMPILE=/opt/poky/2.0.3/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi- -sysroot /opt/poky/2.0.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi -nomake examples -nomake tests -opengl es2 -qt-xkbcommon -v

            jsulmJ 1 Reply Last reply
            0
            • A Alexander-9

              @SGaist , Yes do for poky distribution, and how i can install or get the packages for my target freescale imx6 and this is my cross-compiling:
              ./configure -prefix /usr/local/qt5 -extprefix opt/qt5 -device linux-imx6-g++ -device-option CROSS_COMPILE=/opt/poky/2.0.3/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi- -sysroot /opt/poky/2.0.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi -nomake examples -nomake tests -opengl es2 -qt-xkbcommon -v

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Alexander-9 You should check whether your sysroot (/opt/poky/2.0.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi) contains that header file.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              A 1 Reply Last reply
              0
              • jsulmJ jsulm

                @Alexander-9 You should check whether your sysroot (/opt/poky/2.0.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi) contains that header file.

                A Offline
                A Offline
                Alexander-9
                wrote on last edited by Alexander-9
                #7

                @jsulm, Hi already i can get qmake, but in the moment of debugging, i display me this:

                17:38:54: Running steps for project untitled...
                17:38:54: Starting: "/opt/poky/qt5/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake" /root/untitled/untitled.pro -spec linux-g++ CONFIG+=debug
                Cannot find feature spec_pre.prf
                Error processing project file: /root/untitled/untitled.pro
                17:38:54: The process "/opt/poky/qt5/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake" exited with code 3.
                Error while building/deploying project untitled (kit: arm)
                When executing step "qmake"
                17:38:54: Elapsed time: 00:00.

                In run display me:

                sh: /home/alex/untitled: No such file or directory
                Application finished with exit code 127.

                This error is for the toolchain or i have add something a my .pro??

                Thanks, regards.

                jsulmJ 1 Reply Last reply
                0
                • A Alexander-9

                  @jsulm, Hi already i can get qmake, but in the moment of debugging, i display me this:

                  17:38:54: Running steps for project untitled...
                  17:38:54: Starting: "/opt/poky/qt5/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake" /root/untitled/untitled.pro -spec linux-g++ CONFIG+=debug
                  Cannot find feature spec_pre.prf
                  Error processing project file: /root/untitled/untitled.pro
                  17:38:54: The process "/opt/poky/qt5/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake" exited with code 3.
                  Error while building/deploying project untitled (kit: arm)
                  When executing step "qmake"
                  17:38:54: Elapsed time: 00:00.

                  In run display me:

                  sh: /home/alex/untitled: No such file or directory
                  Application finished with exit code 127.

                  This error is for the toolchain or i have add something a my .pro??

                  Thanks, regards.

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Alexander-9 First: why do you work as root?! This is a very bad idea.
                  Second: shouldn't it be like: /root/alex/untitled/untitled.pro ?

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  A 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @Alexander-9 First: why do you work as root?! This is a very bad idea.
                    Second: shouldn't it be like: /root/alex/untitled/untitled.pro ?

                    A Offline
                    A Offline
                    Alexander-9
                    wrote on last edited by
                    #9

                    @jsulm, I already change the url of my project, and when build the application in qt, i display me this error:

                    12:29:16: Running steps for project Imx6-Widget...
                    12:29:16: Configuration unchanged, skipping qmake step.
                    12:29:16: Starting: "/usr/bin/make"
                    /opt/poky/qt5/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug -o Makefile ../Imx6-Widget/Imx6-Widget.pro
                    g++ -o Imx6-Widget main.o qrc_qml.o -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lpthread
                    main.o:(.qtversion[qt_version_tag]+0x0): referencia a `qt_version_tag' sin definir
                    Makefile:199: fallo en las instrucciones para el objetivo 'Imx6-Widget'
                    collect2: error: ld returned 1 exit status
                    make: *** [Imx6-Widget] Error 1
                    12:29:16: The process "/usr/bin/make" exited with code 2.
                    Error while building/deploying project Imx6-Widget (kit: arm)
                    When executing step "Make"
                    12:29:16: Elapsed time: 00:00.

                    jsulmJ 1 Reply Last reply
                    0
                    • A Alexander-9

                      @jsulm, I already change the url of my project, and when build the application in qt, i display me this error:

                      12:29:16: Running steps for project Imx6-Widget...
                      12:29:16: Configuration unchanged, skipping qmake step.
                      12:29:16: Starting: "/usr/bin/make"
                      /opt/poky/qt5/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug -o Makefile ../Imx6-Widget/Imx6-Widget.pro
                      g++ -o Imx6-Widget main.o qrc_qml.o -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lpthread
                      main.o:(.qtversion[qt_version_tag]+0x0): referencia a `qt_version_tag' sin definir
                      Makefile:199: fallo en las instrucciones para el objetivo 'Imx6-Widget'
                      collect2: error: ld returned 1 exit status
                      make: *** [Imx6-Widget] Error 1
                      12:29:16: The process "/usr/bin/make" exited with code 2.
                      Error while building/deploying project Imx6-Widget (kit: arm)
                      When executing step "Make"
                      12:29:16: Elapsed time: 00:00.

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @Alexander-9 Looks like you're linking against wrong Qt version. You should clean-up your project, execute qmake again and do a rebuild.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      A 1 Reply Last reply
                      0
                      • jsulmJ jsulm

                        @Alexander-9 Looks like you're linking against wrong Qt version. You should clean-up your project, execute qmake again and do a rebuild.

                        A Offline
                        A Offline
                        Alexander-9
                        wrote on last edited by
                        #11

                        @jsulm, when run qmake -r in the terminal, show me:
                        QMake version 3.0
                        Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu

                        so i have that work with Qt version 5.5.1, because in this moment work with Qt5.8.

                        jsulmJ 1 Reply Last reply
                        0
                        • A Alexander-9

                          @jsulm, when run qmake -r in the terminal, show me:
                          QMake version 3.0
                          Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu

                          so i have that work with Qt version 5.5.1, because in this moment work with Qt5.8.

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @Alexander-9 Sorry, I don't understand your last answer. The error message you get says that you're mixing different Qt versions. As I said you should clean up your project, execute qmake (the correct one!) and build again.

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          1

                          • Login

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