Problem compiling qt-everywhere-opensource-src-4.8.6 with linaro cross compiler



  • I'm trying to cross compile qt-everywhere-opensource 4.8.6 using a linaro arm-linux-gnueabihf-4.8-2014.04_linux/ compiler.

    Here is my configure command line:

    ./configure -v -opensource -confirm-license -prefix /opt/qt -embedded arm -platform qws/linux-x86-g++ -xplatform qws/linux-am335x-g++ -depths 16,24 -no-mmx -no-3dnow -no-sse -no-sse2 -no-glib -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -little-endian -host-big-endian -no-pch -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-webkit -no-qt3support -nomake examples -nomake demos -nomake docs -nomake translations

    The configure script seems to start out by trying to produce a qmake executable, the compiles complete just fine but the final link fails:

    arm-linux-gnueabihf-g++ -march=armv7-a -mthumb -mthumb-interwork -mfloat-abi=hard -mfpu=neon --sysroot=/home/gwilson/bbb_debian/debian-jessie-armhf-rootfs -I/home/gwilson/bbb_debian/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux/arm-linux-gnueabihf/libc/usr/include -L/home/gwilson/bbb_debian/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux/arm-linux-gnueabihf/libc/usr/lib/arm-linux-gnueabihf -o "/home/gwilson/bbb_debian/qt-everywhere-opensource-src-4.8.6/bin/qmake" project.o property.o main.o makefile.o unixmake2.o unixmake.o mingw_make.o option.o winmakefile.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o msvc_vcproj.o msvc_vcxproj.o msvc_nmake.o msvc_objectmodel.o msbuild_objectmodel.o symmake.o initprojectdeploy_symbian.o symmake_abld.o symmake_sbsv2.o symbiancommon.o registry.o epocroot.o gbuild.o qtextcodec.o qutfcodec.o qstring.o qtextstream.o qiodevice.o qmalloc.o qglobal.o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlist.o qfile.o qfilesystementry.o qfilesystemengine_unix.o qfilesystemengine.o qfilesystemiterator_unix.o qfsfileengine_unix.o qfsfileengine.o qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o qsettings.o qsystemerror.o qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlocale_tools.o qlocale_unix.o qlinkedlist.o qnumeric.o qcryptographichash.o qxmlstream.o qxmlutils.o
    /home/gwilson/bbb_debian/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find crt1.o: No such file or directory
    /home/gwilson/bbb_debian/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: No such file or directory
    collect2: error: ld returned 1 exit status

    the link can't find the crt1.o file or the crti.o file. Both files are in the /home/gwilson/bbb_debian/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux/arm-linux-gnueabihf/libc/usr/lib/arm-linux-gnueabihf directory that is included in the ld command line with a -L to include it as a link search path.

    I must be missing something, have some setup wrong or something, any help would be appreciated.



  • Same problem here.
    Is there already a solution?



  • Same problem here.
    Is there already a solution?



  • hi

    I use linaro compiler for freescale imx6

    (crosstool-NG linaro-1.13.1-4.9-2014.05 - Linaro GCC 2014.05) 4.9.1 20140505 (prerelease)
    Copyright (C) 2014 Free Software Foundation, Inc.

    my config is
    @#vi ~/distribs/dev-tools/Qt/qt-everywhere-opensource-src-5.4.0/qtbase/mkspecs/devices/linux-imx6-g++/qmake.conf@

    edit line with
    @IMX6_CFLAGS = -march=armv7-a -mfpu=neon -mfloat-abi=hard -DLINUX=1 -DEGL_API_FB=1@

    and
    @#cd ~/distribs/dev-tools/Qt/qt-everywhere-opensource-src-5.4.0
    #./configure -opensource -confirm-license
    -device imx6
    -device-option CROSS_COMPILE=/usr/local/linaro-toolchain/bin/arm-linux-gnueabihf-
    -no-pch
    -no-opengl
    -no-xcb
    -opengl es2
    -make libs
    -nomake examples
    -nomake tests
    -sysroot /home/work/fs -no-gcc-sysroot
    -prefix /opt/qt5
    -v@

    after this I have no problems with crosscompile of qt

    @#make -j5
    #sudo make install@



  • hi

    I use linaro compiler for freescale imx6

    (crosstool-NG linaro-1.13.1-4.9-2014.05 - Linaro GCC 2014.05) 4.9.1 20140505 (prerelease)
    Copyright (C) 2014 Free Software Foundation, Inc.

    my config is
    @#vi ~/distribs/dev-tools/Qt/qt-everywhere-opensource-src-5.4.0/qtbase/mkspecs/devices/linux-imx6-g++/qmake.conf@

    edit line with
    @IMX6_CFLAGS = -march=armv7-a -mfpu=neon -mfloat-abi=hard -DLINUX=1 -DEGL_API_FB=1@

    and
    @#cd ~/distribs/dev-tools/Qt/qt-everywhere-opensource-src-5.4.0
    #./configure -opensource -confirm-license
    -device imx6
    -device-option CROSS_COMPILE=/usr/local/linaro-toolchain/bin/arm-linux-gnueabihf-
    -no-pch
    -no-opengl
    -no-xcb
    -opengl es2
    -make libs
    -nomake examples
    -nomake tests
    -sysroot /home/work/fs -no-gcc-sysroot
    -prefix /opt/qt5
    -v@

    after this I have no problems with crosscompile of qt

    @#make -j5
    #sudo make install@


Log in to reply
 

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