Setting Up the QT Cross-Compilation Environment on iMX6 Yocto Platform

WeChat Public Account: morixinguan Follow for more tutorials. For questions or suggestions, please leave a message on the public account; If you find this article helpful, feel free to appreciate it

Install Essential Library Files on Ubuntu

Setting Up the QT Cross-Compilation Environment on iMX6 Yocto Platform

If installation fails, execute the following two commands in order:

apt-get upgrade

apt-get update

Then install the above library files.

2. Set Up JDK Development Environment

Download jdk1.6.0_45, then install the related JDK library files and set environment variables.

3. Install Yocto Cross-Compilation Tools and QT Development Environment as referenced:

http://blog.csdn.net/lu_embedded/article/details/56102831

Next, set up the cross-compilation environment

Host Environment: Ubuntu 12.04, 64-bit.

Cross-compilation Tools: Poky 1.5.3 cross-compilation toolchain and related tools.

1. Install Cross-Compilation Tools

Unzip the Poky cross-compilation tool package to the /opt directory.

1$ sudo cp fsl-imx-x11-Yocto_1.5.3.tar.bz2 /opt
2$ cd /opt
3$ sudo tar jxvf fsl-imx-x11-Yocto_1.5.3.tar.bz2

At this point, use the ls command to check.

1$ ls -1 /opt/poky/1.5.3/
2
3environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
4site-config-cortexa9hf-vfp-neon-poky-linux-gnueabi
5sysroots
6version-cortexa9hf-vfp-neon-poky-linux-gnueabi

Assign user or group to the cross-compilation tools, where XXX is your Ubuntu username.

1$ sudo chown -R XXX:XXX /opt/poky

2. Install QT Creator

I downloaded qt-creator-opensource-linux-x86_64-3.2.1.run, the installation process is as follows. Similarly, copy it to the /opt directory, and run it directly to enter the installation interface, as shown below:

1$ sudo cp qt-creator-opensource-linux-x86_64-3.2.1.run /opt
2$ cd /opt
3$ ./qt-creator-opensource-linux-x86_64-3.2.1.run

Setting Up the QT Cross-Compilation Environment on iMX6 Yocto PlatformSetting Up the QT Cross-Compilation Environment on iMX6 Yocto Platform
Setting Up the QT Cross-Compilation Environment on iMX6 Yocto PlatformSetting Up the QT Cross-Compilation Environment on iMX6 Yocto Platform
Setting Up the QT Cross-Compilation Environment on iMX6 Yocto PlatformSetting Up the QT Cross-Compilation Environment on iMX6 Yocto Platform

3. Configure the Running Environment of Qt Creator

Navigate to the /opt/qtcreator-3.2.1/bin directory and execute the command $ ./ qtcreator.sh, to run Qt Creator.

Setting Up the QT Cross-Compilation Environment on iMX6 Yocto Platform

Then, in the Qt running interface, click on the menu bar “Tools –> Options –> Build&Run” to configure accordingly.

Setting Up the QT Cross-Compilation Environment on iMX6 Yocto Platform

Next, configure the cross-compiler

Add a “Manual”, click Add –> GCC, and add a GCC.

Setting Up the QT Cross-Compilation Environment on iMX6 Yocto Platform

The path of the cross-compiler is: /opt/poky/1.5.3/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++, then click apply.

Set Kit

Add a “Manual”, click Add, click Browser, and select Sysroot as:/opt/poky/1.5.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi.Click Compiler, and select the previously configured GCC.

Then click apply.

Setting Up the QT Cross-Compilation Environment on iMX6 Yocto Platform

Finally, click OK to exit. Thus, the Qt development environment for the i.MX platform is set up, and you can start developing Qt applications in this environment!

Additionally, recommended related courses:

Quality embedded learning materials recommended by Teacher Wei Dongshan: including ARM bare-metal development, Linux device drivers, Linux application development, Android system learning, Linux device tree, etc.

Purchase Teacher Wei Dongshan’s courses here for personal technical support, guiding you in embedded learning!

Setting Up the QT Cross-Compilation Environment on iMX6 Yocto Platform

Recommended excellent data structure and algorithm courses by Teacher Wang Zheng

Setting Up the QT Cross-Compilation Environment on iMX6 Yocto Platform

Long-term business cooperation services:

This public account and I have a lot of traffic in the circle, if you need regular product promotion, consignment sales, etc., please follow the WeChat public account <>, we can help you earn more money with this account.

Contact person:

Shenzhen An Lishun Technology R&D General Manager Yang Yuanxin

Last month when I picked up my car from the 4S shop, I won a water purifier in a lottery, originally priced at 2980 yuan, checkable on JD, 100% brand new, now 1500 yuan for resale, if interested, please contact me directly via WeChat.

Setting Up the QT Cross-Compilation Environment on iMX6 Yocto Platform

Setting Up the QT Cross-Compilation Environment on iMX6 Yocto Platform

Leave a Comment