Native_build qt creator on rapsberry 2



  • Hi, i have build qt 5.4.2 on my rpi 2 with this tutorial "qt5 on pi":http://qt-project.org/wiki/Native_Build_of_Qt5_on_a_Raspberry_Pi . It's work fine but know i want to build qtcreator also on the card. For this i followed this : "creator":http://qt-project.org/wiki/Building-Qt-Creator-from-Git
    when i use qmake -r i have this error :
    Project ERROR: Unknown module(s) in QT: script

    In the tutorial they said this :
    Note: If you built qt5 from the git repository and you get an error like

    Project ERROR: Unknown module(s) in QT: script
    ..then In your qt5 repository run:

    make module-qtscript

    but when i looked to my qtscript i saw that is empty ! i decided to get it since git, then i relaunched ./configure to update the makefile. Then i launch :

    @make module-qtscript@

    it started fine but after many seconds i obtained this errors :
    @make[1]: Entering directory '/home/pi/opt/qt5/qtscript'
    cd src/ && ( test -e Makefile || /usr/local/qt5/bin/qmake /home/pi/opt/qt5/qtscript/src/src.pro -o Makefile ) && make -f Makefile
    make[2]: Entering directory '/home/pi/opt/qt5/qtscript/src'
    cd script/ && ( test -e Makefile || /usr/local/qt5/bin/qmake /home/pi/opt/qt5/qtscript/src/script/script.pro -o Makefile ) && make -f Makefile
    Project WARNING: You should probably load(qt_build_config) first in script.pro for QtScript, as the latter also load()s qt_module.
    Project MESSAGE: Not doing so may lead to qt_module.prf overriding compiler/linker options in your .pro file.
    Project MESSAGE: Ignore this warning with CONFIG+=no_qt_module_warning if you know what you are doing.
    Project ERROR: Module does not define version.
    Makefile:43: recipe for target 'sub-script-make_first-ordered' failed
    make[2]: *** [sub-script-make_first-ordered] Error 3
    make[2]: Leaving directory '/home/pi/opt/qt5/qtscript/src'
    Makefile:44: recipe for target 'sub-src-make_first' failed
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/pi/opt/qt5/qtscript'
    Makefile:372: recipe for target 'module-qtscript' failed
    make: *** [module-qtscript] Error 2
    @

    Do you know how i can resolve this ?



  • Maybe look around the files (most likely in the .pro files) of other modules in the source and see if they mention a version-related property, constant, etc... and just copy/paste and see what happens (although you may have done that already and found nothing that would help you, which made you post your issue here).



  • Thanks for your reply, i will try when i have the time your solution... i let you know if it work !


Log in to reply
 

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