Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: atal on January 25, 2013, 03:09:33 pm

Title: Cross-compiling in QtCreator for A13
Post by: atal on January 25, 2013, 03:09:33 pm
Hello,
does anyone of you any experiences with using QtCreator for development programs running on A13 Linux platform? Mainly interest me the setting of cross-compiling in QtCreator because I am not able to set it and I am not sure if it is possible. If I use google to help I get a lot of informations, but nothing clear and easy to understand. I suppose there must be used compiler for arm instead of default platform compiler, but I do not know where and how it should be to set.   

Btw. which development tools do you use for programing apps with GUI target for A13 with Linux?

Thanks a lot

Title: Re: Cross-compiling in QtCreator for A13
Post by: yt7pwr on January 25, 2013, 03:47:26 pm
I also try to cross build GUI apps with Qt but stuck when I realized that Qt needs complete library built for ARM. Instead I download and install Qt-sdk directly to A13 WiFi board and compiled in native mode. VGA resolution is little problem but project working fine. Only thing missing is Mali400 support (I followed instruction from http://linux-sunxi.org/Mali400 but my board hangs with Debian, loads driver with Linaro but complained about missing DRI). Without Mali400 OpenGL support Qt apps performance is poor.
Title: Re: Cross-compiling in QtCreator for A13
Post by: lordlothar on January 27, 2013, 07:32:05 pm
Quote from: yt7pwr on January 25, 2013, 03:47:26 pm
I also try to cross build GUI apps with Qt but stuck when I realized that Qt needs complete library built for ARM. Instead I download and install Qt-sdk directly to A13 WiFi board and compiled in native mode. VGA resolution is little problem but project working fine. Only thing missing is Mali400 support (I followed instruction from http://linux-sunxi.org/Mali400 but my board hangs with Debian, loads driver with Linaro but complained about missing DRI). Without Mali400 OpenGL support Qt apps performance is poor.


But it works, even with poor performance? I also did not have any luck to cross-compile qt apps.
Title: Re: Cross-compiling in QtCreator for A13
Post by: yt7pwr on January 27, 2013, 10:06:47 pm
It works fine. Once Mali400 is fully supported it will be much faster.
Just don't forget to use good class 10 uSD card.
Title: Re: Cross-compiling in QtCreator for A13
Post by: Nico on January 30, 2013, 10:35:06 am
Hi, I succeeded in doing that using buildroot and adding the program as a buildroot package, buildroot just deal alone with all the cross compilation/library stuff, but I understand it can be less convenient than directly compiling in QtCreator.
And it works fine with the framebuffer launching the app with the qt windows server option (-qws).
Let me know if it helps.
Nico.
Title: Re: Cross-compiling in QtCreator for A13
Post by: lordlothar on February 04, 2013, 10:58:05 pm
Guys, do you have any instructions on how to get it working?

@yt7pwr
So you just compiled QT-libraries on A13 and after that you compiled the whole app on it?

@Nico
You mean adding Qt as an extra package on buildroot? Any info about the steps you took?
Title: Re: Cross-compiling in QtCreator for A13
Post by: Nico on February 05, 2013, 10:48:57 am
Yes you just add Qt as an extra package in Buildroot and then you add your app as a new package in Buildroot (http://buildroot.uclibc.org/downloads/manual/manual.html#adding-packages) by creating a .mk and a Config.in for your package. Then you have to select the package you added in buildroot, then 'make' and it will do all the job for you.
Let me know if it helps.
Title: Re: Cross-compiling in QtCreator for A13
Post by: lordlothar on February 09, 2013, 03:08:30 am
@Nico
Thanks for helping, finally I got it working with cross-compiled QT libraries!