Setup Qt Creator for Raspberry Pi cross compilation –.
Create working folder and set a toolchain –.The label means this action is done in the Raspberry Pi, whereas means it has to be performed in you computer. The following list summarizes the main steps to cross-compile Qt 5.12 for Raspberry Pi, we will be describing each of them in this post. Select Interfacing Options, select ssh, choose yes and finish. We will need it later to comunicate Qt Creator with your Raspbery Pi. Make sure that you have activated the Secure Shell (SSH) protocol in Raspbian. Execute the following command in the Raspberry Pi command-line interface for updating the firmware.
Also, check that you have the latest firmware, or install it and reboot the system.
It is assumed that you have a SD card with Raspbian strech installed in your Raspberry Pi, otherwise download it and follow the installation guide. Also, have a look at the comments below for new findings. Stay tuned for updates about new versions. This is also mentioned below in the step 6. For Qt 5.12.2 to 5.12.5, the build configuration file must be set to linux-rasp-pi-g++ instead of linux-rasp-pi3-g++ in the -device argument. Note: this tutorial works for Qt 5.12 and 5.12.2 to 5.12.5 (it doesn’t for 5.12.1 due to some bugs). We would really appreciate your support to our work and website if this is fine for you. This means if you click on the link and purchase the promoted item, we will receive a small affiliate commission at no extra cost to you, the price of the product is the same.
In this tutorial, you will learn how to cross-compile Qt 5.12 for Raspberry Pi in your computer and install it in your Raspberry. If you are not familiar with it, Qt is a rich framework with plenty of ready-to-use multi-platform components for diverse areas such as multimedia, network, connectivity, graphics, and much more. Qt 5.12 is a long-term support (LTS) release of the popular Qt framework. Cross-compile and deploy Qt 5.12 for Raspberry Pi - 17 November, 2019.ESP8266 NodeMCU pinout for Arduino IDE - 19 November, 2019.Flutter on Raspberry Pi with flutter-pi - 26 November, 2019.> originally meant to do: run application on remote device in the same way as it would be > Advice with setting DISPLAY variable seems to be closer to what this feature was > arbitrary arguments of openssh client to some magic place and get its behavior. > but uses internal SSH client library built on top of Botan. > Note that Qt Creator does not use system ssh client for running remote processes, > I believe there is a hidden configuration option in some file, and no need to recompile. > How to explain QtCreator->Tools->Devices module to connect via `ssh -X`?! This way it opens window(s) on a local (development) machine. The solution is to access to remote host with `-X` option. But when I run the app on the remote host through QtCreator, it fails to connect to a display, because it does not exist. Next is to deploy the application on a remote i386 host. It works fine on host system in both x32 and 圆4 variants. > I develop a cross-platform Qt application with GUI. Will return something like `localhost:11.0`ģ.Set environment variable DISPLAY for your run configuration in QtCreator to that value like `localhost:11.0` Open ssh session with X forwarding enabled Now I can make the app running on a remote machine open its graphics on a local development machine.ġ. Ура! Thank you, guys for support and ideas. Next message: Remote linux debugging requires SSH (any reason?).Previous message: How to make QtCreator to connect to a remote device (generic linux) with X forwarding enabled `ssh -X`?.How to make QtCreator to connect to a remote device (generic linux) with X forwarding enabled `ssh -X`? Иван Кувалдин i.kyb at ya.ru How to make QtCreator to connect to a remote device (generic linux) with X forwarding enabled `ssh -X`?