Problem building Qt 5.4.2 to embedded linux

  • Hello,

    This is my first time in this forum and sorry for my English, it isn't my native language.

    I'm trying to build Qt for a custom embedded linux on an intel NUC and I'm getting some problems.

    My steps were:

    ./configure -release -opengl es2 -device linux-d6cx-g++ -device-option CROSS_COMPILE=/home/pf/ssdk-d6cx/host/usr/bin/x86_64-buildroot-linux-gnu- -sysroot /home/pf/ssdk-d6cx/host/usr/x86_64-buildroot-linux-gnu/sysroot -prefix /usr/local/qt5.4-d6cx -opensource -confirm-license -v -qt-xcb -nomake examples 

    after that,

    sudo make -j2

    and here I'm getting the problem. I got an Illegal instruction (core dumped) when trying to update assistant_da.qm

    I pasted the output below:

    make[1]: Entering directory `/home/pf/qt5/qtscript'
    cd src/ && ( test -e Makefile || /home/pf/qt5/qtbase/bin/qmake /home/pf/qt5/qtscript/src/ -o Makefile ) && make -f Makefile 
    make[1]: Entering directory `/home/pf/qt5/qttranslations'
    cd translations/ && ( test -e Makefile || /home/pf/qt5/qtbase/bin/qmake /home/pf/qt5/qttranslations/translations/ -o Makefile ) && make -f Makefile 
    make[2]: Entering directory `/home/pf/qt5/qtscript/src'
    cd script/ && ( test -e Makefile || /home/pf/qt5/qtbase/bin/qmake /home/pf/qt5/qtscript/src/script/ -o Makefile ) && make -f Makefile 
    make[2]: Entering directory `/home/pf/qt5/qttranslations/translations'
    QMAKE=/home/pf/qt5/qtbase/bin/qmake /home/pf/qt5/qttools/bin/lrelease assistant_da.ts -qm assistant_da.qm
    Updating 'assistant_da.qm'...
    Illegal instruction (core dumped)
    make[2]: *** [assistant_da.qm] Error 132
    make[2]: Leaving directory `/home/pf/qt5/qttranslations/translations'
    make[1]: *** [sub-translations-make_first] Error 2
    make[1]: Leaving directory `/home/pf/qt5/qttranslations'

    I had done some search to see is someone had have this problem before but I have found nothing.

    I thought that a possible way to bypass this problem is build Qt without the tools (I don't need its) and I did that but I got other problems whit a libQt5Designer that wasn't found.... that problem was when I did "sudo make install". so I come back to the first configuration.

    Could someone help me to solve that error?

    Thank you so much in advance!!


  • I found for myself a way to build qt for that device. I couldn't solve the error I got, but I bypass it. What I did was skip the modules qttools, qttranslations, qtdocs, qtscript, and qtquick1 in the configure. With that configuration I don't get any more the error.

Log in to reply

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