This project builds QT5 and QT Webengine debian packages for the RaspberryPI.
You will need a powerful - 4 CPU or higher recommended- Intel 64 bit computer with Debian Jessie.
The additional software needed on the host will be installed by running ./host-bootstrap.py
.
First, need to download pipaOS and configure the ~/xsysroot.cnf to set up the profile .
"pipaOS" : {
"description": "pipaOS latest",
"nbdev" : "/dev/nbd1",
"nbdev_part" : "p2",
"sysroot" : "/tmp/pipaos_root",
"tmp" : "/tmp/pipaos-tmp",
"backing_image": "./pipaos-latest.img.gz",
"qcow_image": "./pipaos.qcow",
"qcow_size": "4G",
"display": "1024x768x24 fluxbox"
}
pipaos-latest.img.gz is the image downloaded from http://pipaos.mitako.eu/
The git hub account is : https://github.com/pipaos/pipaos
Note: This step can use raspberry pi. The dependencis need to be installed on the xsysroot might need change.
Build is separated in two stages.
- Cross compilation of QT5, webengine and cross compilation tools:
buildall.sh cross | tee cross.log
, - and native compilation of the core tools, for the RaspberryPI:
buildall.sh native | tee native.log
.
On completion, the pkgs
directory will contain the Debian files to publish on the repository.
- libqt5all.deb
- libqtwebengine.deb
- libqt5all-dev.deb
- libqtwebengine-dev.deb
- libqt5-native-tools.deb
- libqt5-cross-tools.deb
Note: To save time, the following changes have been made: 1) the native and cross build has been separated. Then you don't need to purge to start to build another 2) The source code and the build directory is separated. So you can reuse the source code to trigger new build, no need to download again.
QT5 and Webenegine apps can be compiled using the packages above, in two different ways: native or cross compiled.
You will need a RaspberryPI or a Rasbian based sysroot. Install the -dev
packages on the sysroot along
with native tools package libqt5-native-tools.deb
. Set your PATH
to point to /usr/local/qt5/bin
.
You are now ready to build.
You will need a Debian Jessie x64 system and a Rasbian based sysroot. Run the command host-bootstrap
on the host.
Mount the sysroot image and install the -dev
packages in it along with the cross tools package libqt5-cross-tools.deb
.
Set your PATH
on the Host to reach qmake:
$ export PATH=$PATH:$(xsysroot -q sysroot)/usr/local/qt5/bin-x86-64`
You might need to set the correct path to the sysroot in the file /usr/local/qt5/bin-x86-64/qt.conf
You are now ready to cross build QT5 apps from the host.
- https://github.com/CalumJEadie/part-ii-individual-project-dev/wiki/Project-Proposal-Research
- https://wiki.qt.io/Building_Qt_5_from_Git
- http://doc.qt.io/qt-5/embedded-linux.html#configuring-for-a-specific-device
- http://wiki.qt.io/RaspberryPi2EGLFS
- https://code.qt.io/cgit/qt
- https://github.com/raspberrypi/tools.git
- https://www.raspberrypi.org/documentation/linux/kernel/building.md
- https://www.raspberrypi.org/blog/qt5-and-the-raspberry-pi/
- http://www.ics.com/blog/building-qt-and-qtwayland-raspberry-pi
- http://www.intestinate.com/pilfs/beyond.html#wayland
- https://wiki.merproject.org/wiki/Community_Workspace/RaspberryPi
- https://github.com/jorgen/yat
- https://www.youtube.com/watch?v=AtYmJaqxuL4
- https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=qpi2
- https://github.com/qtproject/qtwayland
- http://www.chaosreigns.com/wayland/weston/
- https://info-beamer.com/blog/raspberry-pi-hardware-video-scaler
- https://forum.qt.io/topic/48223/webengine-raspberry-pi/2
Albert Casals - 2016-2017
Cason Wang - 2017