In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 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 achieve QtE5.7 compilation", the content of the explanation is simple and clear, easy to learn and understand, now please follow the editor's ideas slowly in depth, together to study and learn "how to achieve QtE5.7 compilation"!
7.2.1 two ways to build a QtE5.7 compilation environment
7.2.1.1 use the already built image
Build the compilation environment in the "iTOP-iMX6 development board data collection (excluding CD-ROM materials)\ 02iTop -"
IMX6 development board compiler system required toolkits and other\ 06_QtE5.7 compilation environment installation package "directory. If you use the built compilation environment, after simply modifying the environment variables, you can complete the compilation of this chapter.
When using the built environment, if the ssh connection fails, you can refer to the "7.2.1.2" section to configure the ssh service. If you still have problems after modifying the configuration by referring to the section "7.2.1.2", you can refer to sections 7.2.1.3 and 7.2.1.4 to use the replacement tool. After testing, these two tools can still be used when the ssh tool is not available.
7.2.1.2 build your own environment
Another way is to install the virtual machine, install the Ubuntu16.04 system, and build the environment.
For information about "virtual machine installation", "virtual machine loading ubuntu image", "Ubuntu basic operations" and so on, users can refer to Chapter 3, which is common on ubutu16. It is important to note that when using ubuntu16, the site used is the source of Tsinghua University. The specific setup process is as follows:
Upper right pinion → System Settings → System → Software & updates
→ Ubuntu Software → Download from Select site
→ chooses Tsinghua site
→ pop-up verification → enter root account password
Replace → with the download point of Tsinghua University
→ apt-get update updates
Use the command "apt-get install vim ssh" to install the vim editor and ssh tools.
When using ssh, you will encounter the problem of ssh connection failure.
Start the ssh service with the command "/ etc/init.d/ssh restart", and then use the command "vim"
/ etc/ssh/sshd_config "opens the configuration file. Add at the end of the configuration file:
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc
MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha1-96 md5-96 KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-
Sha256@libssh.org
As shown in the following figure:
Find the following code in the configuration file and modify it as follows.
# Authentication:
LoginGraceTime 120
# PermitRootLogin prohibit-password
PermitRootLogin yes
StrictModes yes
After that, restart the ssh service with the "/ etc/init.d/ssh restart" command, and ssh can connect.
Use the following command in turn to install the library files.
Apt-get install lzop
Apt-get install u-boot-tools
Apt-get install autoconf
Apt-get install automake
Apt-get install libtool
Apt-get install libstdc++6
Apt-get install lib32c-dev
Apt-get install lib32stdc++6
Apt-get install lib32z1
Apt-get install lib32ncurses5
7.2.1.3 use of putty tools
Section 3.3.5 of the user's manual describes the SSH tool, which may not be used on Ubuntu16.04. This section describes the tool putty that replaces the SSH console.
The putty tool is the compressed package "putty_cn.zip" under the directory of "iTOP-iMX6 development board data collection (excluding CD materials)\ 02_iTOP-iMX6 development board compilation system toolkits\ 06_QtE5.7 compilation environment installation package\ 03-QtE5.7 compilation environment tools\ 01-putty console tools". After decompression, you get the folder "puttyfile_0.62cn" and enter the folder, as shown in the following figure.
Verify that SSH is installed on Ubuntu16.04 and the SSH function is enabled, and the virtual machine is turned on. The IP on the author's virtual machine is 192.168.2.23, which should be modified according to the actual situation of the user. As shown in the following figure, the double "putty.exe" open Putty configuration, as shown in the following figure.
As shown in the above figure, the parts that need to be noted have been marked.
The first step "remote host IP" should be set according to the actual situation; step 2-4, use the default; step 5, after saving the login settings, if there is no change in the configuration, you can log in using the default configuration; after the configuration is completed, use step 6 to log in to the host.
The author configuration is shown in the following figure.
Click Open and the dialog box shown in the following figure pops up.
There are three options, the first option "Yes", which means to log in to the host and save the configuration to the cache; the second option, "No", which means to log in to the host, but does not save the configuration; and the third option, "cancel", which means that you will not log in or save the configuration. Select the first option and the second login will not pop up the dialog box shown in the following image.
Select "Yes" here, and only the PuTTY interface is left, as shown in the following figure. Enter the account number root and password
Topeet, the default password of the built Ubuntu system is "topeet".
After entering the account number and password, as shown in the following figure, you can control the Ubuntu16.04 system remotely.
7.2.1.4 use of the winscp tool
Section 3.3.5 of the user's manual describes the SSH tool, which has a certain probability of not being used on Ubuntu16.04. This section describes the tool winscp that replaces the SSH file transfer.
The winscp tool is the compressed package "winscp5131.zip" under the directory of "iTOP-iMX6 development board data collection (excluding CD materials)\ 02_iTOP-iMX6 development board compilation system toolkits\ 06_QtE5.7 compilation environment installation package\ 03-QtE5.7 compilation environment tools\ 02-WinSCP file transfer tools". After decompression, we get the folder "WinSCP (SFTP client) v5.13.1 Chinese version". Enter the folder as shown in the following figure.
Double-click "WinSCP.exe" as shown in the following figure. Pop up the landing box.
As shown in the following figure, the IP address of the host name is Ubuntu, the user name is directly logged into root, the password of the built compilation environment is topeet, and then click the button "Log in".
A prompt box pops up as shown in the following figure. There are three options, the first option "Yes", which means to log in to the host and save the configuration to the cache; the second option, "No", which means to log in to the host, but does not save the configuration; and the third option, "cancel", which means that you will not log in or save the configuration. Select the first option and the second login will not pop up the dialog box shown in the following image.
The author chooses "Yes" here, as shown in the following figure, has been logged in, the left is the Windows directory, the right is the Ubuntu directory, the method is relatively simple, transfer files directly to the corresponding directory can be dragged.
7.2.2 Ubuntu16.04 system compiles uboot and kernel
Compiling uboot and kernel images with Ubuntu16.04 is exactly the same as using Chapter 5 to compile images. Because QtE5.7 must be compiled on Ubuntu16.04, for the convenience of users who only use QtE5.7, in this section, we provide a way to compile the corresponding uboot and kernel images of QtE5.7 on Ubuntu16.04.
The uboot source code and the kernel source code are in the Android source code.
Android source code in the CD directory "04 _ source code _ Android4.4 file system", the compressed package first decompressed under windows, decompressed to a separate compressed package "iTOP-iMX6_android4.4.2_20160904.tar.gz". Unpack the "iTOP-iMX6_android4.4.2_20160904.tar.gz" package under Ubuntu (note that the date suffix may be updated), get the "iTOP-iMX6_android4.4.2" folder, and enter the "iTOP-iMX6_android4.4.2" directory, as shown in the following figure.
7.2.2.1 Compiler version
Cross-compilation tools are needed when compiling. For the specific setup process, you can refer to the "installation of 5.2.2 cross-compilation tools" section.
7.2.2.2 compiling uboot
Enter the "iTOP-iMX6_android4.4.2/bootable/bootloader/uboot-imx" directory obtained by decompressing the source code, as shown in the following figure, you can see the script "build_uboot.sh", and execute the script "build_uboot.sh" to start compiling uboot. This is shown in the following figure.
When the compilation is complete, the "u-boot.bin" file is generated, which is the mirror image of uboot. All systems on the iTOP-iMX6 development board share a set of uboot source code and mirrors. This is shown in the following figure.
7.2.2.3 compiling the kernel
Enter the source code to extract the "iTOP-iMX6_android4.4.2/kernel_imx" directory, use the "vikernel/timeconst.pl" command to open the file, enter line 373, and modify it as shown in the following figure.
Save, exit.
Using the ". / build_qt_kernel.sh" command, start compiling the kernel, as shown in the following figure.
When the compilation is complete, the uImage is generated in the "iTOP-iMX6_android4.4.2/kernel_imx/arch/arm/boot" directory, which is the kernel image. This is shown in the following figure.
Thank you for your reading, the above is the content of "how to achieve QtE5.7 compilation", after the study of this article, I believe you have a deeper understanding of how to achieve QtE5.7 compilation, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.