Cross compiling Qt for the raspberry pi 2

Raspberry Pi 2

Cross compiling Qt for the raspberry pi 2

Postby sirspudd » Sat Jan 02, 2016 8:07 am

Hola,

I have created a PKGBUILD on AUR which should simplify the cross compilation of Qt for the Raspberry PI 2. My goal is to get it to a point where you simply need to:

yaourt -S qpii

on a host machine with a pi mounted, and you should be golden.

It should already be functional with the following provisos:

1) The host/target tools are currently all deployed to the sysroot (qmake for your Arch build host is actually installed to the Pi itself)
2) You need to install some deps that are documented in the PKGBUILD (basically, install the chromium browser and you should get everything you need)

I am hoping this is of use to someone since cross compiling Qt is way more effort than it should be, and Qt is awfully functional of a Raspberry pi, even as of right now. Let me know if you want to help or if this is of use to you.

Yours sincerely,
Donald Carr
sirspudd
 
Posts: 12
Joined: Tue Oct 30, 2012 8:46 pm

Re: Cross compiling Qt for the raspberry pi 2

Postby sirspudd » Wed Jan 06, 2016 8:20 am

Cool, I have Qt 5.6.0-beta compiling with functional Wayland support at this point in time; I would urge anyone who wants to use the pi for graphical apps to give it an eyeball.
sirspudd
 
Posts: 12
Joined: Tue Oct 30, 2012 8:46 pm

Re: Cross compiling Qt for the raspberry pi 2

Postby sirspudd » Wed Jan 06, 2016 8:21 am

I have actually taken to stuffing documentation into the PKGBUILD, so it should effectively be self documenting.
sirspudd
 
Posts: 12
Joined: Tue Oct 30, 2012 8:46 pm

Re: Cross compiling Qt for the raspberry pi 2

Postby sirspudd » Wed Feb 24, 2016 6:58 am

I have posted instructions here:

https://s3.amazonaws.com/spuddrepo/arch ... tions.html

if you follow them, you get Qt libs for your target, Qt Creator and the host libs for your dev machine and a rudimentary wayland compositor running on the pi 2, which facilitates the use of Qt Creator which is configured to use the resulting SDK.
Last edited by sirspudd on Wed Feb 24, 2016 7:00 am, edited 1 time in total.
sirspudd
 
Posts: 12
Joined: Tue Oct 30, 2012 8:46 pm

Re: Cross compiling Qt for the raspberry pi 2

Postby sirspudd » Wed Feb 24, 2016 6:59 am

Any feedback on improvements to the development process/documentation:

https://s3.amazonaws.com/spuddrepo/arch ... tions.html

would be greatly appreciated, and maybe even acted on.
sirspudd
 
Posts: 12
Joined: Tue Oct 30, 2012 8:46 pm

Re: Cross compiling Qt for the raspberry pi 2

Postby sirspudd » Tue Mar 15, 2016 9:21 pm

Video to go along with the bash script above
sirspudd
 
Posts: 12
Joined: Tue Oct 30, 2012 8:46 pm


Return to Broadcom

Who is online

Users browsing this forum: No registered users and 6 guests