All Projects → neuronalmotion → Qtrpi

neuronalmotion / Qtrpi

Licence: mit
An easy-to-use environment to cross-compile Qt applications for Raspberry Pi from your desktop.

Programming Languages

shell
77523 projects
bash
514 projects

Projects that are alternatives of or similar to Qtrpi

Raspberryio
The Raspberry Pi's IO Functionality in an easy-to-use API for Mono/.NET/C#
Stars: ✭ 593 (+537.63%)
Mutual labels:  raspberry-pi, raspberry
Qdomyos Zwift
Zwift bridge for smart treadmills and bike/cyclette
Stars: ✭ 63 (-32.26%)
Mutual labels:  raspberry-pi, raspberry
Pytradfri
IKEA Trådfri/Tradfri API. Control and observe your lights from Python. Examples available. On pypi. Sans-io.
Stars: ✭ 778 (+736.56%)
Mutual labels:  raspberry-pi, raspberry
Nwjs rpi
[NW.js port for Raspberry Pi] binary compiled for the ARMv6 used in Raspberry Pi (compatible with RPi 2 and RPi 3)
Stars: ✭ 91 (-2.15%)
Mutual labels:  raspberry-pi, raspberry
Raspberrypi Cpuminer
CPUMiner for RaspberryPi Zero, Pi 3, Pi 2, B+, A+
Stars: ✭ 75 (-19.35%)
Mutual labels:  raspberry-pi, raspberry
Balena Electronjs
electronJS-based resin application template
Stars: ✭ 348 (+274.19%)
Mutual labels:  raspberry-pi, raspberry
Libgps
UART NMEA GPS library for Raspberry Pi
Stars: ✭ 60 (-35.48%)
Mutual labels:  raspberry-pi, raspberry
Raspberry Pi Cross Compilers
Latest GCC Cross Compiler & Native (ARM & ARM64) CI generated precompiled standalone toolchains for all Raspberry Pis. 🍇
Stars: ✭ 261 (+180.65%)
Mutual labels:  raspberry-pi, qt5
Homekitcam
A project to make a Raspberry Pi driven, HomeKit Enabled camera.
Stars: ✭ 69 (-25.81%)
Mutual labels:  raspberry-pi, raspberry
Guitar
Git GUI Client
Stars: ✭ 1,136 (+1121.51%)
Mutual labels:  raspberry-pi, qt5
Rust Raspberrypi Os Tutorials
📚 Learn to write an embedded OS in Rust 🦀
Stars: ✭ 7,275 (+7722.58%)
Mutual labels:  raspberry-pi, raspberry
Rpieasy
Easy MultiSensor device based on Raspberry PI
Stars: ✭ 85 (-8.6%)
Mutual labels:  raspberry-pi, raspberry
Meta Raspberrypi
Yocto BSP layer for the Raspberry Pi boards
Stars: ✭ 276 (+196.77%)
Mutual labels:  raspberry-pi, raspberry
Pinn
An enhanced Operating System installer for the Raspberry Pi
Stars: ✭ 530 (+469.89%)
Mutual labels:  raspberry-pi, raspberry
Raspibackup
Backup and restore your running Raspberry
Stars: ✭ 268 (+188.17%)
Mutual labels:  raspberry-pi, raspberry
Raspberrypi tempmon
Raspberry pi CPU temperature monitor with many functions such as logging, GPIO output, graphing, email, alarm, notifications and stress testing. Python 3.
Stars: ✭ 52 (-44.09%)
Mutual labels:  raspberry-pi, raspberry
Berrylan
Raspberry Pi WiFi setup
Stars: ✭ 243 (+161.29%)
Mutual labels:  raspberry-pi, raspberry
Kupiki Hotspot Script
Create automatically a full Wifi Hotspot on Raspberry Pi including a Captive Portal
Stars: ✭ 265 (+184.95%)
Mutual labels:  raspberry-pi, raspberry
Q3lite
Q3lite, an OpenGL ES port of Quake III Arena for embedded Linux systems.
Stars: ✭ 64 (-31.18%)
Mutual labels:  raspberry-pi, raspberry
Orangetool
📚 Control Functions For Single-Board Computers
Stars: ✭ 82 (-11.83%)
Mutual labels:  raspberry-pi, raspberry

QtRpi

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 the 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 download page
  • 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
Toochain from the github project from the github project
Sysroot from qtrpi team generated from raspbian image
Qt binaries from qtrpi team compiled

Tutorial of init-qtrpi-minimal.sh

This tutorial will help you to:

  • Configure your host computer to be able to cross-compile Qt 5.7.0 applications for your Raspberry Pi 3
  • Deploy the pre-compiled Qt binaries on your Raspberry Pi
  • Cross-compile your application for a Raspberry Pi with the CLI or Qt Creator

Requirements

  • A 64-bit Linux host computer
  • 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:

ssh-copy-id [email protected]

Installation

https://www.youtube.com/watch?v=YYOjdwT5UuQ

First, install the dependencies:

sudo apt-get install curl g++ gdb-multiarch git realpath unzip zip

Open a terminal and follow the steps below:

git clone https://github.com/neuronalmotion/qtrpi.git
cd qtrpi
export QTRPI_QT_VERSION='5.7.0'
export QTRPI_TARGET_DEVICE='linux-rpi3-g++'
export QTRPI_TARGET_HOST='[email protected]'
./init-qtrpi-minimal.sh
./deploy-qtrpi.sh --prepare-rpi

Note: You can also export the environment variables in your .bashrc.

Usage in CLI

cd myproject
/opt/qtrpi/bin/qmake-qtrpi
make

You can now copy and execute the generated binary file on your Raspberry Pi

Note: You can also add /opt/qtrpi/bin/ to your PATH in your .bashrc and call qmake-qtrpi without the full path.

Usage in Qt Creator

How to build a Raspberry Pi 3 application from your desktop Qt Creator (step by step video): Cross-compile Qt applications for your Raspberry Pi 3 - 2. Configure Qt Creator

Tutorial of init-qtrpi-full.sh

How to add a new Qt module in QtRpi?

Docker images

The images are tagged according to their target configuration.

Currently the following tags are available:

  • rpi3-qt5.6.2: Crosscompile Qt 5.6.2 for the Raspbarry Pi 3

Choose the image which fits your needs.

Building a Qt project

To build a Qt project, mount the directory containing the sources and the project file to the /sources path inside the container and run it. By default the image automatically executes qmake and make in the current working directory, which is set to /sources by default.

Example

docker pull arose/qtrpi:rpi3-qt5.6.2
docker run -v /someqtprojectfolder/:/source arose/qtrpi:rpi3-qt5.6.2
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].