-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Paul Smedley edited this page Jan 31, 2025
·
6 revisions
Welcome to the qt6-base-os2 wiki!
Building qtbase
- Install the prerequisites from Steps 1 & 2 of Steps 1 & 2 of https://github.com/bitwiseworks/qt5-os2/wiki/Developers#building-qt
- Install cmake - minimum version is 3.25.2 - which is currently in netlabs-exp
- If using the netlabs-exp cmake, edit %unixroot%\usr\share\cmake\Modules\Platform\os2.cmake and add '-lcx' to the end of each instance of CMAKE_xxx_LINKER_FLAGS_INIT, where xxx ie EXE MODULE & SHARED
- alternative cmake build - https://smedley.id.au/tmp/cmake-3.31.4-os2-20250127.zip
- (recommended) install ninja from https://smedley.id.au/tmp/ninja-1.12.1-os2-20240907.zip
I use a conf.cmd with the following:
dash ../configure -prefix /qt6-6.2.x -no-opengl -release -system-sqlite -openssl-linked -no-pch -- -DQT_BUILD_EXAMPLES=ON -DQT_BUILD_TESTS=OFF 2>&1 | tee configure.log
disabling QT_BUILD_EXAMPLES significantly speeds things up
and build with:
set beginlibpath=u:\dev\qt6-base-os2\build\lib
this is important as some components (eg rcc.exe) depend on the just built qt DLLs, and unless beginlibpath is set correctly, it can't find them.
cmake --build . >stdout 2>stderr