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,
Re: Linux Cross Compiling to ARM
Did you build Qt for ARM?
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,
Re: Linux Cross Compiling to ARM
Quote:
Originally Posted by
^NyAw^
No,
So build it.
Quote:
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.
Re: Linux Cross Compiling to ARM
Hi Wysota,
Sorry for delay.
Thanks, I will try it.