Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-91399

Virtual keyboard don't compile for webassmbly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.15.2
    • Virtual Keyboard
    • None
    • LInux Slackware 14.2
    • Linux/X11

    Description

      Try compiling for webassembly any project with virtual keyboard make it fail. Wasm compile correct for any other project.

      emsdk version 1.39.8

      Trying to compile the virtual keyboard example basic.pro

       

      mkdir buildwasm && cd buildwasm
      /opt/Qt/5.15.2/wasm_32/bin/qmake .. CONFIG+=static && make -j8

       

      Error:

      wasm-ld: error: initial memory too small, 18700560 bytes needed
      shared:ERROR: '/opt/repositories/emsdk/upstream/bin/wasm-ld -o /tmp/emscripten_temp_tISPcL/Client.wasm --lto-O0 main.o client.js_plugin_import.o -L/opt/repositories/emsdk/upstream/emscripten/system/local/lib client.js_qml_plugin_import.o -L/opt/repositories/emsdk/upstream/emscripten/system/lib qrc_qml.o -L/opt/repositories/emsdk/upstream/emscripten/cache/wasm-obj /opt/Qt/5.15.2/wasm_32/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.a /opt/Qt/5.15.2/wasm_32/plugins/platforms/libqwasm.a /opt/Qt/5.15.2/wasm_32/lib/libQt5EventDispatcherSupport.a /opt/Qt/5.15.2/wasm_32/lib/libQt5FontDatabaseSupport.a /opt/Qt/5.15.2/wasm_32/lib/libqtfreetype.a /opt/Qt/5.15.2/wasm_32/lib/libQt5EglSupport.a /opt/Qt/5.15.2/wasm_32/plugins/iconengines/libqsvgicon.a /opt/Qt/5.15.2/wasm_32/plugins/imageformats/libqgif.a /opt/Qt/5.15.2/wasm_32/plugins/imageformats/libqicns.a /opt/Qt/5.15.2/wasm_32/plugins/imageformats/libqico.a /opt/Qt/5.15.2/wasm_32/plugins/imageformats/libqjpeg.a /opt/Qt/5.15.2/wasm_32/plugins/imageformats/libqsvg.a /opt/Qt/5.15.2/wasm_32/plugins/imageformats/libqtga.a /opt/Qt/5.15.2/wasm_32/plugins/imageformats/libqtiff.a /opt/Qt/5.15.2/wasm_32/plugins/imageformats/libqwbmp.a /opt/Qt/5.15.2/wasm_32/plugins/imageformats/libqwebp.a /opt/Qt/5.15.2/wasm_32/plugins/virtualkeyboard/libqtvirtualkeyboard_hangul.a /opt/Qt/5.15.2/wasm_32/plugins/virtualkeyboard/libqtvirtualkeyboard_openwnn.a /opt/Qt/5.15.2/wasm_32/lib/libqtopenwnn.a /opt/Qt/5.15.2/wasm_32/plugins/virtualkeyboard/libqtvirtualkeyboard_pinyin.a /opt/Qt/5.15.2/wasm_32/lib/libqtpinyin.a /opt/Qt/5.15.2/wasm_32/plugins/virtualkeyboard/libqtvirtualkeyboard_tcime.a /opt/Qt/5.15.2/wasm_32/lib/libqttcime.a /opt/Qt/5.15.2/wasm_32/plugins/virtualkeyboard/libqtvirtualkeyboard_thai.a /opt/Qt/5.15.2/wasm_32/qml/QtQuick/VirtualKeyboard/libqtquickvirtualkeyboardplugin.a /opt/Qt/5.15.2/wasm_32/qml/QtQml/libqmlplugin.a /opt/Qt/5.15.2/wasm_32/qml/Qt/labs/folderlistmodel/libqmlfolderlistmodelplugin.a /opt/Qt/5.15.2/wasm_32/qml/QtQuick/VirtualKeyboard/Settings/libqtquickvirtualkeyboardsettingsplugin.a /opt/Qt/5.15.2/wasm_32/qml/QtQuick/VirtualKeyboard/Styles/libqtquickvirtualkeyboardstylesplugin.a /opt/Qt/5.15.2/wasm_32/lib/libQt5VirtualKeyboard.a /opt/Qt/5.15.2/wasm_32/lib/libQt5Svg.a /opt/Qt/5.15.2/wasm_32/lib/libQt5Widgets.a /opt/Qt/5.15.2/wasm_32/qml/QtQml/Models.2/libmodelsplugin.a /opt/Qt/5.15.2/wasm_32/qml/QtQuick/Layouts/libqquicklayoutsplugin.a /opt/Qt/5.15.2/wasm_32/qml/QtWebSockets/libdeclarative_qmlwebsockets.a /opt/Qt/5.15.2/wasm_32/lib/libQt5WebSockets.a /opt/Qt/5.15.2/wasm_32/qml/QtQuick.2/libqtquick2plugin.a /opt/Qt/5.15.2/wasm_32/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.a /opt/Qt/5.15.2/wasm_32/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.a /opt/Qt/5.15.2/wasm_32/qml/QtQuick/Controls.2/Universal/libqtquickcontrols2universalstyleplugin.a /opt/Qt/5.15.2/wasm_32/qml/QtQuick/Controls.2/Fusion/libqtquickcontrols2fusionstyleplugin.a /opt/Qt/5.15.2/wasm_32/qml/QtQuick/Controls.2/Material/libqtquickcontrols2materialstyleplugin.a /opt/Qt/5.15.2/wasm_32/qml/QtGraphicalEffects/private/libqtgraphicaleffectsprivate.a /opt/Qt/5.15.2/wasm_32/qml/QtQuick/Window.2/libwindowplugin.a /opt/Qt/5.15.2/wasm_32/qml/QtGraphicalEffects/libqtgraphicaleffectsplugin.a /opt/Qt/5.15.2/wasm_32/qml/QtQuick/Controls.2/Imagine/libqtquickcontrols2imaginestyleplugin.a /opt/Qt/5.15.2/wasm_32/lib/libQt5QuickControls2.a /opt/Qt/5.15.2/wasm_32/lib/libQt5QuickTemplates2.a /opt/Qt/5.15.2/wasm_32/lib/libQt5Quick.a /opt/Qt/5.15.2/wasm_32/lib/libQt5Gui.a /opt/Qt/5.15.2/wasm_32/lib/libqtlibpng.a /opt/Qt/5.15.2/wasm_32/lib/libqtharfbuzz.a /opt/Qt/5.15.2/wasm_32/lib/libQt5QmlModels.a /opt/Qt/5.15.2/wasm_32/lib/libQt5Qml.a /opt/Qt/5.15.2/wasm_32/lib/libQt5Network.a /opt/Qt/5.15.2/wasm_32/lib/libQt5Core.a /opt/Qt/5.15.2/wasm_32/lib/libqtpcre2.a /opt/repositories/emsdk/upstream/emscripten/cache/wasm-obj/libc.a /opt/repositories/emsdk/upstream/emscripten/cache/wasm-obj/libcompiler_rt.a /opt/repositories/emsdk/upstream/emscripten/cache/wasm-obj/libc-wasm.a /opt/repositories/emsdk/upstream/emscripten/cache/wasm-obj/libc++-noexcept.a /opt/repositories/emsdk/upstream/emscripten/cache/wasm-obj/libc++abi-noexcept.a --whole-archive /opt/repositories/emsdk/upstream/emscripten/cache/wasm-obj/libembind-rtti.a /opt/repositories/emsdk/upstream/emscripten/cache/wasm-obj/libfetch.a --no-whole-archive /opt/repositories/emsdk/upstream/emscripten/cache/wasm-obj/libgl-webgl2-full_es3.a /opt/repositories/emsdk/upstream/emscripten/cache/wasm-obj/libdlmalloc.a /opt/repositories/emsdk/upstream/emscripten/cache/wasm-obj/libpthread_stub.a /opt/repositories/emsdk/upstream/emscripten/cache/wasm-obj/libc_rt_wasm.a /opt/repositories/emsdk/upstream/emscripten/cache/wasm-obj/libsockets.a --allow-undefined --import-memory --import-table -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --strip-debug --export __wasm_call_ctors --export __data_end --export main --export malloc --export free --export setThrew --export __errno_location --export fflush --export _ZSt18uncaught_exceptionv --export emscripten_GetProcAddress --export emscripten_webgl_make_context_current --export emscripten_webgl_get_current_context --export strstr --export emscripten_builtin_memalign --export memalign --export realloc --export emscripten_builtin_free --export _get_environ --export _get_tzname --export _get_daylight --export _get_timezone --export htonl --export htons --export ntohs --export strlen -z stack-size=5242880 --initial-memory=16777216 --no-entry --global-base=1024' failed (1)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mitch_curtis Mitch Curtis
            moia Maurizio Ingrassia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes