qt5 源碼編譯

源碼 qt-everywhere-src-5.11.3python

依賴緩存

apt-get install bison build-essential gperf flex ruby python libasound2-dev libbz2-dev libcap-dev \
libcups2-dev libdrm-dev libegl1-mesa-dev libgcrypt11-dev libnss3-dev libpci-dev libpulse-dev libudev-dev \
libxtst-dev gyp ninja-build libglu1-mesa-dev libfontconfig1-dev libx11-xcb-dev libicu-devruby


不安裝這些依賴庫接下來運行configure的時候可能會報以下錯誤flex

WARNING: gperf is required to build QtWebEngine.ui

WARNING: bison is required to build QtWebEngine.orm

WARNING: flex is required to build QtWebEngine.ci

WARNING: host pkg-config not foundget

ERROR: The OpenGL functionality tests failed!
You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.源碼

 


若是發生相似這樣的錯 安裝完相關依賴庫以後 記得運行 rm config.cache來刪除緩存的配置qt

./configure -prefix $PWD/qtbase -opensource -nomake examples -nomake testsmake -j 4make install

相關文章
相關標籤/搜索