webkit.js
webkit.js copied to clipboard
Error: Linking module flags 'wchar_size': IDs have conflicting values
Hello, this is very interesting project.
I'm able to get to build the libraries, but I don't seem to be able to link them together:
SOLINK_JS obj/webkit.js, POSTBUILDS Error: Linking module flags 'wchar_size': IDs have conflicting values
Does anybody know how to overcome this error, please?
try to use icu instead of wchar
more info: https://github.com/emscripten-core/emscripten/issues/6427
icu ported to emscripten, see https://emscripten.org/docs/compiling/Building-Projects.html#emscripten-ports and https://github.com/emscripten-ports and
modify features.gypi:
'WTF_USE_ICU_UNICODE=1',
'WTF_USE_WCHAR_UNICODE=0',
modify/ webkit.js/deps/WebKit/Source/WTF/wtf/unicode/Unicode.h
#if USE(ICU_UNICODE)
#if TARGET_EMSCRIPTEN
// commented >>>
//#error "Target is emscripten but attempting to include ICU related code."
#endif
// ...
add to emscripten_linktojs: -s USE_ICU=1
and remove L before strings:
m_private->corePage->setGroupName("webkit.js");
//m_private->corePage->setGroupName(L"webkit.js");
Thank you, this helped to link the project.