Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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://code.qt.io/qt/qtscxml.git -b 5.9
    ~/raspi/qt5/bin/qmake
    make
    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/src.pro ) && 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/scxml.pro ) && make -f Makefile 
    Project MESSAGE: perl -w /home/rahul/raspi/qt5/bin/syncqt.pl -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 scxml.pro 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