Detailed steps for installing, configuring and uninstalling QT5 in Ubuntu 14.04

Detailed steps for installing, configuring and uninstalling QT5 in Ubuntu 14.04

1. I downloaded QT5.13 version before, but after the installation, Qtcreator could not be opened. Here I recommend Qt5.9 version, the download address is as follows:
https://download.qt.io/official_releases/qt/5.9/5.9.0/
After downloading, save it to the file you want to save. Here I created a qt5 folder in the main file.

The first step is to enter sudo su in the terminal, then enter cd /qt5 (if it is not in home, just enter this without entering root. Then proceed as shown in the figure above.

2. If the command chmod +x qt-opensource-linux-x64-5.9.0.run displays some errors such as no found, first enter sudo apt-get install freeglut3-dev , then enter chmod +x qt-opensource-linux-x64-5.9.0.run (.run is the qt version you downloaded), then enter ls, and finally enter sudo ./qt-opensource-linux-x64-5.9.0.run to install it.

Jump out of the installation interface, skip directly in the QtAccount interface, and then follow the default installation (Note: Qt5.9.0 and tools need to be checked in the settings interface)

3. After the installation is complete, some configurations need to be modified. In the terminal command line, enter:

sudo vi /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf

In the figure below, Qt5.9.2 is changed to Qt5.9.0 (changed according to your own version, indicating the installation path of the bin file) and the second line is also changed to the corresponding version (if it is not there, add it yourself)

Note: The above picture is edited using the vim editor, so be careful when using it here, otherwise it is easy to delete the wrong thing.
Here are some of the keys we used:
After we press ESC to enter Command mode, we can use the following keys to move the cursor and save: wq;
j moves down one line;
k moves up one row;
h moves one character to the left;
l Move one character to the right;
The up arrow moves upward;
Down arrow moves downward;
Left arrow moves left;
Right arrow moves right;
i inserts before the cursor;
a is inserted after the cursor;
I inserts at the beginning of the line where the cursor is;
A inserts at the end of the line where the cursor is;
dd deletes a line;
#dd deletes multiple lines, # represents a number, for example 3dd means to delete the cursor line and the next two lines of the cursor
For details about Vim editor, please refer to: https://www.jb51.net/article/164706.htm
Before creating our first project, we need to install
sudo apt-get install libgl1-mesa-dev
Now that everything is done, let's start running our first project. Find qtcreator in the /opt/Qt5.9.0/Tools/QtCreator/bin folder (this is my installation path), double-click to open qt creator, and you will see:


Possible problems: The qtcreator interface may pop up errors such as file error, unable to create..., so the solution is: open the terminal, enter sudo su to enter root, and then enter the command
chown -R user:user .config
User is your home username, mine is mimosa, as shown below

When you open Qtcreaor again, there will be no file error pop-up window. If you find it inconvenient to look for the qtcreator software every time, you can lock it at startup. This perfectly solves the installation of Qt.

Uninstall QT

Uninstalling is very easy, just find MaintenanceTool in the installation directory

insert image description here

For example, my Qtcreator is installed in the qt folder under the root file. Then, according to the above picture, you can find the file location of MaintenanceTool in this directory. Enter sudo ./ MaintenanceTool in the terminal. The software uninstallation interface will pop up. Click Continue.

Summarize

This is the end of this article about the detailed steps of installing, configuring and uninstalling QT5 in Ubuntu 14.04. For more information about installing, configuring and uninstalling QT5 in Ubuntu 14.04, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed tutorial on installing qt5.12.8 and environment configuration on ubuntu18.04
  • How to install and uninstall pyqt5 in ubuntu
  • How to install Qt5.10 on Ubuntu 18.04

<<:  How to recover deleted MySQL 8.0.17 root account and password under Windows

>>:  Teach you how to implement Vue3 Reactivity

Recommend

How to use cursor triggers in MySQL

cursor The set of rows returned by the select que...

A brief discussion on the $notify points of element

My original intention was to encapsulate the $not...

How to convert Chinese into UTF-8 in HTML

In HTML, the Chinese phrase “學好好學” can be express...

How to make your JavaScript functions more elegant

Table of contents Object parameters using destruc...

How to perfectly implement the grid layout with intervals on the page

Typical layout examples As shown in the above pic...

Methods and steps to access Baidu Maps API with JavaScript

Table of contents 1. Baidu Map API Access 2. Usin...

React non-parent-child component parameter passing example code

React is a JAVASCRIPT library for building user i...

Learn Vue middleware pipeline in one article

Often when building a SPA, you will need to prote...

Tutorial on how to create a comment box with emoticons using HTML and CSS

HTML comment box with emoticons. The emoticons ar...

What are the drawbacks of deploying the database in a Docker container?

Preface Docker has been very popular in the past ...

How to create scheduled tasks using crond tool in Linux

Preface Crond is a scheduled execution tool under...

Mini Program implements custom multi-level single-select and multiple-select

This article shares the specific code for impleme...

JavaScript Basics Operators

Table of contents 1. Operators Summarize 1. Opera...

Pure CSS and Flutter realize breathing light effect respectively (example code)

Last time, a very studious fan asked if it was po...