Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Mobile and Embedded Development with Qt 5

You're reading from   Hands-On Mobile and Embedded Development with Qt 5 Build apps for Android, iOS, and Raspberry Pi with C++ and Qt

Arrow left icon
Product type Paperback
Published in Apr 2019
Publisher Packt
ISBN-13 9781789614817
Length 368 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Lorn Potter Lorn Potter
Author Profile Icon Lorn Potter
Lorn Potter
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Section 1: Making Great UIs FREE CHAPTER
2. Standard Qt Widgets 3. Fluid UI with Qt Quick 4. Graphical and Special Effects 5. Input and Touch 6. Section 2: Networking, Connectivity, Sensors, and Automation
7. Qt Network for Communication 8. Connectivity with Qt Bluetooth LE 9. Machines Talking 10. Where Am I? Location and Positioning 11. Section 3: Other APIs Qt SQL, Qt Multimedia, and Qt Purchasing
12. Sounds and Visions - Qt Multimedia 13. Remote Databases with Qt SQL 14. Enabling In-App Purchases with Qt Purchasing 15. Section 4: Mobile Deployment and Device Creation
16. Cross Compiling and Remote Debugging 17. Deploying to Mobile and Embedded 18. Universal Platform for Mobiles and Embedded Devices 19. Building a Linux System 20. Other Books You May Enjoy

Embedded Linux

Embedded Linux devices come in many different sizes and varieties. Some may have app stores, but most don't. There are various methods to get the OS and apps on the devices.

OS deployment

The deployment of the operating system will on your device, as some embedded devices have very specific methods in which the operating system is deployed to the device. In the case of Raspberry Pi, it is easy to copy the image to an SD card and put that into the RPI and boot it up.

I have a script named writeIso that I use; it consists of two lines:

#!/bin/bash
sudo dd if=$1 of=$2 bs=4M status=progress

I run it something like this:

./writeIso /path/to/deviceImage.img /dev/sdc

Other devices may have a flash method, whereby the image gets copied directly onto the device. This can be as low-level as having to use JTAG, or it could be higher-level, such as using Android's adb command. Sometimes, you have to write the image to an SD card, put that into the device, and then, with some combination of keys or buttons, flash that image into the machine's ROM.

App deployment

With a distribution with a package manager such as Raspbian or Yocto, you can easily distribute your application, either by installing directly on the device or adding to the package repository. In the case of Yocto, you can have a local repository to distribute.

To get the package file onto the device, you can use Qt Creator and set up a generic Linux device. This requires an SSH server running on the device and some kind of network connection.

You can also use the scp command to copy packages and/or binaries to the device. This also requires an SSH server.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime