Skip to content

Commit 6cd5cce

Browse files
Try build Qt without configure
1 parent 12c1568 commit 6cd5cce

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

scripts/ci_linux.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@ build_qt_static() {
2121
mkdir -p "$qt_src_dir"
2222
cd "$qt_src_dir" || exit
2323

24-
git clone https://github.com/qt/qtbase.git .
24+
git clone https://github.com/qt/qt5.git .
2525
git checkout v6.5.2
2626
perl init-repository -f --module-subset=qtbase
2727

2828
cd qtbase || exit
2929

30-
./configure -static -release \
31-
-prefix "$qt_static_dir" \
32-
-platform linux-clang \
33-
-opensource -confirm-license \
34-
-nomake examples -nomake tests \
35-
-developer-build \
36-
-- -Wno-dev CXXFLAGS+="-DFORCE_STATIC_QT"
30+
cmake .. \
31+
-G "Ninja" \
32+
-DCMAKE_INSTALL_PREFIX="$qt_static_dir" \
33+
-DFORCE_STATIC_QT \
34+
-DBUILD_SHARED_LIBS=OFF \
35+
-DINPUT_opengl=yes \
36+
-DINPUT_widgets=yes \
37+
-DCMAKE_BUILD_TYPE=Release
3738

38-
cmake --build . --parallel "$nproc"
39-
cmake --install . --prefix "$qt_static_dir"
39+
cmake --build . --target install
4040

41-
cd .. && cd ..
41+
cd ../..
4242
}
4343

4444
build_zclipboard() {

0 commit comments

Comments
 (0)