Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Problem compiling for Qt5
Forum Updated to NodeBB v4.3 + New Features

Problem compiling for Qt5

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gustavo255
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Gustavo255
        wrote on last edited by
        #3

        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...

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved