[Interest] QML plugin with wasm not building
Sze Howe Koh
szehowe.koh at gmail.com
Sat Feb 18 02:09:44 CET 2023
Does it work if you use STATIC instead of SHARED?
Is the plugin built at the same time as the main application?
On Tue, Feb 14, 2023, 14:44 Konstantin Shegunov <kshegunov at gmail.com> wrote:
> Me again. If it matters, the exact diagnostics is as follows:
> On Mon, Feb 13, 2023 at 10:22 AM Konstantin Shegunov <kshegunov at gmail.com>
>> `qt_register_pluginXXX` (or something of this sort).
> Here's what emscripten reports:
> error: undefined symbol: _Z31qt_static_plugin_XXX_UiPluginv (referenced by
> top-level compiled C/C++ code)
> warning: Link with `-sLLD_REPORT_UNDEFINED` to get more information on
> undefined symbols
> warning: To disable errors for undefined symbols use
> warning: __Z31qt_static_plugin_XXX_UiPluginv may need to be added to
> EXPORTED_FUNCTIONS if it arrives from a system library
> Error: Aborting compilation due to previous errors
> If I don't use `PLUGIN_TARGET xxx`, instead I get a cmake warning and the
> runtime says the plugin can't be loaded:
> ---/qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:2821 (message):
> The qml plugin 'xxx-uiplugin' is a dependency of 'xxx', but the link
> target it defines (xxx-uiplugin) does not exist in the current scope.
> The plugin will not be linked.
> Call Stack (most recent call first):
> ---/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:640 (cmake_language)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest