本文主要是介绍firefly 编译安装Qt-5.15.7,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
一、准备工作
1、下载qt源码包
下载网址:https://download.qt.io/archive/qt/
sudo xz -d qt-everywhere-src-5.15.2.tar.xz
2、安装所依赖的库
①安装基础编译环境
sudo apt-get install libxcb-xinerama0-dev
sudo apt-get install build-essential perl python git
②安装编译Libxcb的相关依赖
sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
②安装编译Qt WebKit的相关依赖
sudo apt-get install flex bison gperf libicu-dev libxslt-dev ruby
③安装编译Qt WebEngine的相关依赖
sudo apt-get install libssl-dev libxcursor-dev libxcomposite-dev libxdamage-dev libxrandr-dev libdbus-1-dev libfontconfig1-dev libcap-dev libxtst-dev libpulse-dev libudev-dev libpci-dev libnss3-dev libasound2-dev libxss-dev libegl1-mesa-dev gperf bison
④安装编译Qt Multimedia的相关依赖
sudo apt-get install libasound2-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
二、编译安装
1、输入配置指令和参数
./configure -prefix /usr/local/Qt-5.15.2 -release -opensource -nomake examples -nomake tests -platform linux-g++ -recheck-all
make
sudo make install
这篇关于firefly 编译安装Qt-5.15.7的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!