Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

Procedure

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

  7. Perform the compilation and installation.
    gmake –j64
    gmake install
  8. 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.