webkit.js icon indicating copy to clipboard operation
webkit.js copied to clipboard

Error: Linking module flags 'wchar_size': IDs have conflicting values

Open domic6300 opened this issue 6 years ago • 2 comments

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?

domic6300 avatar Jan 29 '19 11:01 domic6300

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");

derofim avatar Mar 09 '19 19:03 derofim

Thank you, this helped to link the project.

domic6300 avatar Mar 15 '19 17:03 domic6300