--- Qt 6.8.3 ---
https://download.qt.io/official_releases/qt/

https://download.qt.io/official_releases/qt/6.8/6.8.3/submodules/qtbase-everywhere-src-6.8.3.zip (Windows)
https://download.qt.io/official_releases/qt/6.8/6.8.3/submodules/qtbase-everywhere-src-6.8.3.tar.xz (Linux)

https://doc.qt.io/qt-6/deployment.html
https://doc.qt.io/qt-6/qt-conf.html


--- MinGW 19.0 on Windows 10 ---
https://nuwen.net/mingw.html
https://cmake.org/
https://github.com/ninja-build/ninja

--- Compile and install Qt with only CMake ---
cmake -G "MinGW Makefiles" -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=C:/Qt6 -D BUILD_SHARED_LIBS=OFF .
make
make DESTDIR=C:/Qt6 install

--- Compile and install Qt with CMake+Ninja ---
cmake -G "Ninja" -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=C:/Qt6 -D BUILD_SHARED_LIBS=OFF .
cmake --build . --parallel
cmake --install .

--- Required libraries in dynamic build ---
Qt6Core.dll
Qt6Gui.dll
Qt6Widgets.dll
platforms/qwindows.dll
styles/qmodernwindowsstyle.dll

--- HiDPI if needed ---
https://doc.qt.io/qt-6/highdpi.html
[Platforms]
WindowsArguments = dpiawareness=2


--- GCC 12.2 on Debian 12 ---
https://doc.qt.io/qt-6/linux-building.html
https://doc.qt.io/qt-6/linux-requirements.html
https://doc.qt.io/qt-6/linux-deployment.html

apt install \
	libfontconfig1-dev \
	libfreetype-dev \
	libx11-dev \
	libx11-xcb-dev \
	libxcb-cursor-dev \
	libxcb-glx0-dev \
	libxcb-icccm4-dev \
	libxcb-image0-dev \
	libxcb-keysyms1-dev \
	libxcb-randr0-dev \
	libxcb-render-util0-dev \
	libxcb-shape0-dev \
	libxcb-shm0-dev \
	libxcb-sync-dev \
	libxcb-util-dev \
	libxcb-xfixes0-dev \
	libxcb-xkb-dev \
	libxcb1-dev \
	libxext-dev \
	libxfixes-dev \
	libxi-dev \
	libxkbcommon-dev \
	libxkbcommon-x11-dev \
	libxrender-dev \
	libgl1-mesa-dev libglu1-mesa-dev libegl-dev libopengl-dev libgles-dev libgles2-mesa-dev \
	cmake ninja-build

https://askubuntu.com/questions/1175877/struggling-to-build-qt-due-to-missing-opengl-libraries
libgles2-mesa-dev is required

--- Compile and install Qt ---
cmake -G "Ninja" -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/home/nikolay/qt6 -D BUILD_SHARED_LIBS=OFF .
cmake --build . --parallel
cmake --install .

--- Required libraries in dynamic build ---
libQt6Core.so.6
libQt6DBus.so.6
libQt6Gui.so.6
libQt6Widgets.so.6
libQt6XcbQpa.so.6
platforms/libqxcb.so

--- Start in dynamic build ---
QT_DEBUG_PLUGINS=1 LD_LIBRARY_PATH=. ./hepacomp 

--- Start in static build ---
Everything is compiled in, simply start ./hepacomp

--- HiDPI if needed ---
https://doc.qt.io/qt-6/highdpi.html
QT_SCALE_FACTOR=2.25 ./hepacomp


--- MSVC on Windows 10 ---
Microsoft Visual Studio 2022 Community
Requires C/C++, Windows SDK, CMake

Extract the Qt sources and open CMakeLists.txt
Select Manage Configurations from the dropdown
Add a new configuration = x64-Release
Configuration type = Release
CMake command arguments = -D BUILD_SHARED_LIBS=OFF
Select Build -> Install QtBase

Open terminal with cmd:
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
C:\Users\Nikolay\Documents\VS2022\qtbase-everywhere-src-6.8.3\out\install\x64-Release\bin\qmake.exe hepacomp.pro
nmake


--- MSVC command line ---
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
cmake -G "Ninja" -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=C:/Qt6vc -D BUILD_SHARED_LIBS=OFF .
cmake --build . --parallel
cmake --install .

Open terminal with cmd:
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
C:\Qt6vc\bin\qmake.exe hepacomp.pro
nmake


--- MinGW binaries ---
https://nuwen.net/mingw.html
https://winlibs.com/
https://github.com/nixman/mingw-builds-binaries
https://jmeubank.github.io/tdm-gcc/download/
https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/

