Loaded 2936 entries from dependency cache. WARNING: Layer cuteradio should set LAYERSERIES_COMPAT_cuteradio in its conf/nf file to list the core layer names it is compatible with. We build the Qt SDK with the following command. The recipe meta-toolchain-qt5.bb does exactly this in addition to executing the task populate_sdk internally. This task also cross-builds Qt tools like qmake, moc and rcc.Īs we want to build applications on the host PC and not on the target device, we must make Yocto build these tools for the host PC. The task populate_sdk builds the cross-compilation toolchain and packages the toolchain, most of the root file system, the header files and some additional files into the SDK, a self-extracting tarball. # bitbake -c populate_sdk cuteradio-image In a non-Qt world, we would call // Do NOT call this! sources/poky/oe-init-build-env build-rpi3 We first enter the Docker container and then the Yocto build environment that we set up in Part 1. We install the sources of the Internet radio application into the working directory. We download the installer for CMake 3.17 from here and run the self-extracting tarball. We download the Qt online installer to install a Desktop Qt version including QtCreator (e.g., Qt 5.14 with QtCreator 4.11). If we use either an older QtCreator version or an older CMake version, we must use the workaround with QtCreatorDeployment.txt described here. Using these versions makes QtCreator deploy all the files specified by CMake’s install functions. We install QtCreator 4.11 or newer and CMake 3.16 or newer on the development PC. For example, I run Ubuntu 18.04 in a virtual machine on a Macbook Pro. Setup for Application DevelopmentĪs the Docker container for building the Linux image and the SDK run on Ubuntu 18.04, our development PC must run on Ubuntu 18.04 or newer. You must burn the updated Linux image on an SD card and plug the SD card into the Raspberry Pi – as described here. QtCreator needs these packages to deploy the radio application from the development PC to the Raspberry Pi. Two packages were missing from this Linux image: rsync and sftp-server. ![]() If you followed along Part 1 and built an image before 14 June 2020, you will have to update the layer repositories with repo sync (see here) and the build of the Linux image with bitbake cuteradio-image (see here). If you want to follow along with building the Qt SDK, you must build a Linux image as described in Part 1 of this series. In addition to the target libraries from the Linux image, the Qt SDK contains the library headers, a cross-compiler, a cross-linker, a cross-debugger and more. ![]() QtCreator cross-builds the application on the PC for the Raspberry Pi, deploys it with SSH to the Pi and runs it on the Pi. We change the source code in QtCreator and run the application. We want to develop the Internet radio application for the Raspberry Pi in the same way as for a PC.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |