Cross compile error: *** [sub-imports-make_first-ordered] Error 2



  • i'm trying to cross compile qt5.1 for a freescale processor

    @./configure -v -opensource -confirm-license -no-pch -qt-xcb -icu -no-egl
    -make libs -device imx6
    -compile-examples
    -device-option CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-
    -sysroot /home/tom/Downloads/qt/rootfs -no-gcc-sysroot
    -prefix /opt/qt5.1@

    the make fails with:

    @/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -Wl,-rpath-link,/home/tom/Downloads/qt/rootfs/usr/lib -Wl,-O1 -Wl,-rpath,/opt/qt5.1/lib -shared -o libqmllocalstorageplugin.so .obj/release-shared/plugin.o -L/home/tom/Downloads/qt/rootfs/usr/lib -L/home/tom/Downloads/qt/qt-everywhere-opensource-src-5.1.0/qtdeclarative/lib -lQt5Qml -L/home/tom/Downloads/qt/qt-everywhere-opensource-src-5.1.0/qtbase/lib -lQt5Network -lQt5Sql -L/home/tom/Downloads/qt/qt-everywhere-opensource-src-5.1.0/qtjsbackend/lib -lQt5V8 -lQt5Core -lpthread
    mv -f libqmllocalstorageplugin.so ../../../qml/QtQuick/LocalStorage/
    make[4]: Leaving directory /home/tom/Downloads/qt/qt-everywhere-opensource-src-5.1.0/qtdeclarative/src/imports/localstorage' rm -f libqmlxmllistmodelplugin.so /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++ -Wl,-rpath-link,/home/tom/Downloads/qt/rootfs/usr/lib -Wl,-O1 -Wl,-rpath,/opt/qt5.1/lib -shared -o libqmlxmllistmodelplugin.so .obj/release-shared/qqmlxmllistmodel.o .obj/release-shared/plugin.o .obj/release-shared/moc_qqmlxmllistmodel_p.o -L/home/tom/Downloads/qt/rootfs/usr/lib -L/home/tom/Downloads/qt/qt-everywhere-opensource-src-5.1.0/qtdeclarative/lib -lQt5Qml -L/home/tom/Downloads/qt/qt-everywhere-opensource-src-5.1.0/qtbase/lib -L/home/tom/Downloads/qt/qt-everywhere-opensource-src-5.1.0/qtxmlpatterns/lib -lQt5XmlPatterns -lQt5Network -L/home/tom/Downloads/qt/qt-everywhere-opensource-src-5.1.0/qtjsbackend/lib -lQt5V8 -lQt5Core -lpthread mv -f libqmlxmllistmodelplugin.so ../../../qml/QtQuick/XmlListModel/ make[4]: Leaving directory/home/tom/Downloads/qt/qt-everywhere-opensource-src-5.1.0/qtdeclarative/src/imports/xmllistmodel'
    make[3]: Leaving directory /home/tom/Downloads/qt/qt-everywhere-opensource-src-5.1.0/qtdeclarative/src/imports' make[2]: *** [sub-imports-make_first-ordered] Error 2 make[2]: Leaving directory/home/tom/Downloads/qt/qt-everywhere-opensource-src-5.1.0/qtdeclarative/src'
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory `/home/tom/Downloads/qt/qt-everywhere-opensource-src-5.1.0/qtdeclarative'
    make: *** [module-qtdeclarative-make_first] Error 2
    @

    it looks like it is linking but i have no idea what the error means.

    any hints ?



  • bump because the forums post-replies were not working while this was active.



  • I have the same problem.
    ./configure -xplatform linux-arm-gnueabi-g++ -no-c++11 -no-pch -nomake examples -nomake tests -no-neon

    make[4]: Leaving directory /home/qt-everywhere-opensource-src-5.1.0/qtdeclarative/src/imports/xmllistmodel' make[3]: Leaving directory/home/qt-everywhere-opensource-src-5.1.0/qtdeclarative/src/imports'
    make[2]: *** [sub-imports-make_first-ordered] Error 2
    make[2]: Leaving directory /home/qt-everywhere-opensource-src-5.1.0/qtdeclarative/src' make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory/home/qt-everywhere-opensource-src-5.1.0/qtdeclarative'
    make: *** [module-qtdeclarative-make_first] Error 2


Log in to reply
 

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