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

QT Source code cross compilation failed



  • Hi Team,

    I am using Ubutntu16 and qt creator version 4.5.2 (qt-creator-opensource-linux-x86_64-4.5.2.run), My requirement is to cross compile source code for yocto (imx6ul).
    and run qt application in imx6ul development board.
    Below links used for install qt creator and configure - http://variwiki.com/index.php?title=Yocto_Qt_Creator&release=RELEASE_ROCKO_V1.1_DART-6UL , Yocto build system installation link - http://variwiki.com/index.php?title=Yocto_Build_Release&release=RELEASE_ROCKO_V1.1_DART-6UL, QT5 tool chain installation - http://variwiki.com/index.php?title=Yocto_Qt5_Toolchain_installation&release=RELEASE_ROCKO_V1.1_DART-6UL.

    After complete instillation while compilation below errors are observed :

    18:30:42: Running steps for project compiler_test...
    18:30:42: Configuration unchanged, skipping qmake step.
    18:30:42: Starting: "/usr/bin/make"
    c -pipe --sysroot=/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NO_QML_DEBUGGER -DQT_NETWORK_LIB -DQT_CORE_LIB -I../compiler_test -I. -I/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/include/qt5 -I/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/include/qt5/QtQuick -I/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/include/qt5/QtGui -I/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/include/qt5/QtQml -I/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/include/qt5/QtNetwork -I/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/include/qt5/QtCore -I. -I/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o main.o ../compiler_test/main.cpp
    Makefile:594: recipe for target 'main.o' failed
    /opt/fslc-x11/2.4.3/sysroots/x86_64-fslcsdk-linux/usr/bin/qt5/rcc -name qml ../compiler_test/qml.qrc -o qrc_qml.cpp
    make: c: Command not found
    make: [main.o] Error 127 (ignored)
    c -pipe --sysroot=/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NO_QML_DEBUGGER -DQT_NETWORK_LIB -DQT_CORE_LIB -I../compiler_test -I. -I/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/include/qt5 -I/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/include/qt5/QtQuick -I/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/include/qt5/QtGui -I/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/include/qt5/QtQml -I/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/include/qt5/QtNetwork -I/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/include/qt5/QtCore -I. -I/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o qrc_qml.o qrc_qml.cpp
    Makefile:597: recipe for target 'qrc_qml.o' failed
    sysroot=/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi -o compiler_test main.o qrc_qml.o -L/opt/fslc-x11/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/lib -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lpthread
    Makefile:217: recipe for target 'compiler_test' failed
    make: c: Command not found
    make: [qrc_qml.o] Error 127 (ignored)
    /bin/sh: 1: -o: not found
    make: [compiler_test] Error 127 (ignored)
    18:30:42: The process "/usr/bin/make" exited normally.
    18:30:42: Elapsed time: 00:00.

    Please any one help on this issue.

    Regards
    Naveen.


Log in to reply