QT 5.2.1

Started by fiosca, February 21, 2014, 02:33:55 am

Previous topic - Next topic


I'm not following the standard cross-compiling approach (I have only a Macbook at the moment and
couldn't find a way to install arm-gcc on Mavericks) but trying to build everything on the board.

I'm receiving a lot of compiling errors, even if all required packages had been installed.
Did anybody manage to build QT 5.2.1 for A10?


Use VIrtualBox + Ubuntu/KUbuntu for standard cross-compiling.

I working on QT 5.2.1 for my self. I can provide installation instructions when I have finished


Great! I have a Debian on my VirtualBox with an ARM toolchain (used to compile the Linux kernel).

I tried to download the QT sources but could not manage to cross-compile them because
Allwinner devices seem not to be supported directly.

What is your "./configure" string?


See here

On the board
./configure -release -opensource -confirm-license -opengl es2 -no-eglfs -no-linuxfb -no-pch -plaform linux-arm-gnueabi-g++

I have not tried.
May be I try it tomorrow.


How much work is there is getting cross compilation and then debugging on target working?

I have an A10s running Debian with the xfce desktop and I want to learn how to develop GUI based apps for it. I would prefer to design on the desktop under a VM (as I run Windows as my main OS) or native from Windows and then download and debug on the target board. Is this possible? It's one of the reasons I love doing Android or NETMF dev. :)


Hi 00depp80!
Tried both way but with no results.

Cross compiling:
1.  "gcc-4.7-arm-linux-gnueabihf" toolchain from http://www.emdebian.org/ is ok for kernel building,
but linker (ld) seems not to support correctly the --sysroot option (it doesn't apply sysroot correctly, found many complains in many forums).

2. Linaro toolchain returns different errors, always from linker
"relocation R_ARM_THM_MOVW_ABS_NC against 'a local symbol' can not be used when making a shared object; recompile with -fPIC"
Of course the "-fPIC" does not refer to QT but mainly to static libraries on the filesystem.

Native Building:
1. Even if it takes hours and hours to build, with the "configure" string you mentioned I receive a compiler error (a sort of syntax error on one include). I'm using the standard Debian image provided by Olimex.

It looks like a nightmare! Can you provide us with a small guide about how to compile QT5?


February 26, 2014, 07:14:40 pm #6 Last Edit: February 27, 2014, 10:16:02 pm by 00depp80
On Device i've these configure options:
./configure -release -opensource -confirm-license -opengl es2  -no-pch -qt-xcb -no-c++11

Important is -no-c++11.
I've installed g++-4.7 libgles2-mesa-dev libglu1-mesa-dev libgles2-mesa-dev
see here for installation of g++-4.7 http://askubuntu.com/questions/26498/choose-gcc-and-g-version
I have not yet tried the build toolchain.

./configure -release -opensource -confirm-license -opengl es2 -no-eglfs -no-linuxfb -no-pch -platform linux-arm-gnueabi-g++


I've installed g++-4.7 libgles2-mesa-dev libglu1-mesa-dev on olimex device
configured qt 5.2 with these options
./configure -release -opensource -confirm-license -opengl es2  -no-pch -qt-xcb

and could build successfully on olimex device.

I have not tried to build qt with the crosstoolchain.


Hi 00depp80,

can you please write down step by step the installation procedure?

Sorry, I am beginner in Linux.

I would like to use the QT 5.2.1 on my A10 obard with the official Olimex Linux.

Thank you in advance