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



  • 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.


  • Moderators

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



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


  • Lifetime Qt Champion

    Hi,

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



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


  • Moderators

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



  • @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.


  • Moderators

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



  • @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.


  • Moderators

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



  • @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.


  • Moderators

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.