-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Default settings with the following log
em++ -s WASM=1 -s FULL_ES2=1 -s USE_WEBGL2=1 -s NO_EXIT_RUNTIME=0 -s ERROR_ON_UNDEFINED_SYMBOLS=1 --bind -O3 -s ALLOW_MEMORY_GROWTH=1 -o .\multicanvas.js hellowindow.obj main.obj rasterwindow.obj multicanvas.js_plugin_import.obj Drive:/Qt/5.14.0/wasm_32/plugins/platforms/libqwasm.a Drive:/Qt/5.14.0/wasm_32/lib/libQt5EventDispatcherSupport.a Drive:/Qt/5.14.0/wasm_32/lib/libQt5FontDatabaseSupport.a Drive:/Qt/5.14.0/wasm_32/lib/libqtfreetype.a Drive:/Qt/5.14.0/wasm_32/lib/libQt5EglSupport.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqgif.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqicns.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqico.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqjpeg.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqtga.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqtiff.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqwbmp.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqwebp.a Drive:/Qt/5.14.0/wasm_32/lib/libQt5Gui.a Drive:/Qt/5.14.0/wasm_32/lib/libqtlibpng.a Drive:/Qt/5.14.0/wasm_32/lib/libqtharfbuzz.a Drive:/Qt/5.14.0/wasm_32/lib/libQt5Core.a Drive:/Qt/5.14.0/wasm_32/lib/libqtpcre2.a copy /y AnotherDrive:/qt-webassembly-examples/gui_multicanvas/multicanvas.html AnotherDrive:/qt-webassembly-examples/build-gui_multicanvas-Qt_5_14_0_WebAssembly-Release The syntax of the command is incorrect. Makefile:75: recipe for target '.\multicanvas.js' failed mingw32-make: *** [.\multicanvas.js] Error 1 15:30:36: The process "Drive:\MinGW\bin\mingw32-make.exe" exited with code 2. Error while building/deploying project gui_multicanvas (kit: Qt 5.14.0 WebAssembly)
Enabled the QWidget settings
em++ -s WASM=1 -s FULL_ES2=1 -s USE_WEBGL2=1 -s NO_EXIT_RUNTIME=0 -s ERROR_ON_UNDEFINED_SYMBOLS=1 --bind -O3 -s ALLOW_MEMORY_GROWTH=1 -o .\multicanvas.js hellowindow.obj main.obj rasterwindow.obj multicanvas.js_plugin_import.obj Drive:/Qt/5.14.0/wasm_32/plugins/platforms/libqwasm.a Drive:/Qt/5.14.0/wasm_32/lib/libQt5EventDispatcherSupport.a Drive:/Qt/5.14.0/wasm_32/lib/libQt5FontDatabaseSupport.a Drive:/Qt/5.14.0/wasm_32/lib/libqtfreetype.a Drive:/Qt/5.14.0/wasm_32/lib/libQt5EglSupport.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqgif.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqicns.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqico.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqjpeg.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqtga.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqtiff.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqwbmp.a Drive:/Qt/5.14.0/wasm_32/plugins/imageformats/libqwebp.a Drive:/Qt/5.14.0/wasm_32/lib/libQt5Widgets.a Drive:/Qt/5.14.0/wasm_32/lib/libQt5Gui.a Drive:/Qt/5.14.0/wasm_32/lib/libqtlibpng.a Drive:/Qt/5.14.0/wasm_32/lib/libqtharfbuzz.a Drive:/Qt/5.14.0/wasm_32/lib/libQt5Core.a Drive:/Qt/5.14.0/wasm_32/lib/libqtpcre2.a copy /y AnotherDrive:/qt-webassembly-examples/gui_multicanvas/multicanvas.html AnotherDrive:/qt-webassembly-examples/build-gui_multicanvas-Qt_5_14_0_WebAssembly-Release The syntax of the command is incorrect. Makefile:75: recipe for target '.\multicanvas.js' failed mingw32-make: *** [.\multicanvas.js] Error 1 15:27:01: The process "Drive:\MinGW\bin\mingw32-make.exe" exited with code 2. Error while building/deploying project gui_multicanvas (kit: Qt 5.14.0 WebAssembly)
Individual file errors
AnotherDrive:\qt-webassembly-examples\gui_multicanvas\main.cpp:11: error: cannot initialize return object of type 'QWindow *' with an rvalue of type 'HelloWindow *'
AnotherDrive:\qt-webassembly-examples\gui_multicanvas\hellowindow.cpp:58: error: no matching member function for call to 'setGeometry'
...