Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.12.0
-
None
-
Ubuntu 18.10
Description
Using Qt release 5.12.0 and the guide at https://wiki.qt.io/Qt_for_WebAssembly for setting up Qt Wasm, I ended up having some kind of regression when building applications.
The linker reports missing symbols from freetype, harfbuzz, pcre2 and libpng:
error: undefined symbol: FT_Done_Face
...
error: undefined symbol: hb_blob_create
...
error: undefined symbol: pcre2_code_free_16
...
error: undefined symbol: png_create_info_struct
Those libraries do appear within the link command, but apparently there is a problem with the link order (determined by qmake?). If I manually append libqtfreetype.a, libqtlibpng.a, etc to the end of the link command once more, the build succeeds.
Full link command and list of linker-flags as they are defined in the Makefile are attached.
Side/workaround question: If the link order is determined by qmake, maybe one could try to build the project with cmake? Is that possible with Qt Wasm?