4212 views|0 replies

298

Posts

1

Resources
The OP
 

IMX6 development board Qtopia2.2.0 development environment construction and compilation image [Copy link]

To build the Qtopia2.2.0 development environment, you need to build the Android compilation environment first, and then
build the Qtopia2.2.0 compilation environment based on the Android compilation environment. The following content is based on the Xunwei-iMX6 development board.
The Qtopia2.2.0 compilation environment seems complicated, but users only need to grasp a few key points.
First: Compiler. The compiler is provided in the network disk. In the steps to be used, explain its location in the network disk
.
Second: Set environment variables. After the environment variables are set, the system can find the compiler when compiling.
Third: Library files. During the construction process, the library files will be installed by executing simple script commands, and the complex steps become
simple and effective.
Fourth: Source code. The Qtopia2.2.0 source files downloaded from the official website have a small number of bugs. After being modified by Xunwei engineers, they
can be used directly. Users can skip the source code modification step directly.
If the user is using the "built Ubuntu image", you only need to change the environment variables, and the tools
and library files in the system have been installed.
For the Qt file system, Xunwei Electronics has ported Qtopia2.2.0 and
Qte4.7.1 on the iTOP-iMX6 development board. The graphical interface of the file compiled by the user after referring to this chapter is Qtopia2.2.0
. The compilation method of Qte4.7.1 is in Chapter 7.
If the user is using the "built Ubuntu image", you only need to modify the environment variables. You only need to
set the compiler to the 4.4.1 compiler and modify the ".bashrc" environment variable file, as shown in the figure below.
(, downloads: 0)

6.1 Installation of compiler and basic library files
The compiler of Qtopia2.2.0 is included in the compressed package "arm-linux-4.4.1.tar.g" in the folder of the network disk directory "iTOP-iMX6 development board data summary (excluding CD content)
\04_iTOP-iMX6 development board QtE and Qtopia system source code and image\03_compiler, patch package and other tools
\01_compiler".
Copy the compressed package to the "usr/local/arm" directory under the Ubuntu system. If there is no arm directory, you can create
one, as shown in the figure below.
(, downloads: 0) Then unzip the compressed package to the Ubuntu system folder "usr"-->"local"-->"arm", enter the
"/usr/local/arm" directory and use the decompression command "tar -vxf arm-linux-4.4.1.tar.gz" to unzip "arm-linux-
4.4.1.tar.gz", as shown in the figure below.
(, downloads: 0) As shown in the figure below, the decompression is complete and the folder "4.4.1" is generated.
(, downloads: 0) Then install the X11 SDK library and execute the command "apt-get install libx11-dev libxext-dev libxtst-
dev", as shown in the figure below.
(, downloads: 0) During the library installation process, you will be prompted whether to continue, as shown in the figure below, select "y" to continue.
(, downloads: 0) As shown in the figure below, the update is complete.
(, downloads: 0) Then modify the environment variables, as shown in the figure below. In the root directory (you will return to the root directory after using the cd command
) use the command "vim .bashrc".
(, downloads: 0) After opening the environment variable file ".bashrc" with the vim editor, modify the path of the Qtopia2.2.0 compiler and add
"export PATH=$PATH:/usr/local/arm/4.4.1/bin". In the last line of the file ".bashrc". Then
comment out other compilers, such as the arm-2009q3 compiler shown in the figure below.
(, downloads: 0) After the modification is completed, save and exit the ".bashrc" file.
(, downloads: 0) Update the environment variables, as shown in the figure below, use the command "source .bashrc" to update the environment variables.
(, downloads: 0) Here, test whether the compiler is installed correctly, execute the command "arm-none-linux-gnueabi-gcc -v",
as shown in the figure below.
(, downloads: 0) As shown in the figure below, you can see that the system displays the version of the arm-gcc compiler as "gcc version 4.4.1".
Note that when building the Android compilation environment earlier, it mentioned a step of "lowering the gcc version",
but the previous "gcc" is the x86 compiler (you can view its version through the command #gcc -v). The
"gcc" compiler used here is the arm compiler. They are two completely different compilers, so don't confuse them.
(, downloads: 0)

This post is from Embedded System
Personal signature更多开发板详情了解哦

1.https://arm-board.taobao.com
2.www.topeetboard.com
Q: 2551456065

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list