Closed kalwalt closed 2 years ago
this can be solved making these changes, example this code:
void webarkitLOGi(char* message) {
EM_ASM ({
var message = UTF8ToString($0);
var infoHead = UTF8ToString($1);
var style = UTF8ToString($2);
console.log(infoHead + message, style);
},
message,
WARKTinfo,
WARKTinfoStyle
);
}
became:
void webarkitLOGi(const std::string &message) {
EM_ASM ({
var message = UTF8ToString($0);
var infoHead = UTF8ToString($1);
var style = UTF8ToString($2);
console.log(infoHead + message, style);
},
message.c_str(),
WARKTinfo,
WARKTinfoStyle
);
}
This should be done in all the methods.
This is fixed in branch https://github.com/webarkit/WebARKitLib/tree/fix-webarkitLog
While building libs with emscripten i get warning like this one:
Of course this is a WebARKitLib issue, writing here for future reference and as reminder.