飞腾D2000+银河麒麟 编译qt5.13.2(GT3522E已验证)

1、源码下载(qt-everywhere-src-5.13.2.tar.xz)

2、安装编译器

sudo apt-get install build-essential

3、安装依赖

sudo apt-get install libxkbcommon* libxcb* libthread*

sudo apt-get install bison gperf flex libclang*

4. j解压,configure,注意不能有中文路径

./configure --prefix=/opt/qt513 -opensource -release -nomake examples -nomake tests -xcb -confirm-license -no-opengl

5.make -j8

飞腾D2000+银河麒麟 编译qt5.13.2(GT3522E已验证)_第1张图片

编译完成 

6. sudo make install

7. 配置QT运行环境变量

#qt-5-13-2
export QTDIR=/opt/qt513
export PATH=$QTDIR/bin:$PATH
export MANPATH=$QTDIR/man:$MANPATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins/platforms
 

你可能感兴趣的:(arm,linux)