Discussion:
[Interest] Compiling Qt for Webassembly
Vadim Peretokin
2018-10-06 05:08:58 UTC
Permalink
I'm trying to compile Qt 5.12.0 for webassembly, but it has compile errors:
https://hastebin.com/vovisayapi.bash

This is on Ubuntu 18.04, emcc 1.38.12 (commit
0d8576c0e8f5ee09a36120b9d44184b5da2f2e7a), gcc 7.3.0. Any ideas what's
going wrong?

(I wouldn't mind trying the latest Qt sources, except that "Getting the code
<https://wiki.qt.io/Qt_for_WebAssembly#Getting_the_code>" instructions are
ambigious: what am I supposed to with 3 different directories?)

Thanks!
Lorn Potter
2018-10-06 08:02:41 UTC
Permalink
Hello Vadim,
Post by Vadim Peretokin
I'm trying to compile Qt 5.12.0 for webassembly, but it has compile
errors: https://hastebin.com/vovisayapi.bash
This is on Ubuntu 18.04, emcc 1.38.12 (commit
0d8576c0e8f5ee09a36120b9d44184b5da2f2e7a), gcc 7.3.0. Any ideas what's
going wrong?
For the 5.12-beta1 package, you need this patch:
https://codereview.qt-project.org/#/c/241987/ to get through the wasm
build for qtnetworkauth

(also attached)
Post by Vadim Peretokin
(I wouldn't mind trying the latest Qt sources, except that "Getting the
code <https://wiki.qt.io/Qt_for_WebAssembly#Getting_the_code>"
instructions are ambigious: what am I supposed to with 3 different
directories?)
For just Qt, you only need qtbase, really. If you want to develop with
QtQuick/Qml, you will need qtdeclarative as well.

git clone -b 5.12 https://code.qt.io/qt/qtbase.git

There are only a few modules we have tested for wasm - qmqtt, qtwebsockets.

There is a pending patch for qtsensors support (basically just accel,
but others for firefox)
https://codereview.qt-project.org/#/c/217457/

-
Lorn
Vadim Peretokin
2018-10-06 10:42:11 UTC
Permalink
Thanks, that worked!

It says uitools, multimedia, and concurrent isn't available. The latter two
I understand, but is uitools supposed not to be available?
Post by Lorn Potter
Hello Vadim,
Post by Vadim Peretokin
I'm trying to compile Qt 5.12.0 for webassembly, but it has compile
errors: https://hastebin.com/vovisayapi.bash
This is on Ubuntu 18.04, emcc 1.38.12 (commit
0d8576c0e8f5ee09a36120b9d44184b5da2f2e7a), gcc 7.3.0. Any ideas what's
going wrong?
https://codereview.qt-project.org/#/c/241987/ to get through the wasm
build for qtnetworkauth
(also attached)
Post by Vadim Peretokin
(I wouldn't mind trying the latest Qt sources, except that "Getting the
code <https://wiki.qt.io/Qt_for_WebAssembly#Getting_the_code>"
instructions are ambigious: what am I supposed to with 3 different
directories?)
For just Qt, you only need qtbase, really. If you want to develop with
QtQuick/Qml, you will need qtdeclarative as well.
git clone -b 5.12 https://code.qt.io/qt/qtbase.git
There are only a few modules we have tested for wasm - qmqtt, qtwebsockets.
There is a pending patch for qtsensors support (basically just accel,
but others for firefox)
https://codereview.qt-project.org/#/c/217457/
-
Lorn
_______________________________________________
Interest mailing list
http://lists.qt-project.org/mailman/listinfo/interest
Vadim Peretokin
2018-10-10 14:11:36 UTC
Permalink
Would anyone know why uitools isn't available?
Post by Vadim Peretokin
Thanks, that worked!
It says uitools, multimedia, and concurrent isn't available. The latter
two I understand, but is uitools supposed not to be available?
Post by Lorn Potter
Hello Vadim,
Post by Vadim Peretokin
I'm trying to compile Qt 5.12.0 for webassembly, but it has compile
errors: https://hastebin.com/vovisayapi.bash
This is on Ubuntu 18.04, emcc 1.38.12 (commit
0d8576c0e8f5ee09a36120b9d44184b5da2f2e7a), gcc 7.3.0. Any ideas what's
going wrong?
https://codereview.qt-project.org/#/c/241987/ to get through the wasm
build for qtnetworkauth
(also attached)
Post by Vadim Peretokin
(I wouldn't mind trying the latest Qt sources, except that "Getting the
code <https://wiki.qt.io/Qt_for_WebAssembly#Getting_the_code>"
instructions are ambigious: what am I supposed to with 3 different
directories?)
For just Qt, you only need qtbase, really. If you want to develop with
QtQuick/Qml, you will need qtdeclarative as well.
git clone -b 5.12 https://code.qt.io/qt/qtbase.git
There are only a few modules we have tested for wasm - qmqtt,
qtwebsockets.
There is a pending patch for qtsensors support (basically just accel,
but others for firefox)
https://codereview.qt-project.org/#/c/217457/
-
Lorn
_______________________________________________
Interest mailing list
http://lists.qt-project.org/mailman/listinfo/interest
Lorn Potter
2018-10-22 09:33:55 UTC
Permalink
Post by Vadim Peretokin
Would anyone know why uitools isn't available?
I just tested uitools with 5.12, and the textfinder example seems to be
working.

So there is probably no reason it shouldn't be available for 5.12 on wasm.
Loading...