Results 1 to 2 of 2

Thread: Building Qt5 for Cross-Compilation

  1. #1
    Join Date
    Aug 2013
    Posts
    2
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Building Qt5 for Cross-Compilation

    Good afternoon,

    I have been trying to get Qt5 compiled, with a mkspec that will allow cross-compilation for beaglebone from Ubuntu 13.04. After a day of work, I am able to get Qt to accept the mkspecs (was using a tutorial for Qt4), however, the following error is thrown during ./configure :

    Qt Code:
    1. qt-everywhere-opensource-src-5.1.0/qtbase/configure: 1269: shift: can't shift that many
    To copy to clipboard, switch view to plain text mode 

    This is my configuration command:

    Qt Code:
    1. ./configure -developer-build -opensource -confirm-license -xplatform angstrom-arm-gnueabi-g++ -little-endian -prefix /usr/local/beaglebone/qt4.8-arm -c++11 -nomake
    To copy to clipboard, switch view to plain text mode 

    This is my mkspec file (named angstrom-arm-gnueabi-g++)

    Qt Code:
    1. #
    2. # qmake configuration for building with arm-none-linux-gnueabi-g++
    3. #
    4.  
    5. include(../common/linux.conf)
    6. include(../common/gcc-base-unix.conf)
    7. include(../common/g++-unix.conf)
    8.  
    9. # modifications to g++.conf
    10. QMAKE_CC = arm-angstrom-linux-gnueabi-gcc
    11. QMAKE_CXX = arm-angstrom-linux-gnueabi-g++
    12. QMAKE_LINK = arm-angstrom-linux-gnueabi-g++
    13. QMAKE_LINK_SHLIB = arm-angstrom-linux-gnueabi-g++
    14.  
    15.  
    16. # modifications to linux.conf
    17. QMAKE_AR = arm-angstrom-linux-gnueabi-ar cqs
    18. QMAKE_OBJCOPY = arm-angstrom-linux-gnueabi-objcopy
    19. QMAKE_STRIP = arm-angstrom-linux-gnueabi-strip
    20.  
    21. load(qt_config)
    To copy to clipboard, switch view to plain text mode 

    All environments (i.e. angstrom toolchain) are installed and verified. Also, removal of the -nomake option will do nothing but display a help section with details on each of the configuration options. Any help would be greatly appreciated.

  2. #2
    Join Date
    Aug 2013
    Posts
    2
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Building Qt5 for Cross-Compilation

    The nomake was throwing it into the shift error, but as I said before, it just displays help information. Qt 4.8.5 does not hit this wall, but fails at another point claiming the object files are not in a proper format.

    I have also tried to manually set up an environment that would build using the tools supplied in the toolchain for angstrom, but I get this error when I try to compile:

    make: c: Command not found
    make: [Tunes.o] Error 127 (ignored)

Similar Threads

  1. QWT cross compilation for AVR32
    By Tulga in forum Qwt
    Replies: 2
    Last Post: 20th February 2011, 21:42
  2. Qt-4.6.2 cross compilation with DBus
    By grsandeep85 in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 20th August 2010, 07:52
  3. Cross Compilation of QT- 4.4.3 with linux-sh4-g++
    By Manasa in forum Installation and Deployment
    Replies: 4
    Last Post: 5th March 2009, 10:09
  4. Cross compilation from OS X to Windows
    By NicholasSmith in forum Installation and Deployment
    Replies: 3
    Last Post: 15th January 2009, 17:43
  5. problems about cross-compilation qte to arm
    By slient in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 10th April 2007, 16:59

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.