Results 1 to 5 of 5

Thread: Linux Cross Compiling to ARM

  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Linux Cross Compiling to ARM

    Hi,

    I'm relatively new to Linux and I'm trying to cross compile a Qt application. I have an ARM Cortex-A8 Core platform where I want to execute my Qt application.

    On my development machine I have Qt 4.8.1 as part of the system(Ubuntu 12.04).
    I also have downloaded Qt 4.8.4 for Embedded devices source.
    QtCreator was 2.4.1 and I installed 2.8.1(on my home dir).
    ARM toolchain installed.
    Qt 4.8.4 for armhf installed.

    My first problem is that QtCreator says "MinGW compiler (arm-linux-generic-elf-32bit) cannot produce code for the 'Qt version 4.8.1(System)' (x86-linux-generic-elf-32bit)".
    Qt 4.8.4 for armhf contain the libs and headers but not "qmake", so do I need to generate it?

    Does Qt 4.8.4 support arm hard float specs? I'm only able to see "linux-arm-gnueabi-g++" specs and not "linux-arm-gnueabihf-g++".

    Thanks,
    Òscar Llarch i Galán

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Linux Cross Compiling to ARM

    Did you build Qt for ARM?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Linux Cross Compiling to ARM

    Hi,

    No, but I have the x86 version on "/usr/lib" and the arm libs on "/usr/arm-linux-gnueabihf/vrmagic/usr/lib/arm-linux-gnueabihf" as the board that I'm using provide a script to install libs and the doc says to not install armfh packages using the package system.

    Do I need to have two Qt versions? One compiled for x86 and the other for the ARM8(as I want to build applications for the two systems)? So, when configuring Qt, "xplatform" option is not enough? I'm a little bit confused as I only developed Qt applications on Windows.

    Thanks,
    Òscar Llarch i Galán

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Linux Cross Compiling to ARM

    Quote Originally Posted by ^NyAw^ View Post
    No,
    So build it.

    Do I need to have two Qt versions? One compiled for x86 and the other for the ARM8(as I want to build applications for the two systems)?
    Yes.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Linux Cross Compiling to ARM

    Hi Wysota,

    Sorry for delay.

    Thanks, I will try it.
    Òscar Llarch i Galán

Similar Threads

  1. QT : Cross-compiling on WINDOWS to run at LINUX
    By andre_teprom in forum Qt Tools
    Replies: 5
    Last Post: 18th August 2013, 15:57
  2. Cross compiling Qt for mingw64 from Linux.
    By chris_helloworld in forum Installation and Deployment
    Replies: 0
    Last Post: 11th May 2011, 11:07
  3. Replies: 5
    Last Post: 28th February 2011, 22:37
  4. Cross-Compiling Linux to Windows
    By xgoan in forum Qt Programming
    Replies: 10
    Last Post: 5th July 2007, 20:44
  5. Cross compiling QT3 on Linux, for win32
    By mjrich in forum Installation and Deployment
    Replies: 10
    Last Post: 6th March 2006, 18:58

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
  •  
Qt is a trademark of The Qt Company.