Mill’s documentation for MYB-YT113X also includes a toolchain that includes the Qt SDK. Whether it is simply used as an IDE or developing Qt programs, QtCreator is very useful, at least under Linux can do a lot less configuration work. Let’s talk about the process here.
1. Install the Qt software in the Linux system, which can be installed on a virtual machine or a physical machine. The installed version is usually selected according to the SDK, but it is not always the same. The version used here is 5.14.2, which was the last version to have a binary installation package. After downloading the file, copy it to ubuntu18 and run the following command to install it.
sudo./ qt-opensource-linux-x64-5.14.2.run
The installation process needs to enter the account and password, if there is an error or other circumstances, it is likely to be the lack of some dependencies, install the corresponding library.
2. Deploy cross-compilation tools for the Qt SDK. It is provided in the data, the name is gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabi-qt5.12.5-myir.tar.bz2, a compressed package. Just unzip it to the opt directory.
sudo tar -xjf gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabi-qt5.12.5-myir.tar.bz2 -C /opt
3, configure the Qt compilation suite, here is the key place, with good, you can happily use ide development. The default installation of Qt, while the system is also installed gcc and other software, then in the tool Settings interface you can see the default Kit, based on X86 gcc.
Then you need to add a C and C++ compiler of your own, which essentially provides paths
Then select the path to qmake and specify the version.
As a final step, add the kit you just configured to Kit.
4, next create a project to compile to see.
After creating a template will automatically generate a program, because do not write Qt program, so create a C project. The demo program is then compiled using two compilation packages separately.
When you see that there are no mistakes, you can almost be sure that you have succeeded. So whether it is a Qt program or C/C++ program, you can use Qt Creator.