2964 views|1 replies

250

Posts

5

Resources
The OP
 

[Mil MYC-JX8MPQ Review] Building a QT development environment [Copy link]

 

This board is still very powerful. I hope to learn some other things through this board and try more open source projects. This time I will build the QT environment first.

First of all, you need a virtual machine. The official recommendation is 18.04. We choose Ubuntu 18.04 and start building. First of all, it is the basic compilation environment. Install the SDK compilation environment given. As shown below, we copy the SDK with QT in the name. Only ordinary users are needed. Install as follows. I also modified the installation path, which is currently under home/imx8mp/opt_5_10.

The next step is to enable the environment variables and test whether they are valid, because we can modify the kernel later through the cross-compilation tool chain.

As shown above, we only need to source it. If the version appears, the test will pass.

The next step is to install QT. The current version is QT5.9.4 provided by Mir, but the version in the actual development board is QT5.15.

Just follow the steps to complete all the installation steps above. The next step is to configure the cross compiler. As follows:

Here we need to fill in the gcc compiler tool chain under the location where we just installed the tool, and then fill in a g++ one below.

A new compiler also needs to be added to Kits. I did not choose this QT version myself, it was discovered by QT itself. Finally, we create a new project: as follows

sudo apt-get purge libc6-dev

sudo apt-get install libc6-dev

sudo apt-get install libc6-dev-i386

There may be errors in the compilation, and we need to install some additional libraries ourselves.

After the compilation is completed, we can copy it to the board and execute it.

I didn't connect a display, so I can use qDebug() to output debugging information to see whether the program is executed or not.

Plug in the USB drive and it will mount automatically.

After that, we can check the file information under the path, and it is indeed the executable file on the ARM side.

Finally, we execute it and find that it prints the words we input. So far, the QT environment has been built.

Finally, we found that it has a lot of libraries. Later, we can reduce our own compilation and experience it with our own environment.

Latest reply

QT6 is out. Have you ever thought of using Qt6 to make columns?  Details Published on 2022-3-28 10:55
 
 

6841

Posts

11

Resources
2
 
QT6 is out. Have you ever thought of using Qt6 to make columns?
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
LCD TV schematic diagram

LCD TV schematic diagram

Microelectronics Dictionary

Abrupt junction Accelerated testing Acceptor Acceptor atom Accumulation Accumulating contact Accumulation region Accumul ...

Motor drive control essence summary post

Since the establishment of this board, many netizens have posted many very valuable posts here. Xiaoguan took advantage ...

DM8148 sends Frames stream from DSP side to A8 side program configuration

I have been debugging DM8148 recently. According to the requirements, the data obtained by the camera needs to be sent t ...

ssd1306 Chinese and picture display

This post was last edited by lemon1394 on 2021-8-17 23:19 I have found many Chinese displays of ssd1306 introduced on t ...

31 "Millions of Miles" Raspberry Pi Car——Ubuntu MATE System Installation

Next, I was going to start learning ROS, but it was particularly difficult to install it on the Raspberry Pi operating ...

Pre-registration for the live broadcast with prizes | New opportunities in the UWB market

UWB is regarded as a new function of the next generation of human-computer interaction due to its high precision and hig ...

[Mil MYD-YG2LX development board] Application in industrial control field - EtherCAT master station based on SOEM

Preface This article introduces the application of in the field of industrial control , implement EtherCAT master based ...

[Digi-Key Electronics Follow me Issue 2] + Preliminary Task Construction

This post was last edited by Shi Xiaojie on 2023-11-2 22:32 Task construction: This time, flow me is developed using ci ...

LicheePi 4A problem record and solution Manually mount npu driver

Environment: debian system image 20231023 The error information is as follows: ``` (ort) root@lpi4a:/home/sipeed/Desktop ...

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