Please nominate your Qt Champions for 2021!

Error while cross compiling qtscxml module for raspberry pi

  • I am getting the following error message while cross compiling qtscxml module for raspberry pi.
    I am running the following commands-
    git clone git:// -b 5.9
    make install

    It fails on make with following error script

    cd src/ && ( test -e Makefile || /home/rahul/raspi/qt5/bin/qmake -o Makefile /home/rahul/raspi/qtscxml/src/ ) && make -f Makefile 
    make[1]: Entering directory '/home/rahul/raspi/qtscxml/src'
    cd scxml/ && ( test -e Makefile || /home/rahul/raspi/qt5/bin/qmake -o Makefile /home/rahul/raspi/qtscxml/src/scxml/ ) && make -f Makefile 
    Project MESSAGE: perl -w /home/rahul/raspi/qt5/bin/ -module QtScxml -version 5.9.8 -outdir /home/rahul/raspi/qtscxml /home/rahul/raspi/qtscxml
    <srcbase> = /home/rahul/raspi/qtscxml 
    <outbase> = /home/rahul/raspi/qtscxml 
    Project ERROR: Unknown module(s) in QT: qml-private
    Makefile:44: recipe for target 'sub-scxml-make_first' failed
    make[1]: *** [sub-scxml-make_first] Error 3
    make[1]: Leaving directory '/home/rahul/raspi/qtscxml/src'
    Makefile:47: recipe for target 'sub-src-make_first' failed
    make: *** [sub-src-make_first] Error 2

    What could be the issue ?

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You are missing the QtDeclarative module at least.

    What modules did you already cross-compile ?

  • Qt Champions 2017

    To build you need, core-private, qml-private modules should have been built. Looking at the error qml-private is not build. This indicates to me that you have already built core and not qml. As @SGaist already suggested try building qtdeclarative before building the qtscxml.

  • Qt Champions 2017

    Did the suggestion work ? Are you able to solve the issue ? Do you need help.

Log in to reply