Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the compilation of Qt

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to realize the compilation of Qt". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "how to compile Qt"!

4.1 uboot compilation

It is common to Android's uboot, see section 5.3.2.1.

5.4.2 kernel compilation

If you compile kernel separately, you will enter the "iTOP-iMX6_android4.4.2/kernel_imx" directory where the source code is decompressed.

Record, as shown in the following figure.

As shown in the following figure, use the command ". / build_qt_kernel.sh" to start compiling the kernel.

Start the compilation, as shown in the following figure.

As shown in the following figure, the compilation is complete.

Generated under the "iTOP-iMX6_android4.4.2/kernel_imx/arch/arm/boot" directory, as shown in the following figure

UImage, which is the kernel image.

5.4.3 File system

It is easier for Qt's system to generate new images.

Copy the compressed package "rootfs.tgz" from the CD "05-Mirror _ Qt" directory to the Ubuntu system for decompression.

The author copies the image "rootfs.tgz" to the newly created "/ home/imx6/qt" directory, using the command

Extract "tar-vxf rootfs.tgz", as shown in the following figure.

Enter the "opt" directory shown in the image above, as shown in the following figure.

As shown in the figure above, you can see the "qt-4.7.1" and "Qtopia" folders. "qt-4.7.1" and

The "Qtopia" folder corresponds to QtE system and Qtopia system respectively. For more information on how to get these two folders, please see

Chapter VI and Chapter VII.

Users can replace these folders with the newly compiled "qt-4.7.1" and "Qtopia" folders.

After the replacement, as shown in the following figure, use the command "tar-zcvf rootfs.tgz bin etc lib mnt proc sys"

Tmp usr version dev home linuxrc opt root sbin system topeet var .ash _ history "compression

Get the new Qt image file "rootfs.tgz".

As shown in the following figure, it is being compressed.

As shown in the following figure, the compression is complete.

As shown in the following figure, you can see that a new "rootfs.tgz" image is generated.

At this point, the compilation of Qt is all over.

At this point, I believe you have a deeper understanding of "how to realize the compilation of Qt". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report