[Interest] WASM build Error: Bad relocation type

Jason H jhihn at gmx.com
Mon May 24 15:40:08 CEST 2021


> > I'm not sure what to do no >
> > I made sure I activated the right version (per https://wiki.qt.io/Qt_for_WebAssembly) (1.39.8)
>
>
> I just tested an empty qml swipe app on my mac, and is working for me.
>
> When you activated this, did you include the --embedded argument to emsdk?
> If so, this is incompatible with QtCreator.

Yea, because that was the instruction:
`./emsdk activate --embedded sdk-fastcomp-1.38.27-64bit or (was) sdk-1.38.16-64bit`

However, I parsed that statement as:
`./emsdk activate --embedded [sdk-fastcomp-1.38.27-64bit | sdk-1.38.16-64bit ]`

So what I executed was:
`./emsdk activate --embedded sdk-fastcomp-1.38.27-64bit`

I have retried with:
`./emsdk activate sdk-fastcomp-1.38.27-64bit`

And got a new errors, however these are regarding QtMultimedia classes, so this is expected. I #ifndef'ed around them, and got the same relocation error.  The files in the build dir are:
ASCII text
HTML document text, ASCII text
JSON data
Qt C-code resource file, ASCII text
SVG Scalable Vector Graphics image
WebAssembly (wasm) binary module version 0x1 (MVP)
c program text, ASCII text
makefile script text, ASCII text, with very long lines

I'll keep looking into this.




More information about the Interest mailing list