-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange ZLIB errors - WebCore does not compile anymore #34
Comments
OK, so the actual problem was tha CMAKE for some reason included ZLIB from QT: 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. 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 <zlib.h> is taken.. probably my pre-compiled QT 6.5.3 is configured wit -qt-zlib |
Yeah, but it freezes... 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:
|
Strange thing happened, when i first built webkit with MINGW untill the very end, there were no such errors, i swear 😆
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 hellzlib 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"?
The text was updated successfully, but these errors were encountered: