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

wasm: Unresolved symbols, link order

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.12.0
    • Build System
    • None
    • Ubuntu 18.10
    • WebAssembly

    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?

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            pwuertz Peter Würtz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes