Open quarcko opened 6 months ago
OK, so the actual problem was tha CMAKE for some reason included ZLIB from QT: C:/Qt/Qt6.5.3/6.5.3/mingw_64/include/QtZlib/zlib.h
temporarily i just rename 'QtZlib' directory and compilation goes happily further. But thats not solution
HELP: How to tell CMAKE not to search for QtZlib?
I had something loosely similar with my issue with macro WTF_MAKE_FAST_ALLOCATED which needed me to add include for wtf/FastMalloc.h I have no clue how this worked in normal WebKit without the include.
Anyway, doesn't qt config has a option for zlib handling? like -qt-zlib or -system-zlib
And in cmake, can't you just redefine the variables like ZLIB_INCLUDE_DIR / ZLIB_LIBRARY_RELEASE? Search the CMakeCache.txt for actual names.
Yes, i have these variables set, that's why compilation goes OK if i rename QtZlib dir. The problem is that cmake from somewhere added one more variable:
Qt6ZlibPrivate_DIR C:/Qt/Qt6.5.3/6.5.3/mingw_64/lib/cmake/Qt6ZlibPrivate
and it gets priority as i understant from where #include
probably my pre-compiled QT 6.5.3 is configured wit -qt-zlib but is it possible to override this just for WebKit compilation?
Yeah, but it freezes... If i disable JavaScript - then it loads this landing page OK, but freezes on search tried other websites - some of them load without fonts, some of them also crash. JavaScript mouse tester actually loaded and worked all right..
so all in all, don't know what to do next, does not feel very usable atm.
Hmm, it seems that it has something to do with this message right before the freeze:
warning: LauncherApplication::exec: Must be called from the main thread
Strange thing happened, when i first built webkit with MINGW untill the very end, there were no such errors, i swear :laughing: but while fixing JS assembly, and finally got back here to recompile WebCore, this happened:
AND
It looks like zlib.h has some
#defines
that overrideinflate
andcompress
keywords, but why the hell zlib is included here? How this "derived-sources" mechanism work?lets say this file, where the macro expands and messes up: C:/Qt/webkit/Source/WebCore/layout/formattingContexts/inline/InlineRect.h
has no references to anything in: C:\Qt\webkit\build-win\WebCore\DerivedSources\unified-sources\UnifiedSource-3a52ce78-88.cpp
and this unified-sources has no mention of "InlineRect.h"?
so how "InlineRect.h" is able to find "zlib.h"?