OS/2, eCS & ArcaOS - Technical > Programming
Qt6 Development
Paul Smedley:
Hi Jochen,
Ninja isn't mandatory for Qt6 base. I use it, but cmake requires some fixes for it to be able to build DLLs.
I'd suggest configuring the unix makefiles... add:
--- Code: ----G "Unix Makefiles"
--- End code ---
to your cmake line.
Meanwhile:
My build of cmake: https://smedley.id.au/tmp/cmake-3.20.6-os2-20230204.zip
My build of ninja: https://smedley.id.au/tmp/ninja.exe
Cheers,
Paul.
TeLLie:
Hi Paul,
I have build the Qt6.3.2
But now i see that i have build dll like:
D:\QT632-src\qt6-base-os2\build\lib>Dir *.dll
Qt6Conc6.dll Qt6DBus6.dll Qt6Netw6.dll Qt6Sql6.dll Qt6Widg6.dll
Qt6Core6.dll Qt6Gui6.dll Qt6Prin6.dll Qt6Test6.dll Qt6Xml6.dll
But you're own build has this:
Qt6Conct.dll Qt6Netwk.dll Qt6QuiCo.dll Qt6UiTos.dll
Qt6Core.dll Qt6Posig.dll Qt6QuiD2.dll Qt6WebCl.dll
Any idea why and how i get same file names as you have?
D:\QT632-src\qt6-base-os2>git checkout
Your branch is up to date with 'origin/6.3.x'.
Paul Smedley:
Hi Tellie,
This is due to bww cmake vs my cmake. I made changes to increase the probability of getting unique DLL names.
Thanks for confirming the build completes.
Cheers,
Paul.
TeLLie:
Hi Paul,
When i use you're cmake build i get:
-- Configuring done
CMake Error at D:/qt632-src/qt6-base-os2/cmake/QtProcessConfigureArgs.cmake:963
(message):
CMake exited with code Segmentation fault.
Any idea?
A update,
After a reboot I tried again, now it seems to compile further, now on 25%
Next error i see when building tools...
[D:\qt632-src\qt6-tools-os2\build]cmake --build . 2>&1 |tee make.out
[ 0%] Built target Tools_timestamp
[ 0%] Built target Linguist_lib_pri
[ 0%] Built target Linguist_timestamp
[ 0%] Automatic MOC for target lconvert
[ 0%] Built target lconvert_autogen
Consolidate compiler generated dependencies of target lconvert
[ 2%] Built target lconvert
[ 2%] Automatic MOC for target lprodump
[ 2%] Built target lprodump_autogen
[ 2%] Running rcc for resource proparser
make.exe[2]: *** [src/linguist/lprodump/CMakeFiles/lprodump.dir/build.make:76: src/linguist/lprodump/.rcc/qrc_proparser.cpp] Bus error
make.exe[1]: *** [CMakeFiles/Makefile2:1617: src/linguist/lprodump/CMakeFiles/lprodump.dir/all] Error 2
make.exe: *** [Makefile:146: all] Error 2
Paul Smedley:
--- Quote from: TeLLie on July 16, 2023, 02:29:58 pm ---Next error i see when building tools...
--- End quote ---
Check popuplog.os2 - my guess is it's finding an incompatible DLL with the same name as one that's being build.
I add my equivalent to D:\qt632-src\qt6-tools-os2\build\lib to the beginlibpath to ensure it's finding the built DLL's not the system ones.
Cheers,
Paul.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version