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 implement QtE4.7 compilation and installation

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

Share

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

This article introduces the relevant knowledge of "how to realize QtE4.7 compilation and installation". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Installation of QtE4.7 compiler

The compiler of QtE4.7 is "arm-linux-gcc-4.3.2.tar.gz" in the directory of "iTOP-iMX6 data Collection (excluding CD contents)\ 04_iTOP-4418 development board QtE and Qtopia system source code and mirror\ 03 _ compiler, patch pack and other tools\ 01 _ compiler".

Extract "arm-linux-gcc-4.3.2.tar.gz" to the folder "/ usr/local/arm" of the Ubuntu system (if there is no ARM, create a new one), and unzip it, as shown in the following figure.

Then modify the environment variable, before modifying the environment variable, make sure it is under the root user, and then enter the command "cd" to make sure that the environment variable of the root user is modified, as shown in the following figure.

Then type the command "vim .bashrc" and open the file ".bashrc" that sets the environment variables.

After entering the command "vim .bashrc" shown in the figure above, enter enter, enter the ".bashrc" file, and then enter the last line, as shown in the following figure, change the environment variable to "export PATH=$PATH:/usr/local/arm/4.3.2/bin"

Save the exit, then update the environment variable and enter the command "source .bashrc", as shown in the following figure.

Then test whether the compiler path is set correctly. As shown in the following figure, enter the command "arm" on the Ubuntu command line

Then press the keyboard "Tab" and the compiler "arm-none-linux-gnueabi-gcc-4.3.2" appears, which means that the compiler path is set correctly.

Compilation of QtE4.7

If you build your own compilation environment and compile QtE directly instead of Qtopia2.2.0 in Chapter 6, you also need to use the command "apt-get install uboot-mkimage" to install the tool "mkimage".

The uboot used by the Qt/E4.7.1 file system is exactly the same as kernel and Qtopia, and is completely generic.

The source package of QtE is the compressed package "qt-everywhere-opensource-src-4.7.1_20141224.tar.gz" under the directory of "iTOP-iMX6 data collection (excluding CD contents)\ 04_iTOP-4418 development board QtE and Qtopia system source code as well as mirror\ 02_QtE source code".

Copy the source code package "qt-everywhere-opensource-src-4.7.1.tar.gz" to the Ubuntu folder "root/yizhi". Without this folder, you can create a new one.

Then, enter the decompression command "tar-vxf qt-everywhere-opensource-src-4.7.1.tar.gz" in the Ubuntu command line to get the folder "qt-everywhere-opensource-src-4.7.1", as shown in the following figure

Go to the "qt-everywhere-opensource-src-4.7.1" folder, execute the compilation script ". / build-all", and notice that the command has a dot ".", as shown in the following figure:

Enter enter, as shown in the following figure, to start compilation, which takes about an hour to compile.

After the compilation is completed, as shown in the following figure, go to the "/ opt" directory and you can see the "qt-4.7.1" folder generated by the compilation.

At this point, you have a complete "qt-4.7.1" system.

Users need to refer to section 5.4.3 to compile the Qt image before they can have the folder shown below.

This is the end of the content of "how to implement QtE4.7 compilation and installation". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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