编程知识 cdmana.com

Ubuntu20.04 install qt5.9.9 + QT Creator

Download from the official website Qt4.99 Version installation package

link .
 Insert picture description here

Enter the installation interface

Keep clicking next until you select the plug-in

Choose plug-ins

 Insert picture description here
Install until the installation is complete

Open the terminal

Enter the command

sudo gedit /usr/bin/qtcreator

Insert the following and save exit

#!/bin/sh
export QT_HOME=/home/liangjian/Qt5.9.9/Tools/QtCreator/bin
$QT_HOME/qtcreator $*

Execution in terminal

sudo chmod a+x /usr/bin/qtcreator

Installation completed
Get into usr/local/ Under folder Qt5.9.9
Get into bin Folder
Open terminal input in this folder


./qmake -v

Display version information to complete the installation

Set the environment variable

Open the terminal and input the following code

gedit /home/liangjian/.bashrc 

Add the following code to the last line


export QTDIR=/usr/local/Qt-4.9.9 
export PATH=$QTDIR/bin:$PATH 
export MANPATH=$QTDIR/man:$MANPATH 
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

Save, exit and restart the computer
Open terminal input

qmake -v

The version number is displayed successfully. The installation is complete
 Insert picture description here
Thank you, bloggers
Refer to the post :
[1]: https://blog.csdn.net/qq_41960196/article/details/110789150?ops_request_misc=%25257B%252522request%25255Fid%252522%25253A%252522160851736816780276349556%252522%25252C%252522scm%252522%25253A%25252220140713.130102334.pc%25255Fall.%252522%25257D&request_id=160851736816780276349556&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_v2~rank_v29-2-110789150.pc_search_result_cache&utm_term=unbuntu%E4%B8%8B%E5%AE%89%E8%A3%85qt
[2]:https://blog.csdn.net/qq_38906523/article/details/76503551?ops_request_misc=%25257B%252522request%25255Fid%252522%25253A%252522160855078116780274056882%252522%25252C%252522scm%252522%25253A%25252220140713.130102334.pc%25255Fall.%252522%25257D&request_id=160855078116780274056882&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_v2~rank_v29-1-76503551.pc_search_result_cache&utm_term=qt5.99%E5%AE%89%E8%A3%85%E7%BB%84%E4%BB%B6%E9%80%89%E6%8B%A9




版权声明
本文为[osc_ sw1y4qdg]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201224111841735u.html

Scroll to Top