File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ create_build_dir() {
1515install_base () {
1616 sudo apt-get update
1717 sudo apt-get install -y cmake ninja-build desktop-file-utils \
18- clang \
18+ clang libclang-dev \
1919 build-essential perl python3 python3-pip \
2020 libfontconfig1-dev libfreetype6-dev \
2121 libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev \
@@ -53,6 +53,11 @@ build_static_qt() {
5353
5454 cd " $qt_build_dir " || exit 1
5555
56+ echo " Downloading Qt prebuilt libclang..."
57+ wget -O libclang.7z " https://download.qt.io/development_releases/prebuilt/libclang/qt/libclang-release_18.1.7-based-linux-Ubuntu22.04-gcc11.2-x86_64.7z"
58+ mkdir -p libclang
59+ 7z x libclang.7z -olibclang
60+
5661 cmake " ../qt-src/qt-everywhere-src-$qt_version " \
5762 -G " Ninja" \
5863 -DCMAKE_BUILD_TYPE=Release \
@@ -87,6 +92,7 @@ build_static_qt() {
8792 -DQT_SKIP_MODULES=qtwebengine \
8893 -DQT_FEATURE_clang=ON \
8994 -DQT_FEATURE_clangcpp=ON \
95+ -DCMAKE_PREFIX_PATH=" $PWD /libclang"
9096
9197 ninja -j " $nproc "
9298 sudo ninja install
You can’t perform that action at this time.
0 commit comments