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

Mysql solves the database N+1 query problem

Introduction In orm frameworks, such as hibernate...

Difference between MySQL btree index and hash index

In MySQL, most indexes (such as PRIMARY KEY, UNIQ...

How to store false or true in MySQL

MySQL Boolean value, stores false or true In shor...

JavaScript to achieve the idea of ​​​​snake game

The implementation idea of ​​the javascript game ...

WeChat applet realizes left-right linkage

This article shares the specific code for WeChat ...

Introduction to the steps of deploying redis in docker container

Table of contents 1 redis configuration file 2 Do...

How to monitor Tomcat using LambdaProbe

Introduction: Lambda Probe (formerly known as Tom...

Records of using ssh commands on Windows 8

1. Open the virtual machine and git bash window a...

In-depth understanding of Vue transition and animation

1. When inserting, updating, or removing DOM elem...

MySQL MyISAM default storage engine implementation principle

By default, the MyISAM table will generate three ...

Solution for Nginx installation without generating sbin directory

Error description: 1. After installing Nginx (1.1...

Detailed steps to install python3.7 on CentOS6.5

1. Download Python 3 wget https://www.python.org/...

Detailed explanation of the group by statement in MySQL database group query

1: Statement order of grouping function 1 SELECT ...