Why can't new webassembly projects find qt variable types?
Solved
Qt for WebAssembly
-
For one, you need to use the correct emscripten version for Qt version, as detailed in:
https://doc.qt.io/qt-5/wasm.html#install-emscripten
or
https://doc.qt.io/qt-6/wasm.html#installing-emscripten -
@mirro
The errors about types stem from (a) not being able to find requested bluetooth module and (b) somehow as a result of that it has not read the definitions forQObject
,QString
etc. So I would sort that out first. How did you include bluetooth module in your project, and is it available under WebAssembly? -
For one, you need to use the correct emscripten version for Qt version, as detailed in:
https://doc.qt.io/qt-5/wasm.html#install-emscripten
or
https://doc.qt.io/qt-6/wasm.html#installing-emscripten -