Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the Qt installation directory.
cd /path/to/QT
- Decompress the Qt installation package.
tar -Jxvf qt-everywhere-src-5.13.0.tar.xz
- Go to the directory generated after the decompression.
cd qt-everywhere-src-5.13.0
- Perform the configuration.
./configure -qt-xcb
- Select an installation type.
- Enter o, which indicates an open source version
- Enter yes, which indicates that you accept the GPL license

- Perform the compilation and installation.
gmake –j64 gmake install
- Configure the environment variables.
export QTDIR=/usr/local/Qt-5.13.0 export PATH=$QTDIR/bin:$PATH export MANPATH=$QTDIR/man:$MANPATH export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
/usr/local is the default installation directory.
Parent topic: Qt 5.13.0 Porting Guide (openEuler 20.03)