Skip to content
Permalink
Browse files

Merge branch 'master' into docker-compatibility

  • Loading branch information...
rose-a committed Jul 12, 2019
2 parents 210a3d1 + 60ec6d1 commit 258c463676b6f4fb7885f7d6b3591e1789c57f9b
Showing with 9 additions and 9 deletions.
  1. +5 −8 README.md
  2. +1 −0 qt-modules.txt
  3. +2 −1 utils/download-raspbian.sh
  4. +1 −0 utils/prepare-sysroot-full.sh
@@ -3,22 +3,19 @@
## Purpose
Offer an easy-to-use environment to cross-compile Qt application on a Raspberry Pi. This repo contains all the scripts needed to prepare a sysroot, cross-compile Qt and deploy Qt libraries to your Raspberry.

For more information, go to http://www.qtrpi.com/faq.

## How to contact us?
You can fill a contact form from our [official website](https://www.neuronalmotion.com/contact/) or send us an email at *contact [at] neuronalmotion [dot] com*.
For more information, go to [the wiki](https://github.com/neuronalmotion/qtrpi/wiki)

## Difference between init-qtrpi-minimal and init-qtrpi-full
* **init-qtrpi-minimal**, the typical way: downloads ready-to-use Qt binaries for the Raspberry Pi and a minimal sysroot that we released on the [official website](http://www.qtrpi.com/download)
* **init-qtrpi-minimal**, the typical way: downloads ready-to-use Qt binaries for the Raspberry Pi and a minimal sysroot that we released on the [download page](https://github.com/neuronalmotion/qtrpi/wiki/Download)
* **init-qtrpi-full**, the custom way: compiles on your computer the Qt binaries for the Raspberry Pi to let you tweak the configuration, enhance the compilation by adding some missing Qt modules to QtRpi or add some specific third-party dependencies

### Summary
| | init-qtrpi-minimal | init-qtrpi-full |
| ------------------- | ----------------------------- | ------------------------------------ |
| Raspbian image | | *from [raspberrypi.org](https://www.raspberrypi.org/downloads/raspbian/)* |
| Toochain | *from [the github project](https://github.com/raspberrypi/tools)* | *from [the github project](https://github.com/raspberrypi/tools)* |
| Sysroot | *from [qtrpi.com](http://www.qtrpi.com/download)* | generated from raspbian image |
| Qt binaries | *from [qtrpi.com](http://www.qtrpi.com/download)* | compiled |
| Sysroot | *from qtrpi team* | generated from raspbian image |
| Qt binaries | *from qtrpi team* | compiled |

## Tutorial of init-qtrpi-minimal.sh

@@ -29,7 +26,7 @@ This tutorial will help you to:

### Requirements
* A 64-bit Linux host computer
* A Raspberry Pi 3
* A Raspberry Pi 3 **with Raspbian Jessie** (Raspbian Stretch is currently not supported!)

In this example, you already have an SSH access to your Raspberry Pi 3 at `192.168.1.12` with the user `pi`. The script will use sudo several times to install the packages on the board. You should add your SSH key in your Raspberry Pi. For example with **`ssh-copy-id`**:
```bash
@@ -6,3 +6,4 @@ qtquickcontrols
qtquickcontrols2
qtserialport
qtsvg
qtgraphicaleffects
@@ -53,7 +53,8 @@ function download_raspbian() {
message 'Downloading Raspbian latest image'
wget --output-document=${RASPBIAN_BASENAME}.zip \
--content-disposition \
https://downloads.raspberrypi.org/raspbian_latest
https://downloads.raspberrypi.org/raspbian/images/raspbian-2017-03-03/2017-03-02-raspbian-jessie.zip


unzip -p ${RASPBIAN_BASENAME}.zip > ${RASPBIAN_BASENAME}.img
}
@@ -7,6 +7,7 @@ mkdir -p raspbian ; cd raspbian

# Mount and extract the raspbian sysroot
message 'Creating sysroot'
sudo umount /dev/loop0
sudo losetup -P /dev/loop0 ${RASPBIAN_BASENAME}.img
sudo mkdir /mnt/raspbian
sudo mount /dev/loop0p2 /mnt/raspbian

0 comments on commit 258c463

Please sign in to comment.
You can’t perform that action at this time.