Problem compiling for Qt5



  • Hello everybody.

    I'm new to Qt5, and I'm having some troubles compiling a Widget application for a Apalis iMX6 board that I have here. I followed all the instructions in order to install and configure Qt Creator for compiling for this board. But always when I try to Build my project, I get this message:

    Running steps for project TesteWidget...
    Starting: "/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/qt5/qmake" /home/gustavo/Projetos/TesteWidget/TesteWidget/TesteWidget.pro -r -spec linux-oe-g++ CONFIG+=debug
    The process "/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/qt5/qmake" exited normally.
    Starting: "/usr/bin/make"
    /usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/qt5/uic ../TesteWidget/mainwindow.ui -o ui_mainwindow.h
    arm-angstrom-linux-gnueabi-g++ -march=armv7-a -mthumb -mthumb-interwork -mfloat-abi=hard -mfpu=neon --sysroot=/usr/local/oecore-i686/sysroots/armv7at2hf-vfp-neon-angstrom-linux-gnueabi -c -pipe -O2 -pipe -g -feliminate-unused-debug-types -g -DLINUX=1 -DEGL_API_FB=1 -Wall -W -D_REENTRANT -fPIC -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../TesteWidget -I. -I/usr/local/oecore-i686/sysroots/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/usr/include/qt5 -I/usr/local/oecore-i686/sysroots/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/usr/include/qt5/QtWidgets -I/usr/local/oecore-i686/sysroots/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/usr/include/qt5/QtGui -I/usr/local/oecore-i686/sysroots/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I/usr/local/oecore-i686/sysroots/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o main.o ../TesteWidget/main.cpp
    MPFR: Can't allocate memory (size=4294967288)
    In file included from /usr/local/oecore-i686/sysroots/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/usr/include/qt5/QtGui/qwindowdefs.h:37:0,
    from /usr/local/oecore-i686/sysroots/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/usr/include/qt5/QtWidgets/qwidget.h:37,
    from /usr/local/oecore-i686/sysroots/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/usr/include/qt5/QtWidgets/qmainwindow.h:37,
    from /usr/local/oecore-i686/sysroots/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/usr/include/qt5/QtWidgets/QMainWindow:1,
    from ../TesteWidget/mainwindow.h:4,
    from ../TesteWidget/main.cpp:1:
    /usr/local/oecore-i686/sysroots/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/usr/include/qt5/QtCore/qglobal.h:505:1: internal compiler error: Aborted
    { return d >= 0.0 ? int(d + 0.5) : int(d - double(int(d-1)) + 0.5) + int(d-1); }
    ^
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See http://gcc.gnu.org/bugs.html for instructions.
    Makefile:717: recipe for target 'main.o' failed
    make: *** [main.o] Error 1
    13:56:44: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project TesteWidget (kit: Toradex Qt Embedded)
    When executing step "Make"
    13:56:44: Elapsed time: 00:00.

    I've searched for any clues, but I didn't find any...
    Now I don't know what to do now... Could anybody help me?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    A compiler bug is unusual, what version of g++ are you using to cross-compile Qt ? Also, which version of Qt are you trying to cross-compile ?



  • Hi, SGaist!

    Thanks for the welcome!

    The g++ version that I'm using is Linaro GCC 4.9.3 20150311, and I'm using Qt Version 5.4.3.
    I'm using them in a Ubuntu 15.04, (32 bits version), running in VirtualBox... Maybe this is my problem...


  • Lifetime Qt Champion

    The virtualization is not the problem. If you can, change the cross-compiler version, for e.g. a 4.8


Log in to reply
 

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