![]() ![]() Download the Raspberry Pi OS image from the Raspbian Foundation.I downloaded the image and prepared the SD card on my Windows machine. ![]() I also used the following guides for reference:Īnd many thanks to Oliver Wilkins for his guidance and support! Step 1: Download the Raspberry Pi OS image This guide is heavily based on the one published for Qt 14.1 by Walter Prechtl from INTERELECTRONIX found here: It will also need to be on the same network as the host PC Achnowledgements Networking: Your Raspberry Pi REQUIRES internet access to follow these instructions. Storage Requirements: The build directory within Ubuntu was around 8.1 GB once the whole process was complete This can be faster than dealing with a VM WSL: These instructions have been tested on Windows Subsystem for Linux (WSL) and have worked perfectly (Ubuntu 20.04). Virtual Machine: VMWare Player configured with 4 CPU Cores + 8GB RAM + Virtualisation Engine for CPU disabled Target: Raspberry Pi OS (32-bit) Release: Ĭross Compiler: gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf Host: Ubuntu 20.04 LTS 64-bit (Running in VMWare Player within Windows 10) Target: Raspberry Pi 4 Model B Rev 1.2 (2020 production year) If you spot any errors or redundant/unnecessary steps, please do let me know. Hope it might be useful to anyone else wanting to achieve something similar. This guide documents the steps I followed to corss-compile Qt 5.15.0 for the Raspberry Pi 4B. It would mean that I can do all the CPU intensive work directly on my PC and I can also fail faster, speeding up my ability to find and troubleshoot issues. ![]() When compiling the source directly on the Pi, it can take a long time to realise an issue even occured, due to the slower CPU.Īfter a failed attempt trying to compile natively on the new Raspberry Pi 4, I decided to focus on getting a cross compiler to work. With every update to the software and hardware, the instructions that were written for an older version seem to become slightly broken with the new version. I have often faced issues compiling Qt for Raspberry Pis in the past. Cross-Compiling Qt 5.15.0 for Raspberry Pi 4 ![]()
0 Comments
Leave a Reply. |