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 install Qt using Ubuntu

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

Share

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

This article will explain in detail how to use Ubuntu to install Qt, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Download the Qt Linux installation package

First go to the official download page of Qt:

Https://download.qt.io/archive/qt/5.14/5.14.2/

After entering, you can see the installation packages for each of the three platforms of Windows,Mac,Linux.

Right-click the installation package for the Linux platform and click the copy link address.

Enter ubuntu and open the terminal, and execute the following command

Sudo wget https://download.qt.io/archive/qt/5.14/5.14.2/qt-opensource-linux-x64-5.14.2.run

You can download it in a moment.

Installation

1. It is found that the installation package does not have the permission to execute through the ls command, so add the following

2, execute the chmod command to add permissions

3, install, will open the graphical interface installation wizard

This installation process will not be described in detail. It is similar to windos installation. Just click on the next step all the time. You can select all the components to view-> (windows Qt installation tutorial)

Open QtCreator

After the installation is complete, there is no shortcut to the desktop. We need to go to the installation directory and open it.

Create a simple project to test and see if it can run properly ~ the result is not good because the compiler suite is not installed.

Configure the environment

1. Install the compiler package gcompiler + and execute the following command (wait patiently for two minutes)

After the installation is complete, restart qtcreator, and you can continue to compile at this time, but you will get an error cannot find-lGL. This is because Qt5.0 has added OpenGL to the project by default, but there is no OpenGL installed on the machine, so you only need to install OpenGL on the machine. Execute the following command to install opengl

And then compile and run, successfully, Oye.

On how to use Ubuntu to install Qt to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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

Servers

Wechat

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

12
Report