How to build Qt Static? (Команды и пример)
*STEP 1: configuring* Required time: ~2 minutes *STEP 2: build and install* Choose one available build tool. Required space: ~ 60-70 Gb Required time: ~ 7-9 hours with 1 used processor core ~ 1,5 hours with 6 used processor cores *Already-made static builds* make sure that you have cmake.exe in Environment Path https://drive.google.com/drive/folders/1CucJaGtCQkGyPGzC5J0Jh2kljcdDG3KD?usp=sharing' 6.8.2_Static_cmake --- mingw 6.8.2_Static_msvc --- msvc ============================================================ *configure mingw static* cmake --version g++ --version -------------------------------- *build with cmake & ninja* ./configure -release -static -opensource -confirm-license -platform win32-g++ -cmake-generator "Ninja" -prefix /PATH/BUILD-STATIC ninja --version cmake --build . --parallel cmake --install . -------------------------------- *build with mingw* ./configure -release -static -opensource -confirm-license -platform win32-g++ -cmake-generator "MinGW Makefiles" -prefix /PATH/BUILD-STATIC mingw32-make -j"number of processor cores" for example "mingw32-make -j8". Make sure you have that amount. mingw32-make install -------------------------------- *build with make* ./configure -release -static -opensource -confirm-license -platform win32-g++ -cmake-generator "Unix Makefiles" -prefix /PATH/BUILD-STATIC make --version make -j"number of processor cores" for example "make -j8". Make sure you have that amount. make install ============================================================ *configure MSVC static* cmake --version cl -------------------------------- *build with cmake & ninja* ninja --version ./configure -release -static -opensource -confirm-license -platform win32-msvc -cmake-generator "Ninja" -prefix /PATH/BUILD-STATIC cmake --build . --parallel cmake --install . -------------------------------- *build with mingw* g++ --version ./configure -release -static -opensource -confirm-license -platform win32-msvc -cmake-generator "MinGW Makefiles" -prefix /PATH/BUILD-STATIC mingw32-make -j"number of processor cores" for example "mingw32-make -j8". Make sure you have that amount. mingw32-make install -------------------------------- *build with make* make --version ./configure -release -static -opensource -confirm-license -platform win32-msvc -cmake-generator "Unix Makefiles" -prefix /PATH/BUILD-STATIC make -j"number of processor cores" for example "make -j8". Make sure you have that amount. make install ============================================================ Time codes: Download Qt Source: (0:00) Configure Qt Static: (0:56) Build Qt Static: (2:57) Install Qt Static: (3:43) Setup of the Qt Static Kit: (5:15) Test: (5:56)
Название:
How to build Qt Static? (Команды и пример)
Категория:
Разное