ݺߣ

ݺߣShare a Scribd company logo
Building Qt 5.12 LTS for
Raspberry Pi Zero on Debian
Stretch
spring 2019
SD card formating and flashing
Preparing SD with Etcher
sudo apt-get update --fix-
missing
https://www.tal.org/tutorials/building-qt-512-raspberry-
pi
First Steps
Cd
Cd Desktop
#Download the Qt 5.12.3 source archive
wget http://download.qt.io/official_releases/qt/5.12/5.12.3/single/qt-everywhere-src-5.12.3.tar.xz
#Check archive MD5 hash
md5sum qt-everywhere-src-5.12.3.tar.xz
#It should be:
#38017e0ed88b9baba063bd723d9ca8b2 qt-everywhere-src-5.12.3.tar.xz
Un-tar the source archive
Un-tar the source archive in a suitable location, with enough free space (~2.8GB). This will take
around 7-13 minutes on a Raspberry Pi 3+, depending on SD card speed, and even more on an older
model, so go grab of coffe again. You can of course start installation of the build dependecies
while you wait.
tar xf qt-everywhere-src-5.12.3.tar.xz
Setup Qt mkspecs configurati
Qt build is configured trough the configure script, but platform and device specifc settings are set in mkspecs configuration files. Qt includes mkspecs for the Raspberry Pi but they are unfortunately setup for c
compilation environments and can not be used for native building without editing or the need for faking a cross compilation environment. Suitable mkspecs files for the various Pi revisions are available in our g
next step is to clone the repository and install the mkspecs files into the Qt source tree.
Clone the configuration repository:
git clone https://github.com/oniongarlic/qt-raspberrypi-configuration.git
cd into the clone repository and run (adjust DESTDIR in case your Qt sources are extracted somewhere else):
cd qt-raspberrypi-configuration && make install DESTDIR=../qt-everywhere-src-5.12.3
PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig 
../qt-everywhere-src-5.12.3/configure -platform linux-rpi-g++ 
-v 
-opengl es2 -eglfs 
-no-gtk 
-opensource -confirm-license -release 
-reduce-exports 
-force-pkg-config 
-nomake examples -no-compile-examples 
-skip qtwayland 
-skip qtwebengine 
-no-feature-geoservices_mapboxgl 
-qt-pcre 
-no-pch 
-ssl 
-evdev 
-system-freetype
Install required build depend
You will need to install plenty of packages to be able to build Qt. Some of the Qt features are optional, for example support for various databases and if you don't need a specific feature you can skip building the
Or the other way around, if you need a specific feature you might need to install more packages. See the table below for a list of some optional features and the required development packages you need to inst
first, start by updating your package cache so everything is fresh:
apt-get update
Then continue with package installation.
Install required development packages
apt-get install build-essential libfontconfig1-dev libdbus-1-dev libfreetype6-dev libicu-dev libinput-dev libxkbcommon-dev libsqlite3-dev libssl-dev libp
libjpeg-dev libglib2.0-dev libraspberrypi-dev
#acording my searching needs to install llvm-dev
Sudo apt-get install llvm-dev
Install optional development packages
sudo apt-get install libx11-dev libxcb1-dev libxkbcommon-x11-dev libx11-xcb-dev libxext-dev -y
cd ~
sudo cat << EOF> qt_installation.sh
cd /home/pi/Desktop/qt-raspberrypi-configuration
nohup sh -c " sudo make -j2 && sudo make install "> /home/pi/Desktop/qt_inst.log
/dev/null 2>&1 &
#tail -f /home/pi/Desktop/qt_inst.log
#sudo make -j2
#sudo make install
EOF
Sudo chmod 755 qt_installation.sh
sudo nano .bashrc
#insert ./qt_installation.sh at the end of file
ource accepted.
config.qtmultimedia_multimedia.libraries.pulseaudio succeeded
cking for libresourceqt5...
g source 0 (type pkgConfig) of library libresourceqt5 ...
r/bin/pkg-config --exists --silence-errors libresourceqt5
config did not find package.
ource produced no result.
config.qtmultimedia_multimedia.libraries.libresourceqt5 FAILED
cking for libclang...
config.qttools_qdoc.tests.libclang FAILED
e running configuration tests.
igure summary:
type: linux-rpi-g++ (arm, CPU features: <none>)
piler: gcc 6.3.0
iguration: use_gold_linker enable_new_dtags largefile shared rpath
Install pacman for erro of qt.qpa.plugin:
Could not find the Qt platform plugin
"xcb" in ""
http://www.libarchive.org/downloads/libarchive-3.3.3.tar.gz
Tar xzf libarchive-3.3.3.tar.gz
Cd libarchive-3.3.3
./configure
Make
Make install
#https://www.archlinux.org/pacman/
Wget https://sources.archlinux.org/other/pacman/pacman-5.1.3.tar.gz
Tar xfz pacman-5.1.3.tar.gz
Cd pacman-5.1.3
./configure
Make
Install pacman for erro of qt.qpa.plugin:
Could not find the Qt platform plugin
"xcb" in ""
#https://forum.qt.io/topic/93247/qt-qpa-plugin-could-not-load-the-qt-platform-
plugin-xcb-in-even-though-it-was-found/8
Error: g++: internal compiler error: Killed
(program cc1plus)
https://wpitchoune.net/tricks/raspberry_pi3_increase_swap_size.htm
l
You could be running out of memory.
Setting up WiFi using an RTL8188eu
dongle on Raspberry Pi Zero
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
#into wpa_ file inser this:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="Haper"
psk="hellohello"
key_mgmt=WPA-PSK
}
https://zsiti.eu/wifi-rtl8188eu-raspberry-pi-
zero/
Installing wifi usb dongle for raspberry
sudo apt-get install git build-essential
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
make
sudo make install
https://askubuntu.com/questions/523197/rtl8188cus-unable-to-install-14-
04
Error:make[1]: ***
/lib/modules/4.14.98+/build: No such file
or directory. Stop.
sudo apt-get install git raspberrypi-kernel-headers build-essential dkms
Make error: invalid conversion from
xcb_window_t {aka unsigned int}
saying that 'sudo rpi-update' would do the trick
https://forum.qt.io/topic/103934/failure-to-build-qt5-5-12-3-on-raspberry-pi-
zero/10
sudo apt-get install qt5-default qt5-qmake
qtbase5-dev-tools qtcreator
https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=122267
sudo apt-get update
sudo apt-get install qt5-default qt5-qmake qtbase5-dev-tools qtcreator

More Related Content

What's hot (20)

Automating Mendix application deployments with Nix
Automating Mendix application deployments with NixAutomating Mendix application deployments with Nix
Automating Mendix application deployments with Nix
Sander van der Burg
?
Let's trace Linux Lernel with KGDB @ COSCUP 2021
Let's trace Linux Lernel with KGDB @ COSCUP 2021Let's trace Linux Lernel with KGDB @ COSCUP 2021
Let's trace Linux Lernel with KGDB @ COSCUP 2021
Jian-Hong Pan
?
Linux network stack
Linux network stackLinux network stack
Linux network stack
Takuya ASADA
?
Kernel Recipes 2017: Performance Analysis with BPF
Kernel Recipes 2017: Performance Analysis with BPFKernel Recipes 2017: Performance Analysis with BPF
Kernel Recipes 2017: Performance Analysis with BPF
Brendan Gregg
?
A Journey to Boot Linux on Raspberry Pi
A Journey to Boot Linux on Raspberry PiA Journey to Boot Linux on Raspberry Pi
A Journey to Boot Linux on Raspberry Pi
Jian-Hong Pan
?
Docker perl build
Docker perl buildDocker perl build
Docker perl build
Workhorse Computing
?
configuring a warm standby, the easy way
configuring a warm standby, the easy wayconfiguring a warm standby, the easy way
configuring a warm standby, the easy way
Command Prompt., Inc
?
GStreamer 101
GStreamer 101GStreamer 101
GStreamer 101
yuvipanda
?
Docker remote-api
Docker remote-apiDocker remote-api
Docker remote-api
Eric Ahn
?
Haproxy - zastosowania
Haproxy - zastosowaniaHaproxy - zastosowania
Haproxy - zastosowania
?ukasz Jagie??o
?
Performance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networksPerformance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networks
Marian Marinov
?
Linux Commands
Linux CommandsLinux Commands
Linux Commands
Utkarsh Sengar
?
Ceph issue ?? ??
Ceph issue ?? ??Ceph issue ?? ??
Ceph issue ?? ??
Open Source Consulting
?
Putting some "logic" in LVM.
Putting some "logic" in LVM.Putting some "logic" in LVM.
Putting some "logic" in LVM.
Workhorse Computing
?
packaging
packagingpackaging
packaging
Eddy Mulyono
?
Rpm Introduction
Rpm IntroductionRpm Introduction
Rpm Introduction
Shrinivasan T
?
Linux fundamental - Chap 12 Hardware Management
Linux fundamental - Chap 12 Hardware ManagementLinux fundamental - Chap 12 Hardware Management
Linux fundamental - Chap 12 Hardware Management
Kenny (netman)
?
Oracle cluster installation with grid and nfs
Oracle cluster  installation with grid and nfsOracle cluster  installation with grid and nfs
Oracle cluster installation with grid and nfs
Chanaka Lasantha
?
X64 lnmp׼ new
X64 lnmp׼ newX64 lnmp׼ new
X64 lnmp׼ new
Yiwei Ma
?
Velocity 2017 Performance analysis superpowers with Linux eBPF
Velocity 2017 Performance analysis superpowers with Linux eBPFVelocity 2017 Performance analysis superpowers with Linux eBPF
Velocity 2017 Performance analysis superpowers with Linux eBPF
Brendan Gregg
?
Automating Mendix application deployments with Nix
Automating Mendix application deployments with NixAutomating Mendix application deployments with Nix
Automating Mendix application deployments with Nix
Sander van der Burg
?
Let's trace Linux Lernel with KGDB @ COSCUP 2021
Let's trace Linux Lernel with KGDB @ COSCUP 2021Let's trace Linux Lernel with KGDB @ COSCUP 2021
Let's trace Linux Lernel with KGDB @ COSCUP 2021
Jian-Hong Pan
?
Kernel Recipes 2017: Performance Analysis with BPF
Kernel Recipes 2017: Performance Analysis with BPFKernel Recipes 2017: Performance Analysis with BPF
Kernel Recipes 2017: Performance Analysis with BPF
Brendan Gregg
?
A Journey to Boot Linux on Raspberry Pi
A Journey to Boot Linux on Raspberry PiA Journey to Boot Linux on Raspberry Pi
A Journey to Boot Linux on Raspberry Pi
Jian-Hong Pan
?
configuring a warm standby, the easy way
configuring a warm standby, the easy wayconfiguring a warm standby, the easy way
configuring a warm standby, the easy way
Command Prompt., Inc
?
Docker remote-api
Docker remote-apiDocker remote-api
Docker remote-api
Eric Ahn
?
Performance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networksPerformance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networks
Marian Marinov
?
Linux fundamental - Chap 12 Hardware Management
Linux fundamental - Chap 12 Hardware ManagementLinux fundamental - Chap 12 Hardware Management
Linux fundamental - Chap 12 Hardware Management
Kenny (netman)
?
Oracle cluster installation with grid and nfs
Oracle cluster  installation with grid and nfsOracle cluster  installation with grid and nfs
Oracle cluster installation with grid and nfs
Chanaka Lasantha
?
X64 lnmp׼ new
X64 lnmp׼ newX64 lnmp׼ new
X64 lnmp׼ new
Yiwei Ma
?
Velocity 2017 Performance analysis superpowers with Linux eBPF
Velocity 2017 Performance analysis superpowers with Linux eBPFVelocity 2017 Performance analysis superpowers with Linux eBPF
Velocity 2017 Performance analysis superpowers with Linux eBPF
Brendan Gregg
?

Similar to Qt native built for raspberry zero (20)

SPDK benchmark memo
SPDK benchmark memoSPDK benchmark memo
SPDK benchmark memo
Naoto MATSUMOTO
?
Bundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPMBundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPM
Alexander Shopov
?
Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014
biicode
?
curl --http3 cheatsheet
curl --http3 cheatsheetcurl --http3 cheatsheet
curl --http3 cheatsheet
Naoto MATSUMOTO
?
Openwrt startup
Openwrt startupOpenwrt startup
Openwrt startup
?
Docker to the Rescue of an Ops Team
Docker to the Rescue of an Ops TeamDocker to the Rescue of an Ops Team
Docker to the Rescue of an Ops Team
Docker, Inc.
?
Docker to the Rescue of an Ops Team
Docker to the Rescue of an Ops TeamDocker to the Rescue of an Ops Team
Docker to the Rescue of an Ops Team
Rachid Zarouali
?
Tutorial to setup OpenStreetMap tileserver with customized boundaries of India
Tutorial to setup OpenStreetMap tileserver with customized boundaries of IndiaTutorial to setup OpenStreetMap tileserver with customized boundaries of India
Tutorial to setup OpenStreetMap tileserver with customized boundaries of India
Arun Ganesh
?
ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions
Chanaka Lasantha
?
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
Mydbops
?
Perl on embedded Linux with Buildroot?
Perl on embedded Linux with Buildroot?Perl on embedded Linux with Buildroot?
Perl on embedded Linux with Buildroot?
Fran?ois Perrad
?
9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training
videos
?
Magie di git
Magie di gitMagie di git
Magie di git
michele franzin
?
Qemu - Raspberry | while42 Singapore #2
Qemu - Raspberry | while42 Singapore #2Qemu - Raspberry | while42 Singapore #2
Qemu - Raspberry | while42 Singapore #2
While42
?
How to burn your GPU with CUDA9.1
How to burn your GPU with CUDA9.1How to burn your GPU with CUDA9.1
How to burn your GPU with CUDA9.1
Naoto MATSUMOTO
?
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
Leo Lorieri
?
Linux Containers From Scratch
Linux Containers From ScratchLinux Containers From Scratch
Linux Containers From Scratch
joshuasoundcloud
?
Scaling Development Environments with Docker
Scaling Development Environments with DockerScaling Development Environments with Docker
Scaling Development Environments with Docker
Docker, Inc.
?
Really useful linux commands
Really useful linux commandsReally useful linux commands
Really useful linux commands
Michael J Geiser
?
9 steps to install and configure postgre sql from source on linux
9 steps to install and configure postgre sql from source on linux9 steps to install and configure postgre sql from source on linux
9 steps to install and configure postgre sql from source on linux
chinkshady
?
Bundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPMBundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPM
Alexander Shopov
?
Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014
biicode
?
Openwrt startup
Openwrt startupOpenwrt startup
Openwrt startup
?
Docker to the Rescue of an Ops Team
Docker to the Rescue of an Ops TeamDocker to the Rescue of an Ops Team
Docker to the Rescue of an Ops Team
Docker, Inc.
?
Docker to the Rescue of an Ops Team
Docker to the Rescue of an Ops TeamDocker to the Rescue of an Ops Team
Docker to the Rescue of an Ops Team
Rachid Zarouali
?
Tutorial to setup OpenStreetMap tileserver with customized boundaries of India
Tutorial to setup OpenStreetMap tileserver with customized boundaries of IndiaTutorial to setup OpenStreetMap tileserver with customized boundaries of India
Tutorial to setup OpenStreetMap tileserver with customized boundaries of India
Arun Ganesh
?
ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions
Chanaka Lasantha
?
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
Mydbops
?
Perl on embedded Linux with Buildroot?
Perl on embedded Linux with Buildroot?Perl on embedded Linux with Buildroot?
Perl on embedded Linux with Buildroot?
Fran?ois Perrad
?
9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training
videos
?
Qemu - Raspberry | while42 Singapore #2
Qemu - Raspberry | while42 Singapore #2Qemu - Raspberry | while42 Singapore #2
Qemu - Raspberry | while42 Singapore #2
While42
?
How to burn your GPU with CUDA9.1
How to burn your GPU with CUDA9.1How to burn your GPU with CUDA9.1
How to burn your GPU with CUDA9.1
Naoto MATSUMOTO
?
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
Leo Lorieri
?
Linux Containers From Scratch
Linux Containers From ScratchLinux Containers From Scratch
Linux Containers From Scratch
joshuasoundcloud
?
Scaling Development Environments with Docker
Scaling Development Environments with DockerScaling Development Environments with Docker
Scaling Development Environments with Docker
Docker, Inc.
?
9 steps to install and configure postgre sql from source on linux
9 steps to install and configure postgre sql from source on linux9 steps to install and configure postgre sql from source on linux
9 steps to install and configure postgre sql from source on linux
chinkshady
?

Recently uploaded (20)

power system protection and why to protect the system
power system protection and why to protect the systempower system protection and why to protect the system
power system protection and why to protect the system
DivyangBhatt6
?
Airport Components Part1 ppt.pptx-Site layout,RUNWAY,TAXIWAY,TAXILANE
Airport Components Part1 ppt.pptx-Site layout,RUNWAY,TAXIWAY,TAXILANEAirport Components Part1 ppt.pptx-Site layout,RUNWAY,TAXIWAY,TAXILANE
Airport Components Part1 ppt.pptx-Site layout,RUNWAY,TAXIWAY,TAXILANE
Priyanka Dange
?
Virtual Power plants-Cleantech-Revolution
Virtual Power plants-Cleantech-RevolutionVirtual Power plants-Cleantech-Revolution
Virtual Power plants-Cleantech-Revolution
Ashoka Saket
?
OFFICE AUTOMATION USING ESP32 AND ESP RAINMAKER
OFFICE AUTOMATION USING ESP32 AND ESP RAINMAKEROFFICE AUTOMATION USING ESP32 AND ESP RAINMAKER
OFFICE AUTOMATION USING ESP32 AND ESP RAINMAKER
AdityaSK5
?
UHV UNIT-5 IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON P...
UHV UNIT-5  IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON P...UHV UNIT-5  IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON P...
UHV UNIT-5 IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON P...
arivazhaganrajangam
?
Mastering Secure Login Mechanisms for React Apps.pdf
Mastering Secure Login Mechanisms for React Apps.pdfMastering Secure Login Mechanisms for React Apps.pdf
Mastering Secure Login Mechanisms for React Apps.pdf
Brion Mario
?
Shallow base metal exploration in northern New Brunswick.pdf
Shallow base metal exploration in northern New Brunswick.pdfShallow base metal exploration in northern New Brunswick.pdf
Shallow base metal exploration in northern New Brunswick.pdf
DUSABEMARIYA
?
22PCOAM16 _ML_ Unit 2 Full unit notes.pdf
22PCOAM16 _ML_ Unit 2 Full unit notes.pdf22PCOAM16 _ML_ Unit 2 Full unit notes.pdf
22PCOAM16 _ML_ Unit 2 Full unit notes.pdf
Guru Nanak Technical Institutions
?
BCS401 ADA First IA Test Question Bank.pdf
BCS401 ADA First IA Test Question Bank.pdfBCS401 ADA First IA Test Question Bank.pdf
BCS401 ADA First IA Test Question Bank.pdf
VENKATESHBHAT25
?
Explainability and Transparency in Artificial Intelligence: Ethical Imperativ...
Explainability and Transparency in Artificial Intelligence: Ethical Imperativ...Explainability and Transparency in Artificial Intelligence: Ethical Imperativ...
Explainability and Transparency in Artificial Intelligence: Ethical Imperativ...
AI Publications
?
Chemical_Safety | Chemical Safety Management | Gaurav Singh Rajput
Chemical_Safety | Chemical Safety Management | Gaurav Singh RajputChemical_Safety | Chemical Safety Management | Gaurav Singh Rajput
Chemical_Safety | Chemical Safety Management | Gaurav Singh Rajput
Gaurav Singh Rajput
?
22PCOAM16_ML_Unit 1 notes & Question Bank with answers.pdf
22PCOAM16_ML_Unit 1 notes & Question Bank with answers.pdf22PCOAM16_ML_Unit 1 notes & Question Bank with answers.pdf
22PCOAM16_ML_Unit 1 notes & Question Bank with answers.pdf
Guru Nanak Technical Institutions
?
Intro PPT SY_HONORS.pptx- Teaching scheme
Intro PPT SY_HONORS.pptx- Teaching schemeIntro PPT SY_HONORS.pptx- Teaching scheme
Intro PPT SY_HONORS.pptx- Teaching scheme
Priyanka Dange
?
he Wright brothers, Orville and Wilbur, invented and flew the first successfu...
he Wright brothers, Orville and Wilbur, invented and flew the first successfu...he Wright brothers, Orville and Wilbur, invented and flew the first successfu...
he Wright brothers, Orville and Wilbur, invented and flew the first successfu...
HardeepZinta2
?
UHV UNIT-I INTRODUCTION TO VALUE EDUCATION.pptx
UHV UNIT-I INTRODUCTION TO VALUE EDUCATION.pptxUHV UNIT-I INTRODUCTION TO VALUE EDUCATION.pptx
UHV UNIT-I INTRODUCTION TO VALUE EDUCATION.pptx
arivazhaganrajangam
?
Shaping Skylines- The Evolution of Real Estate Development and the Vision of ...
Shaping Skylines- The Evolution of Real Estate Development and the Vision of ...Shaping Skylines- The Evolution of Real Estate Development and the Vision of ...
Shaping Skylines- The Evolution of Real Estate Development and the Vision of ...
josephmigliorini1
?
Intro of Airport Engg..pptx-Definition of airport engineering and airport pla...
Intro of Airport Engg..pptx-Definition of airport engineering and airport pla...Intro of Airport Engg..pptx-Definition of airport engineering and airport pla...
Intro of Airport Engg..pptx-Definition of airport engineering and airport pla...
Priyanka Dange
?
Airport Components Part2 ppt.pptx-Apron,Hangers,Terminal building
Airport Components Part2 ppt.pptx-Apron,Hangers,Terminal buildingAirport Components Part2 ppt.pptx-Apron,Hangers,Terminal building
Airport Components Part2 ppt.pptx-Apron,Hangers,Terminal building
Priyanka Dange
?
Final Round of technical quiz on Chandrayaan
Final Round of technical quiz on ChandrayaanFinal Round of technical quiz on Chandrayaan
Final Round of technical quiz on Chandrayaan
kamesh sonti
?
PROJECT REPORT ON PASTA MACHINE - KP AUTOMATIONS - PASTA MAKING MACHINE PROJE...
PROJECT REPORT ON PASTA MACHINE - KP AUTOMATIONS - PASTA MAKING MACHINE PROJE...PROJECT REPORT ON PASTA MACHINE - KP AUTOMATIONS - PASTA MAKING MACHINE PROJE...
PROJECT REPORT ON PASTA MACHINE - KP AUTOMATIONS - PASTA MAKING MACHINE PROJE...
yadavchandan322
?
power system protection and why to protect the system
power system protection and why to protect the systempower system protection and why to protect the system
power system protection and why to protect the system
DivyangBhatt6
?
Airport Components Part1 ppt.pptx-Site layout,RUNWAY,TAXIWAY,TAXILANE
Airport Components Part1 ppt.pptx-Site layout,RUNWAY,TAXIWAY,TAXILANEAirport Components Part1 ppt.pptx-Site layout,RUNWAY,TAXIWAY,TAXILANE
Airport Components Part1 ppt.pptx-Site layout,RUNWAY,TAXIWAY,TAXILANE
Priyanka Dange
?
Virtual Power plants-Cleantech-Revolution
Virtual Power plants-Cleantech-RevolutionVirtual Power plants-Cleantech-Revolution
Virtual Power plants-Cleantech-Revolution
Ashoka Saket
?
OFFICE AUTOMATION USING ESP32 AND ESP RAINMAKER
OFFICE AUTOMATION USING ESP32 AND ESP RAINMAKEROFFICE AUTOMATION USING ESP32 AND ESP RAINMAKER
OFFICE AUTOMATION USING ESP32 AND ESP RAINMAKER
AdityaSK5
?
UHV UNIT-5 IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON P...
UHV UNIT-5  IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON P...UHV UNIT-5  IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON P...
UHV UNIT-5 IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON P...
arivazhaganrajangam
?
Mastering Secure Login Mechanisms for React Apps.pdf
Mastering Secure Login Mechanisms for React Apps.pdfMastering Secure Login Mechanisms for React Apps.pdf
Mastering Secure Login Mechanisms for React Apps.pdf
Brion Mario
?
Shallow base metal exploration in northern New Brunswick.pdf
Shallow base metal exploration in northern New Brunswick.pdfShallow base metal exploration in northern New Brunswick.pdf
Shallow base metal exploration in northern New Brunswick.pdf
DUSABEMARIYA
?
BCS401 ADA First IA Test Question Bank.pdf
BCS401 ADA First IA Test Question Bank.pdfBCS401 ADA First IA Test Question Bank.pdf
BCS401 ADA First IA Test Question Bank.pdf
VENKATESHBHAT25
?
Explainability and Transparency in Artificial Intelligence: Ethical Imperativ...
Explainability and Transparency in Artificial Intelligence: Ethical Imperativ...Explainability and Transparency in Artificial Intelligence: Ethical Imperativ...
Explainability and Transparency in Artificial Intelligence: Ethical Imperativ...
AI Publications
?
Chemical_Safety | Chemical Safety Management | Gaurav Singh Rajput
Chemical_Safety | Chemical Safety Management | Gaurav Singh RajputChemical_Safety | Chemical Safety Management | Gaurav Singh Rajput
Chemical_Safety | Chemical Safety Management | Gaurav Singh Rajput
Gaurav Singh Rajput
?
Intro PPT SY_HONORS.pptx- Teaching scheme
Intro PPT SY_HONORS.pptx- Teaching schemeIntro PPT SY_HONORS.pptx- Teaching scheme
Intro PPT SY_HONORS.pptx- Teaching scheme
Priyanka Dange
?
he Wright brothers, Orville and Wilbur, invented and flew the first successfu...
he Wright brothers, Orville and Wilbur, invented and flew the first successfu...he Wright brothers, Orville and Wilbur, invented and flew the first successfu...
he Wright brothers, Orville and Wilbur, invented and flew the first successfu...
HardeepZinta2
?
UHV UNIT-I INTRODUCTION TO VALUE EDUCATION.pptx
UHV UNIT-I INTRODUCTION TO VALUE EDUCATION.pptxUHV UNIT-I INTRODUCTION TO VALUE EDUCATION.pptx
UHV UNIT-I INTRODUCTION TO VALUE EDUCATION.pptx
arivazhaganrajangam
?
Shaping Skylines- The Evolution of Real Estate Development and the Vision of ...
Shaping Skylines- The Evolution of Real Estate Development and the Vision of ...Shaping Skylines- The Evolution of Real Estate Development and the Vision of ...
Shaping Skylines- The Evolution of Real Estate Development and the Vision of ...
josephmigliorini1
?
Intro of Airport Engg..pptx-Definition of airport engineering and airport pla...
Intro of Airport Engg..pptx-Definition of airport engineering and airport pla...Intro of Airport Engg..pptx-Definition of airport engineering and airport pla...
Intro of Airport Engg..pptx-Definition of airport engineering and airport pla...
Priyanka Dange
?
Airport Components Part2 ppt.pptx-Apron,Hangers,Terminal building
Airport Components Part2 ppt.pptx-Apron,Hangers,Terminal buildingAirport Components Part2 ppt.pptx-Apron,Hangers,Terminal building
Airport Components Part2 ppt.pptx-Apron,Hangers,Terminal building
Priyanka Dange
?
Final Round of technical quiz on Chandrayaan
Final Round of technical quiz on ChandrayaanFinal Round of technical quiz on Chandrayaan
Final Round of technical quiz on Chandrayaan
kamesh sonti
?
PROJECT REPORT ON PASTA MACHINE - KP AUTOMATIONS - PASTA MAKING MACHINE PROJE...
PROJECT REPORT ON PASTA MACHINE - KP AUTOMATIONS - PASTA MAKING MACHINE PROJE...PROJECT REPORT ON PASTA MACHINE - KP AUTOMATIONS - PASTA MAKING MACHINE PROJE...
PROJECT REPORT ON PASTA MACHINE - KP AUTOMATIONS - PASTA MAKING MACHINE PROJE...
yadavchandan322
?

Qt native built for raspberry zero

  • 1. Building Qt 5.12 LTS for Raspberry Pi Zero on Debian Stretch spring 2019
  • 2. SD card formating and flashing
  • 3. Preparing SD with Etcher sudo apt-get update --fix- missing
  • 5. First Steps Cd Cd Desktop #Download the Qt 5.12.3 source archive wget http://download.qt.io/official_releases/qt/5.12/5.12.3/single/qt-everywhere-src-5.12.3.tar.xz #Check archive MD5 hash md5sum qt-everywhere-src-5.12.3.tar.xz #It should be: #38017e0ed88b9baba063bd723d9ca8b2 qt-everywhere-src-5.12.3.tar.xz Un-tar the source archive Un-tar the source archive in a suitable location, with enough free space (~2.8GB). This will take around 7-13 minutes on a Raspberry Pi 3+, depending on SD card speed, and even more on an older model, so go grab of coffe again. You can of course start installation of the build dependecies while you wait. tar xf qt-everywhere-src-5.12.3.tar.xz
  • 6. Setup Qt mkspecs configurati Qt build is configured trough the configure script, but platform and device specifc settings are set in mkspecs configuration files. Qt includes mkspecs for the Raspberry Pi but they are unfortunately setup for c compilation environments and can not be used for native building without editing or the need for faking a cross compilation environment. Suitable mkspecs files for the various Pi revisions are available in our g next step is to clone the repository and install the mkspecs files into the Qt source tree. Clone the configuration repository: git clone https://github.com/oniongarlic/qt-raspberrypi-configuration.git cd into the clone repository and run (adjust DESTDIR in case your Qt sources are extracted somewhere else): cd qt-raspberrypi-configuration && make install DESTDIR=../qt-everywhere-src-5.12.3 PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig ../qt-everywhere-src-5.12.3/configure -platform linux-rpi-g++ -v -opengl es2 -eglfs -no-gtk -opensource -confirm-license -release -reduce-exports -force-pkg-config -nomake examples -no-compile-examples -skip qtwayland -skip qtwebengine -no-feature-geoservices_mapboxgl -qt-pcre -no-pch -ssl -evdev -system-freetype
  • 7. Install required build depend You will need to install plenty of packages to be able to build Qt. Some of the Qt features are optional, for example support for various databases and if you don't need a specific feature you can skip building the Or the other way around, if you need a specific feature you might need to install more packages. See the table below for a list of some optional features and the required development packages you need to inst first, start by updating your package cache so everything is fresh: apt-get update Then continue with package installation. Install required development packages apt-get install build-essential libfontconfig1-dev libdbus-1-dev libfreetype6-dev libicu-dev libinput-dev libxkbcommon-dev libsqlite3-dev libssl-dev libp libjpeg-dev libglib2.0-dev libraspberrypi-dev #acording my searching needs to install llvm-dev Sudo apt-get install llvm-dev
  • 8. Install optional development packages sudo apt-get install libx11-dev libxcb1-dev libxkbcommon-x11-dev libx11-xcb-dev libxext-dev -y
  • 9. cd ~ sudo cat << EOF> qt_installation.sh cd /home/pi/Desktop/qt-raspberrypi-configuration nohup sh -c " sudo make -j2 && sudo make install "> /home/pi/Desktop/qt_inst.log /dev/null 2>&1 & #tail -f /home/pi/Desktop/qt_inst.log #sudo make -j2 #sudo make install EOF Sudo chmod 755 qt_installation.sh sudo nano .bashrc #insert ./qt_installation.sh at the end of file
  • 10. ource accepted. config.qtmultimedia_multimedia.libraries.pulseaudio succeeded cking for libresourceqt5... g source 0 (type pkgConfig) of library libresourceqt5 ... r/bin/pkg-config --exists --silence-errors libresourceqt5 config did not find package. ource produced no result. config.qtmultimedia_multimedia.libraries.libresourceqt5 FAILED cking for libclang... config.qttools_qdoc.tests.libclang FAILED e running configuration tests. igure summary: type: linux-rpi-g++ (arm, CPU features: <none>) piler: gcc 6.3.0 iguration: use_gold_linker enable_new_dtags largefile shared rpath
  • 11. Install pacman for erro of qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" http://www.libarchive.org/downloads/libarchive-3.3.3.tar.gz Tar xzf libarchive-3.3.3.tar.gz Cd libarchive-3.3.3 ./configure Make Make install #https://www.archlinux.org/pacman/ Wget https://sources.archlinux.org/other/pacman/pacman-5.1.3.tar.gz Tar xfz pacman-5.1.3.tar.gz Cd pacman-5.1.3 ./configure Make
  • 12. Install pacman for erro of qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" #https://forum.qt.io/topic/93247/qt-qpa-plugin-could-not-load-the-qt-platform- plugin-xcb-in-even-though-it-was-found/8
  • 13. Error: g++: internal compiler error: Killed (program cc1plus) https://wpitchoune.net/tricks/raspberry_pi3_increase_swap_size.htm l You could be running out of memory.
  • 14. Setting up WiFi using an RTL8188eu dongle on Raspberry Pi Zero sudo nano /etc/wpa_supplicant/wpa_supplicant.conf #into wpa_ file inser this: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=US network={ ssid="Haper" psk="hellohello" key_mgmt=WPA-PSK } https://zsiti.eu/wifi-rtl8188eu-raspberry-pi- zero/
  • 15. Installing wifi usb dongle for raspberry sudo apt-get install git build-essential git clone https://github.com/lwfinger/rtlwifi_new.git cd rtlwifi_new make sudo make install https://askubuntu.com/questions/523197/rtl8188cus-unable-to-install-14- 04
  • 16. Error:make[1]: *** /lib/modules/4.14.98+/build: No such file or directory. Stop. sudo apt-get install git raspberrypi-kernel-headers build-essential dkms
  • 17. Make error: invalid conversion from xcb_window_t {aka unsigned int} saying that 'sudo rpi-update' would do the trick https://forum.qt.io/topic/103934/failure-to-build-qt5-5-12-3-on-raspberry-pi- zero/10
  • 18. sudo apt-get install qt5-default qt5-qmake qtbase5-dev-tools qtcreator https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=122267 sudo apt-get update sudo apt-get install qt5-default qt5-qmake qtbase5-dev-tools qtcreator