Cross-compiling in QtCreator for A13

Started by atal, January 25, 2013, 03:09:33 PM

Previous topic - Next topic

atal

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


yt7pwr

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.

lordlothar

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.

yt7pwr

It works fine. Once Mali400 is fully supported it will be much faster.
Just don't forget to use good class 10 uSD card.

Nico

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.

lordlothar

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?

Nico

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.

lordlothar

@Nico
Thanks for helping, finally I got it working with cross-compiled QT libraries!