Skip to content

Shamim1977/Qt6-Compile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Build Qt6

Build Qt6 from Source

Original Documentation


1. Install NodeJS 18.16.1 with Chocolatey

https://nodejs.org/en/download


2. Install Git

https://git-scm.com/downloads


3. Install Visual Studio 2022 with C/C++ capabilities

https://visualstudio.microsoft.com/downloads/


4. Install Python 3.1

https://www.python.org/downloads/


pip install html5lib 

Check if pip's 'site-packages' is set to environment variables like this-
C:\Python311\Lib\site-packages 

5. Install C++ compiler supporting C++ 17

https://github.com/llvm/llvm-project/releases/tag/llvmorg-16.0.0


6. Install CMake

https://cmake.org/download/


7. Other dependencies

choco install mingw --version=11.2.0 
choco install ninja 
choco install strawberryperl 
choco install winflexbison 
choco install openssl 

Test GCC, CLang and Perl:
g++ --version 
gcc --version 
ninja --version 
clang++ --version 
perl --version 
Microsoft Visual C++ (MSVC):
check if listed in appwiz.cpl 

8. Install GNU GPerf

https://gnuwin32.sourceforge.net/downlinks/gperf.php

Add "GnuWin32\bin" path to system environment variables.


9. Build QT

Windows:
(Customize paths accordingly.)

git clone git://code.qt.io/qt/qt5.git qt6 
cd qt6 
perl init-repository 
mkdir qt6-build 
cd qt6-build 
"..\configure.bat" -prefix "D:\Qt-Dev\qt6\qt6-release" 
cmake --build . 
cmake --install . 

Linux:

mkdir qt6-build 
cd qt6-build 
../configure -prefix /path/to/install 
cmake --build . --parallel 4 
cmake --install . 

10. Test:

ctest -V -R qlocale 

Special Note

Windows-Specific: Visual Studio 2022, Visual Studio 2019, MinGW 11.2

Linux-Specific: OpenGL developing library (libgl-dev, libegl-dev), libfontconfig1-dev (for fonts to be rendered correctly), libinput-dev (for the XCB platform plugin), and the XCB libraries mentioned in https://doc.qt.io/qt-6/linux-requirements.html



Developer

Shamim Hossain
sparrowmtm@gmail.com
https://sparrowtech.org
+880 1758900389
Upwork Profile

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors