Skip to content

wweiradio/qt5-rpi

 
 

Repository files navigation

QT5 RaspberryPI

This project builds QT5 and QT Webengine debian packages for the RaspberryPI.

Requirements

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.

Build

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.

  1. Cross compilation of QT5, webengine and cross compilation tools: buildall.sh cross | tee cross.log,
  2. 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.

Development

QT5 and Webenegine apps can be compiled using the packages above, in two different ways: native or cross compiled.

Native compilation

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.

Cross compilation

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.

References

Albert Casals - 2016-2017

Cason Wang - 2017

About

Build QT5 packages for the RaspberryPI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.3%
  • QMake 6.2%
  • Shell 1.5%